-
-
Notifications
You must be signed in to change notification settings - Fork 46
/
.eslintrc.json
82 lines (82 loc) · 2.2 KB
/
.eslintrc.json
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{
"extends": [
"airbnb-typescript",
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint",
"plugin:prettier/recommended",
"prettier",
"prettier/react"
],
"plugins": [
"react",
"@typescript-eslint",
"prettier",
"react-hooks"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2019,
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"es6": true,
"jest": true,
"node": true,
"browser": true,
"commonjs": true,
"serviceworker": true
},
"rules": {
"import/prefer-default-export": "off",
"lines-between-class-members": "off",
"import/order": "off",
"@typescript-eslint/explicit-member-accessibility": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/indent": "off",
"no-console": "warn",
"camelcase": "error",
"react/display-name": "off",
"react/prop-types": "off",
"react/state-in-constructor": "off",
"react/static-property-placement": "off",
"class-methods-use-this": "off",
"react/jsx-props-no-spreading": "off",
// TO FIX LATER,
"no-script-url": "off",
"jsx-a11y/anchor-is-valid": "off",
"react/no-unescaped-entities": "off",
"jsx-a11y/accessible-emoji": "off",
"jsx-a11y/interactive-supports-focus": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/media-has-caption": "off",
"jsx-a11y/control-has-associated-label": "off",
"no-underscore-dangle": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn"
},
"settings": {
"react": {
"pragma": "React",
"version": "detect"
},
"import/parsers": {
"@typescript-eslint/parser": [
".ts",
".tsx"
]
},
"import/resolver": {
// use <root>/tsconfig.json
"typescript": {
"alwaysTryTypes": true, // always try to resolve types under `<roo/>@types` directory even it doesn't contain any source code, like `@types/unist`,
"directory": "./tsconfig.json"
}
}
}
}