-
-
Notifications
You must be signed in to change notification settings - Fork 33.5k
Closed
Labels
questionIssues that look for answers.Issues that look for answers.toolsIssues and PRs related to the tools directory.Issues and PRs related to the tools directory.
Description
- Subsystem: tools
-
Is it worth to set the option
parserOptions.sourceType
asmodule
in thelib/.eslintrc.yaml
? What are pros / cons / breaking changes? -
Why don't we use the option
root
astrue
in the main.eslintrc.yaml
?By default, ESLint will look for configuration files in all parent folders up to the root directory. This can be useful if you want all of your projects to follow a certain convention, but can sometimes lead to unexpected results. To limit ESLint to a specific project, place
"root": true
inside theeslintConfig
field of thepackage.json
file or in the.eslintrc.*
file at your project’s root level. ESLint will stop looking in parent folders once it finds a configuration with"root": true
.Would it spare the linter some fs churn / time?
Metadata
Metadata
Assignees
Labels
questionIssues that look for answers.Issues that look for answers.toolsIssues and PRs related to the tools directory.Issues and PRs related to the tools directory.