|
|
@ -5,7 +5,6 @@ |
|
|
|
"extends": [ |
|
|
|
"eslint:recommended", |
|
|
|
"plugin:@typescript-eslint/strict-type-checked", |
|
|
|
"plugin:@typescript-eslint/stylistic-type-checked", |
|
|
|
"plugin:import/recommended", |
|
|
|
"plugin:import/typescript", |
|
|
|
"prettier" |
|
|
@ -24,25 +23,17 @@ |
|
|
|
"root": true, |
|
|
|
"rules": { |
|
|
|
"anti-trojan-source/no-bidi": "error", |
|
|
|
"arrow-parens": ["off"], |
|
|
|
"brace-style": ["off", "stroustrup"], |
|
|
|
"consistent-return": "off", |
|
|
|
"curly": ["error", "multi-line", "consistent"], |
|
|
|
"eol-last": "error", |
|
|
|
"linebreak-style": ["error", "unix"], |
|
|
|
"new-parens": "error", |
|
|
|
"no-console": "off", |
|
|
|
"no-constant-condition": ["warn", { "checkLoops": false }], |
|
|
|
"no-constant-binary-expression": "error", |
|
|
|
"no-caller": "error", |
|
|
|
"no-debugger": "off", |
|
|
|
"no-dupe-class-members": "off", |
|
|
|
"no-else-return": "warn", |
|
|
|
"no-empty": ["warn", { "allowEmptyCatch": true }], |
|
|
|
"no-eval": "error", |
|
|
|
"no-ex-assign": "warn", |
|
|
|
"no-extend-native": "error", |
|
|
|
"no-extra-bind": "error", |
|
|
|
"no-extra-semi": "off", |
|
|
|
"no-floating-decimal": "error", |
|
|
|
"no-implicit-coercion": "error", |
|
|
|
"no-implied-eval": "error", |
|
|
@ -50,7 +41,7 @@ |
|
|
|
"no-lone-blocks": "error", |
|
|
|
"no-lonely-if": "error", |
|
|
|
"no-loop-func": "error", |
|
|
|
"no-multi-spaces": "error", |
|
|
|
"no-mixed-spaces-and-tabs": "off", |
|
|
|
"no-restricted-globals": ["error", "process"], |
|
|
|
"no-restricted-imports": [ |
|
|
|
"error", |
|
|
@ -98,8 +89,13 @@ |
|
|
|
"message": "Use @env/ instead" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"group": ["src/**/*"], |
|
|
|
"group": ["src/*"], |
|
|
|
"message": "Use relative paths instead" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"group": ["react-dom"], |
|
|
|
"importNames": ["Container"], |
|
|
|
"message": "Use our Container instead" |
|
|
|
} |
|
|
|
] |
|
|
|
} |
|
|
@ -138,10 +134,7 @@ |
|
|
|
"prefer-rest-params": "error", |
|
|
|
"prefer-spread": "error", |
|
|
|
"prefer-template": "error", |
|
|
|
"quotes": ["error", "single", { "avoidEscape": true, "allowTemplateLiterals": true }], |
|
|
|
"require-atomic-updates": "off", |
|
|
|
"semi": ["error", "always"], |
|
|
|
"semi-style": ["error", "last"], |
|
|
|
"sort-imports": [ |
|
|
|
"error", |
|
|
|
{ |
|
|
@ -153,7 +146,7 @@ |
|
|
|
], |
|
|
|
"yoda": "error", |
|
|
|
"import/consistent-type-specifier-style": ["error", "prefer-top-level"], |
|
|
|
"import/extensions": ["error", "never"], |
|
|
|
"import/extensions": "off", |
|
|
|
"import/newline-after-import": "warn", |
|
|
|
"import/no-absolute-path": "error", |
|
|
|
"import/no-cycle": "off", |
|
|
@ -326,7 +319,22 @@ |
|
|
|
{ |
|
|
|
"files": ["src/env/node/**/*"], |
|
|
|
"rules": { |
|
|
|
"no-restricted-imports": "off" |
|
|
|
"no-restricted-imports": [ |
|
|
|
"error", |
|
|
|
{ |
|
|
|
"patterns": [ |
|
|
|
{ |
|
|
|
"group": ["src/*"], |
|
|
|
"message": "Use relative paths instead" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"group": ["react-dom"], |
|
|
|
"importNames": ["Container"], |
|
|
|
"message": "Use our Container instead" |
|
|
|
} |
|
|
|
] |
|
|
|
} |
|
|
|
] |
|
|
|
} |
|
|
|
} |
|
|
|
] |
|
|
|