-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
50 lines (50 loc) · 1.67 KB
/
.eslintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:import/typescript",
"plugin:promise/recommended",
"plugin:react/recommended",
"prettier/@typescript-eslint",
"plugin:prettier/recommended"
],
"plugins": ["react-hooks"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 8,
"ecmaFeatures": { "jsx": true },
"sourceType": "module",
"useJSXTextNode": true,
"project": "./tsconfig.json",
"tsconfigRootDir": "./"
},
"env": { "browser": true, "jest": true, "node": true },
"rules": {
"comma-dangle": ["error", "always-multiline"],
"semi": ["error", "never"],
"key-spacing": "error",
"keyword-spacing": "error",
"no-console": ["off"],
"no-undef": "error",
"object-curly-spacing": ["error", "always"],
"promise/no-callback-in-promise": "off",
"react/no-unescaped-entities": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"@typescript-eslint/indent": ["error", 2],
"@typescript-eslint/array-type": "warn",
"@typescript-eslint/ban-ts-ignore": ["off"],
"@typescript-eslint/ban-types": "warn",
"@typescript-eslint/camelcase": "warn",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/member-delimiter-style": ["off"],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{ "argsIgnorePattern": "^_" }
],
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-var-requires": "off"
},
"settings": { "react": { "version": "detect" } },
"globals": { "__DEV__": true, "process": true }
}