From d54378530f9c4cfd2b0e8fff5be6b54dc3fd3fad Mon Sep 17 00:00:00 2001 From: Gonzalo Pena-Castellanos Date: Fri, 11 Nov 2022 12:40:46 -0500 Subject: [PATCH] Uopdate lint tules --- .eslintignore | 1 - .eslintrc.js | 35 +++++++++++++++++++---------------- tsconfig.eslint.json | 3 +++ 3 files changed, 22 insertions(+), 17 deletions(-) create mode 100644 tsconfig.eslint.json diff --git a/.eslintignore b/.eslintignore index 867171fd..849ddff3 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,2 +1 @@ dist/ -.eslintrc.js diff --git a/.eslintrc.js b/.eslintrc.js index fdadb981..e6923c92 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -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", { @@ -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" } }; diff --git a/tsconfig.eslint.json b/tsconfig.eslint.json new file mode 100644 index 00000000..c0f990d7 --- /dev/null +++ b/tsconfig.eslint.json @@ -0,0 +1,3 @@ +{ + "include": [".eslintrc.js"] +}