summaryrefslogtreecommitdiff
path: root/.eslintrc.json
diff options
context:
space:
mode:
Diffstat (limited to '.eslintrc.json')
-rw-r--r--.eslintrc.json23
1 files changed, 19 insertions, 4 deletions
diff --git a/.eslintrc.json b/.eslintrc.json
index c6b145d78..573bd3e3d 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -2,7 +2,8 @@
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
- "project": "./tsconfig.json"
+ "project": "./tsconfig.json",
+ "createDefaultProgram": true
},
"plugins": ["@typescript-eslint"],
"extends": [
@@ -11,7 +12,10 @@
"prettier/@typescript-eslint"
],
"rules": {
- "@typescript-eslint/array-type": ["error", "array-simple"],
+ "@typescript-eslint/array-type": [
+ "error",
+ { "default": "array-simple" }
+ ],
"@typescript-eslint/explicit-member-accessibility": ["off"],
"@typescript-eslint/no-non-null-assertion": ["off"],
"@typescript-eslint/no-use-before-define": ["off"],
@@ -19,6 +23,17 @@
"@typescript-eslint/no-unused-vars": [
"error",
{ "argsIgnorePattern": "^_" }
- ]
- }
+ ],
+ "@typescript-eslint/ban-ts-ignore": ["off"],
+ "@typescript-eslint/no-empty-function": ["off"],
+ "@typescript-eslint/explicit-function-return-type": ["off"]
+ },
+ "overrides": [
+ {
+ "files": ["*.ts", "*.tsx"],
+ "rules": {
+ "@typescript-eslint/explicit-function-return-type": ["error"]
+ }
+ }
+ ]
}