-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
36 lines (36 loc) · 1.3 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
{
"env": {"browser": true, "es2017": true},
"extends": ["eslint:recommended"],
"ignorePatterns": ["common/gl-matrix.js"],
"globals": {
// utilities exports
"loadFile": "readonly", "compileShader": "readonly", "linkProgram": "readonly",
// gl-matrix exports
"glMatrix": "readonly"
},
"rules": {
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"consistent-return": "error",
"curly": ["error", "multi-line", "consistent"],
"eqeqeq": ["error", "always", {"null": "ignore"}],
"indent": ["error", 4],
"no-console": "warn",
"no-eval": "error",
"no-global-assign": "error",
"no-implied-eval": "error",
"no-new": "error",
"no-new-func": "error",
"no-new-wrappers": "error",
"no-shadow": "error",
"no-undef-init": "error",
"no-undefined": "error",
"no-unused-vars": "error",
"no-use-before-define": ["error", {"functions": false}],
"no-var": "error",
"semi-spacing": "error",
"semi-style": ["error", "last"],
"space-before-blocks": "error",
"space-before-function-paren": ["error", {"anonymous": "always", "named": "never", "asyncArrow": "always"}],
"space-unary-ops": "error"
}
}