-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy path.eslintrc
46 lines (46 loc) · 1.46 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
{
"parser": "babel-eslint",
"rules": {
"max-len": [1, 120, 2, {"ignoreComments": true}],
"indent": [1, 4, { "SwitchCase": 1 }],
"arrow-body-style": ["error", "as-needed", { "requireReturnForObjectLiteral": true }],
"react/jsx-indent": [1, 4],
"linebreak-style": 0,
"react/jsx-filename-extension": 0,
"react/prefer-stateless-function": 0,
"react/prop-types": 0,
"react/jsx-indent-props": [2, 4],
"react/forbid-prop-types": 0,
"react/require-default-props": [0, { "forbidDefaultForRequired": false }],
"no-mixed-operators": [
"error",
{
"groups": [
["+", "-", "*", "/", "%", "**"],
["&", "|", "^", "~", "<<", ">>", ">>>"],
["==", "!=", "===", "!==", ">", ">=", "<", "<="],
["&&", "||"],
["in", "instanceof"]
],
"allowSamePrecedence": false
}
],
"object-curly-newline": 0,
"import/extensions": [0, "never", { "ts": "never" }]
},
"env": {
"browser": true,
"node": true
},
"settings": {
"import/resolver": {
"node": true,
"eslint-import-resolver-typescript": true
}
},
"globals": {
"AFRAME": true,
"THREE": true
},
"extends": ["airbnb"]
}