forked from powercord-org/powercord-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
75 lines (75 loc) · 1.56 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
{
"parser": "babel-eslint",
"extends": "standard",
"env": {
"browser": true
},
"plugins": [
"react"
],
"settings": {
"react": {
"version": "detect"
}
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
},
"globals": {
"WEBPACK": false,
"BigInt": true
},
"rules": {
"no-void": "off",
"no-undefined": "error",
"prefer-const": "error",
"prefer-destructuring": [
"error",
{
"VariableDeclarator": {
"array": false,
"object": true
},
"AssignmentExpression": {
"array": true,
"object": true
}
}
],
"prefer-template": "error",
"array-bracket-newline": [
"error",
"consistent"
],
"array-bracket-spacing": [
"error",
"always"
],
"multiline-ternary": [
"error",
"always-multiline"
],
"object-property-newline": "error",
"no-useless-escape": "error",
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"react/no-this-in-sfc": "error",
"react/prefer-stateless-function": "error",
"react/style-prop-object": "error",
"react/void-dom-elements-no-children": "error",
"react/jsx-fragments": "error",
"react/jsx-pascal-case": "error",
"react/jsx-props-no-multi-spaces": "error",
"react/no-children-prop": "error",
"react/no-deprecated": "error",
"react/no-direct-mutation-state": "error",
"react/display-name": [
"error",
{
"ignoreTranspilerName": true
}
]
}
}