Skip to content
This repository was archived by the owner on Aug 20, 2024. It is now read-only.

chore: switch to eslint flat config#60

Merged
nzakas merged 4 commits intomainfrom
flat-eslint
Feb 20, 2024
Merged

chore: switch to eslint flat config#60
nzakas merged 4 commits intomainfrom
flat-eslint

Conversation

@mdjermanovic
Copy link
Copy Markdown
Member

Switches to flat config for linting this project.

Comment thread lib/index.js Outdated
}


/* eslint-disable jsdoc/valid-types -- doesn't allow `readonly`. TODO: check why */
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For some reason, readonly string[] is considered invalid by jsdoc/valid-types. I disabled the rule here until we figure out what's the problem because changing this type would affect the types this package publishes.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe worth opening an issue on the plugin?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea. The issue template suggested opening an issue on the parser, here it is:

jsdoc-type-pratt-parser/jsdoc-type-pratt-parser#164

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like jsdoc-type-pratt-parser/jsdoc-type-pratt-parser#164 won't be fixed anytime soon since there's still no response.

Comment thread lib/visitor-keys.js Outdated
@@ -1,6 +1,8 @@
/* eslint-disable jsdoc/valid-types -- doesn't allow `readonly`. TODO: check why */
Copy link
Copy Markdown
Member Author

@mdjermanovic mdjermanovic Aug 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member

@nzakas nzakas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@nzakas nzakas merged commit f988b6e into main Feb 20, 2024
@nzakas nzakas deleted the flat-eslint branch February 20, 2024 23:58
@github-actions github-actions Bot mentioned this pull request Feb 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants