Skip to content

Fix eslint-plugin-json v2+ breaking change: require config in .eslintrc.js#10243

Open
MatrixNeoKozak wants to merge 1 commit into
scratchfoundation:developfrom
MatrixNeoKozak:scout-improvement-1780257220290
Open

Fix eslint-plugin-json v2+ breaking change: require config in .eslintrc.js#10243
MatrixNeoKozak wants to merge 1 commit into
scratchfoundation:developfrom
MatrixNeoKozak:scout-improvement-1780257220290

Conversation

@MatrixNeoKozak

Copy link
Copy Markdown

The eslint-plugin-json v2+ changed how it is configured. Previously it automatically applied its rules when added as a plugin, but now you must explicitly set the 'json/*' rules or extend 'plugin:json/recommended'. Without this, the plugin does nothing, and JSON files are not linted. The fix adds extends: ['plugin:json/recommended'] to the root .eslintrc.js (where JSON linting is intended) and adds the 'json' plugin in the correct place.

@github-actions

Copy link
Copy Markdown


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


AI Scout Agent seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant