Skip to content

Commit

Permalink
Uopdate lint tules
Browse files Browse the repository at this point in the history
  • Loading branch information
goanpeca committed Nov 11, 2022
1 parent fa2c86f commit d543785
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 17 deletions.
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
dist/
.eslintrc.js
35 changes: 19 additions & 16 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,16 @@ module.exports = {
],
parser: "@typescript-eslint/parser",
parserOptions: {
project: "tsconfig.json"
project: [
"tsconfig.json",
"tsconfig.eslint.json"
]
},
plugins: ["@typescript-eslint"],
rules: {
"@typescript-eslint/no-floating-promises": ["error", { ignoreVoid: true }],
"@typescript-eslint/no-unused-vars": ["warn", { args: "none" }],
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/ban-ts-comment": "warn",
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/ban-ts-comment": "warn",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/triple-slash-reference": "warn",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/naming-convention": [
"error",
{
Expand All @@ -39,13 +32,23 @@ module.exports = {
}
}
],
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-floating-promises": ["error", { ignoreVoid: true }],
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unused-vars": ["warn", { args: "none" }],
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/triple-slash-reference": "warn",
"no-case-declarations": "warn",
"no-control-regex": "warn",
"no-inner-declarations": "off",
"no-prototype-builtins": "off",
"no-control-regex": "warn",
"no-undef": "warn",
"no-case-declarations": "warn",
"no-unused-vars": "off",
"no-useless-escape": "off",
"prefer-const": "off",
"no-unused-vars": "off"
"prefer-const": "off"
}
};
3 changes: 3 additions & 0 deletions tsconfig.eslint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"include": [".eslintrc.js"]
}

0 comments on commit d543785

Please sign in to comment.