-
-
Notifications
You must be signed in to change notification settings - Fork 5k
Documenting configuration hierarchy for CLIEngine options and 'useEslintrc: true' #9526
Copy link
Copy link
Closed
Labels
acceptedThere is consensus among the team that this change meets the criteria for inclusionThere is consensus among the team that this change meets the criteria for inclusionarchived due to ageThis issue has been archived; please open a new issue for any further discussionThis issue has been archived; please open a new issue for any further discussioncoreRelates to ESLint's core APIs and featuresRelates to ESLint's core APIs and featuresdocumentationRelates to ESLint's documentationRelates to ESLint's documentationgood first issueGood for people who haven't worked on ESLint beforeGood for people who haven't worked on ESLint before
Metadata
Metadata
Assignees
Labels
acceptedThere is consensus among the team that this change meets the criteria for inclusionThere is consensus among the team that this change meets the criteria for inclusionarchived due to ageThis issue has been archived; please open a new issue for any further discussionThis issue has been archived; please open a new issue for any further discussioncoreRelates to ESLint's core APIs and featuresRelates to ESLint's core APIs and featuresdocumentationRelates to ESLint's documentationRelates to ESLint's documentationgood first issueGood for people who haven't worked on ESLint beforeGood for people who haven't worked on ESLint before
Hi! Many thanks for a great tool :-)
I was trying to work out from the docs, which options take precedence in the following example:
The CLIEngine docs just say:
And the docs on configuration hierarchy/precedence don't mention
CLIEngineat all:From experimentation, I've found that the options passed to
CLIEnginetake priority over the ones in.eslintrc, however I think it would be good to document this.I'm happy to open a PR to do so, but it would be useful to know whether I should do so on the configuration page, the API page, or both?
Many thanks!