-
Notifications
You must be signed in to change notification settings - Fork 28
Add json to eslint #746
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add json to eslint #746
Conversation
Bundle size report
Check out the code infra dashboard for more information about this PR. |
eslint.config.mjs
Outdated
| const dirname = path.dirname(filename); | ||
|
|
||
| export default defineConfig( | ||
| createJsonConfig(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you verify if this also include files inside node_modules or other ignored directories, since the ignore logic is added in createBaseConfig() ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ignores are global, for the whole configuration, their order does only matter in a sense that other ignores can include or exclude more files. Maybe createBaseconfig should just contain the json config? That'll likely be a breaking change on some repos as you need to specifically target js files to alter js rules.
|
Since we are going with breaking change, does it also makes sense to remove the jsonlint CI ? |
brijeshb42
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥
export json configuration for eslint
closes #550
Also closes #743
This requires bigger refactor of our shareable configs than I initially assumed.
according to JoshuaKGoldberg/eslint-plugin-package-json#1265 (comment)
They're changing their stance on how to define shareable configs
Canary PRs:
@eslint/jsonbase-ui#2964