-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
98 lines (98 loc) · 2.06 KB
/
.eslintrc
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
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 2020,
"ecmaFeatures": {
"modules": true
}
},
"plugins": ["import"],
"env": {
"node": true,
"browser": true
},
"root": true,
"globals": {},
"extends": ["plugin:prettier/recommended", "eslint:recommended"],
"rules": {
"semi": [0, "never"],
"brace-style": [
2,
"1tbs",
{
"allowSingleLine": true
}
],
"no-template-curly-in-string": "error",
"camelcase": 2,
"comma-style": [2, "last"],
"curly": 2,
"eqeqeq": 2,
"func-names": 2,
"space-before-function-paren": ["error", "never"],
"guard-for-in": 2,
"wrap-iife": 2,
"no-undef": 2,
"new-cap": 0,
"quotes": [2, "single"],
"no-trailing-spaces": 2,
"comma-dangle": 0,
"max-len": [
2,
{
"code": 120,
"tabWidth": 2,
"ignoreComments": true,
"ignoreUrls": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true
}
],
"no-underscore-dangle": 0,
"strict": 0,
"no-shadow": 0,
"no-var": 2,
"no-useless-rename": 2,
"no-new-object": 2,
"no-array-constructor": 2,
"no-unused-vars": 1,
"global-require": 0,
"prefer-spread": 1,
"prefer-arrow-callback": 2,
"prefer-const": 1,
// "react/boolean-prop-naming": [
// "warn",
// {
// "rule": "^(is|has)[A-Z]([A-Za-z0-9]?)+"
// }
// ],
"import/prefer-default-export": 0,
"no-console": [
1,
{
"allow": ["warn", "error"]
}
],
"no-extend-native": 2,
"function-paren-newline": [2, "multiline"],
"object-curly-newline": [
"error",
{
"multiline": true,
"minProperties": 3,
"consistent": true
}
],
"import/no-dynamic-require": 2,
"no-nested-ternary": 0,
"no-use-before-define": 0,
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": true,
"optionalDependencies": false,
"peerDependencies": false
}
]
}
}