forked from Aqro/threejs-vanishing-suzanne
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
63 lines (57 loc) · 1.67 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
{
"extends": "airbnb",
"plugins": [
"import"
],
"parser": "babel-eslint",
"env": { "browser": true },
"globals": {
"Browser": true,
"Layout": true,
"Stage": true
},
"settings": {
"import/resolver": {
"alias": {
"map": [
["@params", "./src/js/Params.js"],
["@comps", "./src/js/components/"],
["@scene", "./src/js/scene/"],
["@ctrl", "./src/js/controllers/"],
["@shaders", "./src/js/shaders/"],
["@mat", "./src/js/shaders/materials/"],
["@passes", "./src/js/shaders/passes/"],
["@gpgpu", "./src/js/shaders/gpgpu/"],
["@helpers", "./src/js/helpers/"]
]
},
"extensions": [".js"]
}
},
"rules": {
"no-use-before-define": "off",
"react/forbid-prop-types": "off",
"react/jsx-filename-extension": ["error", { "extensions": [".js"] }],
"semi": ["error", "never"],
"key-spacing": [0],
"no-multi-spaces": [1, {
"exceptions": {
"Property": true,
"VariableDeclarator": true,
"AssignmentExpression": true
}
}],
"no-multiple-empty-lines": [1, {
"max": 4
}],
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"max-len": [1, 130],
"indent": ["error", 4, { "SwitchCase": 1 }],
"no-param-reassign": [2, { "props": false }],
"padded-blocks": ["error", { "blocks": "never", "classes": "always" }],
"object-curly-newline": ["error", {
"ObjectExpression": { "minProperties": 8, "multiline": true, "consistent": true },
"ObjectPattern": { "minProperties": 8, "multiline": true, "consistent": true }
}]
}
}