-
Notifications
You must be signed in to change notification settings - Fork 17
/
.eslintrc.json
141 lines (130 loc) · 3.93 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
},
"extends": [
"standard",
"eslint:recommended"
],
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": 6,
"requireConfigFile": false
},
"globals": {
"process": "writable",
"module": "writable",
"ige": "writable",
"$":"writable",
"window":"writable",
"IgeEntityBox2d": "writable",
"Item": "writable",
"FloatingText": "writable",
"localStorage": "writable",
"IgeArray": "writable",
"IgeBase": "writable",
"IgeBaseScene": "writable",
"IgeCamera": "writable",
"IgeCellSheet": "writable",
"IgeClass": "writable",
"IgeCollisionMap2d": "writable",
"IgeDummyCanvas": "writable",
"IgeDummyContext": "writable",
"IgeEngine": "writable",
"IgeEntity": "writable",
"IgeEventingClass": "writable",
"IgeFilters": "writable",
"IgeFontEntity": "writable",
"IgeFontSheet": "writable",
"IgeFSM": "writable",
"IgeInterval": "writable",
"IgeMap2d": "writable",
"IgeMapStack2d": "writable",
"IgeMatrix2d": "writable",
"IgeObject": "writable",
"IgeParticle": "writable",
"IgeParticleEmitter": "writable",
"IgePathFinder": "writable",
"IgePathNode": "writable",
"IgePoint2d": "writable",
"IgePoint3d": "writable",
"IgePoly2d": "writable",
"IgeQuest": "writable",
"IgeRect": "writable",
"IgeScene2d": "writable",
"IgeSceneGraph": "writable",
"IgeSpriteSheet": "writable",
"IgeTexture": "writable",
"IgeTextureAtlas": "writable",
"IgeTextureMap": "writable",
"IgeTileMap2d": "writable",
"IgeTimeout": "writable",
"IgeTween": "writable",
"IgeUiElement": "writable",
"IgeUiEntity": "writable",
"IgeViewport": "writable"
},
"plugins": [
"prefer-arrow",
"import",
"node",
"promise"
],
"rules": {
// Eval should never be allowed, regardless of use case.
"no-eval": 2,
// } else {}
"brace-style": 1,
// Indents should be four spaces.
"indent": [1, "tab", { "SwitchCase": 1 }],
// Semicolons and singlequotes should always be used.
"semi": [2, "always"],
"quotes": [2, "single"], // Backticks preferrably?
// Use templating strings with backticks whenever possible.
"prefer-template": 1,
// Prefer fat arrow functions.
// "prefer-arrow-callback": 1,
// "arrow-body-style": ["warn", "as-needed"],
// "prefer-arrow/prefer-arrow-functions": ["warn", {
// "disallowPrototype": true,
// "singleReturnOnly": true,
// "classPropertiesAllowed": false
// }],
// ESLint globals have not been configured for these.
"no-undef": 0,
"no-var": 0,
"no-use-before-define": 0,
"no-unused-vars": 0,
"no-unused-expressions": 0,
"no-void": 0,
"prefer-const": 0,
// Unnecessary.
"no-mixed-operators": 0,
// More redundant manual linting.
"new-cap": 0,
"eqeqeq": 0,
"curly": 0,
"camelcase": 0,
"no-sequences": 0,
"no-tabs": 0,
"no-mixed-spaces-and-tabs": 0,
"prefer-regex-literals": 0,
"no-useless-escape": 0,
"no-func-assign": 0,
"no-global-assign": 0,
"no-self-assign": 0,
"func-style": 0,
"no-proto": 0,
"no-undef-init": 0,
"no-unsafe-finally": 0,
"no-return-assign": 0,
"no-redeclare": 0,
"array-callback-return": 0,
"no-prototype-builtins": 0,
"no-case-declarations": 0,
"use-isnan": 0
}
}