Skip to content

Commit 05d71c2

Browse files
authoredMay 17, 2022
fix(eslint-plugin): strict config should not extend recommended (#5005)
1 parent e18e91c commit 05d71c2

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed
 

‎packages/eslint-plugin/src/configs/strict.ts

+1-6
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,7 @@
33
// YOU CAN REGENERATE IT USING yarn generate:configs
44

55
export = {
6-
extends: [
7-
'./configs/base',
8-
'./configs/eslint-recommended',
9-
'./configs/recommended',
10-
'./configs/recommended-requiring-type-checking',
11-
],
6+
extends: ['./configs/base', './configs/eslint-recommended'],
127
rules: {
138
'@typescript-eslint/array-type': 'warn',
149
'@typescript-eslint/ban-tslint-comment': 'warn',

‎packages/eslint-plugin/tools/generate-configs.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -240,11 +240,7 @@ const strictRules = ruleEntries.filter(entryIsStrict).reduce<LinterConfigRules>(
240240
{},
241241
);
242242
const strictConfig: LinterConfig = {
243-
extends: [
244-
...EXTENDS,
245-
'./configs/recommended',
246-
'./configs/recommended-requiring-type-checking',
247-
],
243+
extends: EXTENDS,
248244
rules: strictRules,
249245
};
250246
writeConfig(strictConfig, path.resolve(__dirname, '../src/configs/strict.ts'));

0 commit comments

Comments
 (0)
Please sign in to comment.