Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(eslint-plugin): undo breaking changes to recommended config
  • Loading branch information
bradzacher committed Jul 20, 2019
1 parent 807bc2d commit 93f72e3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 1 addition & 3 deletions packages/eslint-plugin/src/configs/base.json
Expand Up @@ -3,7 +3,5 @@
"parserOptions": {
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
]
"plugins": ["@typescript-eslint"]
}
3 changes: 2 additions & 1 deletion packages/eslint-plugin/src/configs/recommended.json
Expand Up @@ -7,7 +7,6 @@
"camelcase": "off",
"@typescript-eslint/camelcase": "error",
"@typescript-eslint/class-name-casing": "error",
"@typescript-eslint/consistent-type-definitions": "error",
"@typescript-eslint/explicit-function-return-type": "warn",
"@typescript-eslint/explicit-member-accessibility": "error",
"indent": "off",
Expand All @@ -25,11 +24,13 @@
"@typescript-eslint/no-non-null-assertion": "error",
"@typescript-eslint/no-object-literal-type-assertion": "error",
"@typescript-eslint/no-parameter-properties": "error",
"@typescript-eslint/no-triple-slash-reference": "error",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "warn",
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": "error",
"@typescript-eslint/no-var-requires": "error",
"@typescript-eslint/prefer-interface": "error",
"@typescript-eslint/prefer-namespace-keyword": "error",
"@typescript-eslint/type-annotation-spacing": "error"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin/tools/generate-configs.ts
Expand Up @@ -124,7 +124,7 @@ const recommendedConfig: LinterConfig = {
rules: ruleEntries
.filter(entry => !!entry[1].meta.docs.recommended)
.reduce<LinterConfigRules>(
(config, entry) => reducer(config, entry, { filterDeprecated: true }),
(config, entry) => reducer(config, entry, { filterDeprecated: false }),
{},
),
};
Expand Down

0 comments on commit 93f72e3

Please sign in to comment.