diff --git a/.eslintrc.json b/.eslintrc.json index 16762f193..bfb2604fd 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -38,14 +38,6 @@ "no-empty": ["error", { "allowEmptyCatch": true }], "no-var": 2, "no-duplicate-imports": ["error"], - "@typescript-eslint/no-empty-function": "off", - "@typescript-eslint/no-unused-vars": "off", - "@typescript-eslint/no-var-requires": "off", - // "@typescript-eslint/no-floating-promises": "error", // consider adding this - "@typescript-eslint/strict-boolean-expressions": [ - "error", - { "allowNullableBoolean": true, "allowNullableNumber": true } - ], // "import/default": "off", "import/no-unresolved": [ "error", @@ -71,10 +63,10 @@ "rules": { "@typescript-eslint/explicit-function-return-type": ["error"], "@typescript-eslint/ban-ts-comment": "off", - "@typescript-eslint/no-empty-function": "error", + "@typescript-eslint/no-empty-function": "warn", "no-unused-vars": "off", "@typescript-eslint/no-unused-vars": [ - "error", + "warn", { "argsIgnorePattern": "^(_|e|event)", "varsIgnorePattern": "^_" } ], "@typescript-eslint/no-var-requires": "error", @@ -85,7 +77,12 @@ "checksVoidReturn": false } ], - "@typescript-eslint/promise-function-async": "warn" + "@typescript-eslint/promise-function-async": "warn", + // "@typescript-eslint/no-floating-promises": "error", // consider adding this + "@typescript-eslint/strict-boolean-expressions": [ + "error", + { "allowNullableBoolean": true, "allowNullableNumber": true } + ] // "@typescript-eslint/no-unnecessary-condition": "error" TODO ADD THIS }, "parserOptions": {