-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
47 lines (46 loc) · 1.41 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
{
"env": {
"browser": true,
"es2021": true
},
"extends": ["airbnb", "prettier", "eslint:recommended", "react-app", "plugin:react/recommended", "plugin:@typescript-eslint/recommended"],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly",
"__DEV__": "readonly"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": ["react", "prettier", "react-hooks", "@typescript-eslint"],
"rules": {
"no-shadow": 0,
"consistent-return": 0,
"import/extensions": 0,
"import/no-unresolved": "error",
"prettier/prettier": "error",
"react/jsx-filename-extension": ["warn", { "extensions": [".jsx", ".js", ".tsx", ".ts"] }],
"react/no-array-index-key": 0,
"react/jsx-props-no-spreading": 0,
"react/require-default-props": 0,
"react/function-component-definition": 0,
"import/prefer-default-export": "off",
"no-param-reassign": "off",
"no-plusplus": 0,
"react/prop-types": "off",
"no-console": ["error", { "allow": ["tron", "error"] }],
"no-underscore-dangle": 0,
"import/no-extraneous-dependencies": 0,
"@typescript-eslint/no-explicit-any": 0
},
"settings": {
"import/resolver": {
"typescript": {}
}
}
}