-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
76 lines (76 loc) · 1.86 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
{
"extends": [
"airbnb",
"airbnb/hooks",
"plugin:@typescript-eslint/recommended",
"prettier",
"prettier/react",
"prettier/@typescript-eslint",
"plugin:prettier/recommended",
"prettier/prettier"
],
"plugins": ["@typescript-eslint", "react", "prettier"],
"globals": {
"__DEV__": false
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2021,
"sourceType": "module",
"project": "./tsconfig.json"
},
"rules": {
"@typescript-eslint/no-use-before-define": ["error"],
"@typescript-eslint/no-shadow": ["error"],
"@typescript-eslint/no-var-requires": 0,
"@typescript-eslint/no-unused-vars": ["error"],
"@typescript-eslint/explicit-module-boundary-types": ["error"],
"prettier/prettier": [
"error",
{
"printWidth": 100,
"semi": false,
"singleQuote": false,
"trailingComma": "all",
"arrowParens": "avoid",
"endOfLine": "auto"
}
],
"react/prop-types": 0,
"react/jsx-filename-extension": [
1,
{
"extensions": [".ts", ".tsx"]
}
],
"react/jsx-props-no-spreading": [
"warn",
{
"html": "enforce",
"custom": "enforce",
"explicitSpread": "ignore",
"exceptions": [""]
}
],
"react/no-unescaped-entities": "off",
"consistent-return": "off",
"global-require": "warn",
"import/extensions": ["off", "never"],
"import/no-unresolved": 0,
"no-param-reassign": ["warn", { "props": true, "ignorePropertyModificationsFor": ["state"] }],
"no-shadow": "off",
"no-unused-vars": "off",
"no-use-before-define": "off"
},
"overrides": [
{
"files": ["*.tsx"],
"rules": {
"@typescript-eslint/explicit-module-boundary-types": "off"
}
}
]
}