-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
98 lines (98 loc) · 2.33 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"airbnb",
"airbnb-typescript",
"react-app",
"prettier",
"plugin:react-hooks/recommended",
"plugin:eslint-comments/recommended"
],
"parserOptions": {
"project": "./tsconfig.json"
},
"settings": {
"import/resolver": {
"typescript": {}
}
},
"rules": {
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-shadow": "off",
"@typescript-eslint/lines-between-class-members": [
"error",
"always",
{
"exceptAfterSingleLine": true
}
],
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "default",
"format": ["camelCase"],
"leadingUnderscore": "forbid",
"trailingUnderscore": "forbid"
},
{
"selector": "variableLike",
"format": ["camelCase", "StrictPascalCase"]
},
{
"selector": "variable",
"modifiers": ["const"],
"format": ["camelCase", "StrictPascalCase", "UPPER_CASE"],
"leadingUnderscore": "allowSingleOrDouble"
},
{
"selector": "parameter",
"format": ["camelCase"],
"leadingUnderscore": "allowSingleOrDouble"
},
{
"selector": "typeLike",
"format": ["StrictPascalCase"]
},
{
"selector": "function",
"format": ["camelCase", "StrictPascalCase"]
},
{
"selector": "enumMember",
"format": ["UPPER_CASE"]
}
],
"no-param-reassign": [
"off",
{
"props": false
}
],
"no-debugger": "warn",
"eslint-comments/no-unused-disable": "error",
"import/no-unresolved": "error",
"import/prefer-default-export": "off",
"jsx-a11y/label-has-associated-control": "off",
"no-lonely-if": "off",
"no-underscore-dangle": "off",
"react/no-array-index-key": "off",
"react/react-in-jsx-scope": "off",
"react/jsx-pascal-case": [
"error",
{
"allowLeadingUnderscore": true
}
],
"no-restricted-syntax": [
"error",
"ForInStatement",
"LabeledStatement",
"WithStatement",
"BinaryExpression[operator='in']"
]
}
}