/
.eslintrc.json
62 lines (60 loc) · 1.73 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
{
"env": {
"browser": true,
"es6": true,
"es2020": true,
"node": true
},
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended",
"airbnb",
"airbnb/hooks",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"project": "./tsconfig.json"
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"],
"moduleDirectory": ["node_modules", "."]
}
}
},
"rules": {
"react/jsx-filename-extension": ["warn", { "extensions": [".js", ".jsx", ".tsx"] }],
"prettier/prettier": [
"warn",
{
"endOfLine": "auto"
}
],
"arrow-parens": ["warn", "as-needed"],
"react/prop-types": ["off"],
"no-unused-vars": ["off"],
"import/extensions": "off",
"import/prefer-default-export": "off",
"class-methods-use-this": "off",
"no-param-reassign": "off",
"no-console": "off",
"no-use-before-define": "off",
"react-hooks/exhaustive-deps": ["off"],
"react/jsx-props-no-spreading": ["off"],
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
"react/no-array-index-key": ["warn"],
"jsx-a11y/no-static-element-interactions": ["off"],
"jsx-a11y/click-events-have-key-events": "off",
"react/jsx-curly-brace-presence": "off",
"@typescript-eslint/no-var-requires": "off",
"camelcase": "off",
"react/react-in-jsx-scope": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"prefer-destructuring": "off"
}
}