Skip to content

Commit

Permalink
feat(rules-update): change the default rules (#219)
Browse files Browse the repository at this point in the history
Co-authored-by: Jonah Pereira <[email protected]>
  • Loading branch information
jbizkit and Jonah Pereira authored Dec 14, 2020
1 parent 31b826d commit e8ab5ae
Show file tree
Hide file tree
Showing 2 changed files with 1,022 additions and 1,021 deletions.
57 changes: 29 additions & 28 deletions configs/@typescript-eslint/index.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,29 @@
module.exports = {
"@typescript-eslint/indent": ["error", 4],
"@typescript-eslint/member-delimiter-style": ["off"],
"@typescript-eslint/explicit-function-return-type": ["off"],
"@typescript-eslint/prefer-interface": ["off"],
"@typescript-eslint/adjacent-overload-signatures": ["error"],
"@typescript-eslint/ban-ts-comment": ["error"],
"@typescript-eslint/ban-types": ["error"],
"@typescript-eslint/naming-convention": ["error"],
"@typescript-eslint/consistent-type-assertions": ["error"],
"@typescript-eslint/no-array-constructor": ["error"],
"@typescript-eslint/no-empty-function": ["error"],
"@typescript-eslint/no-empty-interface": ["error"],
"@typescript-eslint/no-explicit-any": ["error"],
"@typescript-eslint/no-inferrable-types": ["error"],
"@typescript-eslint/no-misused-new": ["error"],
"@typescript-eslint/no-namespace": ["error"],
"@typescript-eslint/no-non-null-assertion": ["error"],
"@typescript-eslint/no-this-alias": ["error"],
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "_" }],
"@typescript-eslint/no-use-before-define": ["error"],
"@typescript-eslint/no-var-requires": ["error"],
"@typescript-eslint/prefer-namespace-keyword": ["error"],
"@typescript-eslint/triple-slash-reference": ["error"],
"@typescript-eslint/type-annotation-spacing": ["error"],
"@typescript-eslint/no-useless-constructor": ["error"],
"@typescript-eslint/prefer-literal-enum-member": ["error"],
};
module.exports = {
"@typescript-eslint/indent": ["error", 4],
"@typescript-eslint/member-delimiter-style": ["off"],
"@typescript-eslint/explicit-function-return-type": ["off"],
"@typescript-eslint/prefer-interface": ["off"],
"@typescript-eslint/adjacent-overload-signatures": ["error"],
"@typescript-eslint/ban-ts-comment": ["error"],
"@typescript-eslint/ban-types": ["error"],
"@typescript-eslint/naming-convention": "off",
"@typescript-eslint/consistent-type-assertions": ["error"],
"@typescript-eslint/no-array-constructor": ["error"],
"@typescript-eslint/no-empty-function": ["error"],
"@typescript-eslint/no-empty-interface": ["error"],
"@typescript-eslint/no-explicit-any": ["error"],
"@typescript-eslint/no-inferrable-types": ["error"],
"@typescript-eslint/no-misused-new": ["error"],
"@typescript-eslint/no-namespace": ["error"],
"@typescript-eslint/no-non-null-assertion": ["error"],
"@typescript-eslint/no-this-alias": ["error"],
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "_" }],
"@typescript-eslint/no-use-before-define": ["error"],
"@typescript-eslint/no-var-requires": ["error"],
"@typescript-eslint/prefer-namespace-keyword": ["error"],
"@typescript-eslint/triple-slash-reference": ["error"],
"@typescript-eslint/type-annotation-spacing": ["error"],
"@typescript-eslint/no-useless-constructor": ["error"],
"@typescript-eslint/prefer-literal-enum-member": ["error"],
"@typescript-eslint/no-shadow": ["error"],
};
Loading

0 comments on commit e8ab5ae

Please sign in to comment.