-
-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: rules are at top level (not under overrides)
BREAKING CHANGE: the rules are provided at the top level, instead of under an `overrides` property. Providing the rules under the `overrides` property was never a good idea. It prevents specifying which files the rules apply to (e.g. `[*.js, *.ts]`). I apologize. To migrate, make sure that your `extends` property is under an [`overrides` item][overrides]. An example is in the readme. To help verify your configuration, you could obtain a list of files that will be linted, this way: `DEBUG=eslint:cli-engine npx eslint <path>`. [overrides]: https://eslint.org/docs/latest/use/configure/configuration-files#how-do-overrides-work closes #1149 closes #1088 Co-authored-by: Rostislav Simonik <[email protected]>
- Loading branch information
1 parent
d9f309b
commit 25401c9
Showing
6 changed files
with
422 additions
and
431 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
{ | ||
"extends": "./lib/index.js", | ||
"parserOptions": { | ||
"project": "./tsconfig.json" | ||
} | ||
"overrides": [ | ||
{ | ||
"files": ["*.js", "*.ts"], | ||
"extends": "./lib/index.js", | ||
"parserOptions": { | ||
"project": "./tsconfig.json" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.