-
Notifications
You must be signed in to change notification settings - Fork 83
/
Copy path.eslintrc.json
83 lines (83 loc) · 1.91 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
{
"extends": [
"airbnb",
"prettier",
"plugin:jasmine/recommended",
"plugin:compat/recommended"
],
"plugins": [
"prettier",
"jasmine"
],
"ignorePatterns": [
"dist/",
"docs_template/",
"docs/"
],
"parserOptions": {
"ecmaVersion": 2020
},
"globals": {
"atob": true,
"btoa": true,
"document": true,
"navigator": true,
"window": true,
"XMLHttpRequest": true,
"AWS": true,
"THREE": true,
"BABYLON": true,
"expectAsync": true
},
"rules": {
// Specific rule overrides can go here.
"indent": [
"error",
2,
{
"SwitchCase": 1
}
],
"no-var": "warn",
"no-tabs": "warn",
"func-names": "off",
"object-curly-spacing": "off",
"no-param-reassign": "off",
"no-mixed-operators": "off",
"no-bitwise": "off",
"max-len": "off",
"import/no-extraneous-dependencies": "off",
// Turning off import resolution checks because they cause linting to fail
// if linting is performend before the sub-packages in this monorepo have
// been built. We'll rely instead on Webpack to catch any import resolution
// problems.
"import/no-unresolved": "off",
"no-shadow": "off",
"no-plusplus": "off",
"no-underscore-dangle": [
"warn",
{
"allowAfterThis": true,
"allowAfterSuper": true
}
],
"spaced-comment": "off",
"arrow-parens": "off",
"no-trailing-spaces": "warn",
"no-console": "off",
"comma-dangle": "off",
"no-else-return": "off",
"no-unused-vars": "warn",
"class-methods-use-this": "off",
"prefer-const": "warn",
"consistent-return": "off",
"arrow-body-style": "off",
"no-use-before-define": "off",
"default-param-last": "off"
},
"env": {
"browser": true,
"node": true,
"jasmine": true
}
}