Skip to content

Will the "eslintConfig" key in package.json files still work in ESLint v9? #18131

Answered by fasttime
dustin-ruetz asked this question in Q&A
Discussion options

You must be logged in to vote

The main reason for removing the "eslintConfig" key lookup was to avoid the complexity of the legacy config system, where many ways existed to do the same thing. This is one of the aims stated in this blog post and is mentioned in the original RFC.

Some of the initial decisions in the RFC have been revisited later because they turned out impractical or were posing challenges to the ecosystem, but it looks like this does not apply in your case. So I would not expect the team to consider reinstating support for the "eslintConfig" key in package.json files for the advantages you mention.

I think the best you could do is adding a eslint.config.js file to the root of your repo where you re-exp…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@dustin-ruetz
Comment options

@fasttime
Comment options

Answer selected by dustin-ruetz
@dustin-ruetz
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants