-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
61 lines (60 loc) · 1.36 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
61
{
"extends": "airbnb",
"env": {
"browser": true,
"es6": true
},
"globals": {
"mat4": true,
"vec2": true,
"vec3": true,
"vec4": true,
"quat": true,
"modelStore": true,
"currentStage": true,
"initDefaultShaderProgram": true,
"getProgramInfo": true,
"Transform": true,
"Stage": true,
"StageActor": true,
"OBJModel": true,
"DEFAULT_MODEL_NAME": true,
"ATTRIB_POS_LENGTH": true,
"ATTRIB_TEXCOORD_LENGTH": true,
"ATTRIB_NORMAL_LENGTH": true,
"VERTEX_COMPONENTS_LENGTH": true
},
"parserOptions": {
"ecmaVersion": 2017
},
"rules": {
"indent": ["error", "tab", {
"SwitchCase": 1
}],
"no-tabs": "off",
"no-mixed-spaces-and-tabs": "warn",
"no-plusplus": "off",
"no-bitwise": "warn",
"no-lone-blocks": "off",
"no-unused-vars": "off",
"no-param-reassign": "off",
"no-var": "error",
"no-console": "off",
"quotes": ["warn", "single", {
"allowTemplateLiterals": true
}],
"brace-style": ["warn", "allman", {
"allowSingleLine": true
}],
"max-len": "off",
"prefer-destructuring": "warn",
"comma-dangle": ["warn", "only-multiline"],
"implicit-arrow-linebreak": ["warn", "beside"],
"lines-between-class-members": ["off"],
"no-underscore-dangle": ["off"],
"no-undef": ["warn"],
"no-eval": ["off"],
"prefer-arrow-callback": "off"
},
"root": true
}