Skip to content

Commit 93f72e3

Browse files
committed
fix(eslint-plugin): undo breaking changes to recommended config
1 parent 807bc2d commit 93f72e3

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

packages/eslint-plugin/src/configs/base.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,5 @@
33
"parserOptions": {
44
"sourceType": "module"
55
},
6-
"plugins": [
7-
"@typescript-eslint"
8-
]
6+
"plugins": ["@typescript-eslint"]
97
}

packages/eslint-plugin/src/configs/recommended.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"camelcase": "off",
88
"@typescript-eslint/camelcase": "error",
99
"@typescript-eslint/class-name-casing": "error",
10-
"@typescript-eslint/consistent-type-definitions": "error",
1110
"@typescript-eslint/explicit-function-return-type": "warn",
1211
"@typescript-eslint/explicit-member-accessibility": "error",
1312
"indent": "off",
@@ -25,11 +24,13 @@
2524
"@typescript-eslint/no-non-null-assertion": "error",
2625
"@typescript-eslint/no-object-literal-type-assertion": "error",
2726
"@typescript-eslint/no-parameter-properties": "error",
27+
"@typescript-eslint/no-triple-slash-reference": "error",
2828
"no-unused-vars": "off",
2929
"@typescript-eslint/no-unused-vars": "warn",
3030
"no-use-before-define": "off",
3131
"@typescript-eslint/no-use-before-define": "error",
3232
"@typescript-eslint/no-var-requires": "error",
33+
"@typescript-eslint/prefer-interface": "error",
3334
"@typescript-eslint/prefer-namespace-keyword": "error",
3435
"@typescript-eslint/type-annotation-spacing": "error"
3536
}

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ const recommendedConfig: LinterConfig = {
124124
rules: ruleEntries
125125
.filter(entry => !!entry[1].meta.docs.recommended)
126126
.reduce<LinterConfigRules>(
127-
(config, entry) => reducer(config, entry, { filterDeprecated: true }),
127+
(config, entry) => reducer(config, entry, { filterDeprecated: false }),
128128
{},
129129
),
130130
};

0 commit comments

Comments
 (0)