forked from uwizy/strapi-plugin-webpage-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
executable file
·90 lines (90 loc) · 1.6 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
{
"parserOptions": {
"ecmaFeatures": {
"jsx": true,
"modules": true,
"sourceType": "module",
"parser": "babel-eslint"
}
},
"settings": {
"import/resolver": {
"node": {
"extensions": [
".js",
".jsx"
]
}
}
},
"extends": [
"standard",
"standard-react",
"plugin:import/errors",
"plugin:react/recommended",
"prettier",
"prettier/react",
"prettier/standard",
"plugin:prettier/recommended"
],
"rules": {
"quotes": [
"error",
"single"
],
"import/imports-first": [
"error",
"absolute-first"
],
"import/newline-after-import": "error",
"no-console": 0,
"no-shadow": [
"error",
{
"hoist": "functions"
}
],
"padding-line-between-statements": [
"error",
{
"blankLine": "always",
"prev": "*",
"next": "return"
},
{
"blankLine": "always",
"prev": "block-like",
"next": "*"
}
],
"eol-last": [
"error",
"always"
],
"no-alert": 2,
"no-else-return": 2,
"no-eval": 2,
"no-lone-blocks": 2,
"no-loop-func": 2,
"no-magic-numbers": [
0,
{
"ignoreArrayIndexes": true,
"enforceConst": true
}
],
"radix": 2,
"no-unneeded-ternary": 2,
"no-var": 2,
"prefer-const": 2,
"react/no-unescaped-entities": 0,
"react/jsx-pascal-case": 0,
"react/prop-types": 0,
"no-new": 0,
"click-events-have-key-events": 0,
"indent": [
"error",
2
]
}
}