Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 99bda43

Browse files
committed
eslint: define Promise and TypedArray globals in root rc file
1 parent 920a333 commit 99bda43

File tree

4 files changed

+9
-17
lines changed

4 files changed

+9
-17
lines changed

.eslintrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@
99
"env": {
1010
"commonjs": true
1111
},
12+
"globals": {
13+
"Promise": true,
14+
"Float32Array": true,
15+
"Float64Array": true,
16+
"Uint8Array": true,
17+
"Int16Array": true,
18+
"Int32Array": true,
19+
"ArrayBuffer": true
20+
},
1221
"rules": {
1322
"no-trailing-spaces": [2],
1423
"no-multiple-empty-lines": [2, {"max": 2, "maxEOF": 0}],

devtools/.eslintrc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,5 @@
33
"env": {
44
"node": true,
55
"browser": true
6-
},
7-
"globals": {
8-
"Promise": true
96
}
107
}

src/.eslintrc

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,6 @@
33
"env": {
44
"browser": true
55
},
6-
"globals": {
7-
"Promise": true,
8-
"Float32Array": true,
9-
"Uint8Array": true,
10-
"Int32Array": true,
11-
"ArrayBuffer": true
12-
},
136
"rules": {
147
"strict": [2, "global"],
158
"no-console": [2]

test/jasmine/.eslintrc

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,5 @@
33
"env": {
44
"browser": true,
55
"jasmine": true
6-
},
7-
"globals": {
8-
"Promise": true,
9-
"Float32Array": true,
10-
"Float64Array": true,
11-
"Int16Array": true,
12-
"Int32Array": true
136
}
147
}

0 commit comments

Comments
 (0)