Skip to content

Commit 5cd6ac4

Browse files
committed
refactor(jshint): don't assume browser-only globals
Fixes angular#13442
1 parent 1964620 commit 5cd6ac4

29 files changed

+2129
-3773
lines changed

.jshintrc-base

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,24 @@
11
{
22
"bitwise": true,
3+
"esversion": 6,
34
"immed": true,
45
"newcap": true,
56
"noarg": true,
67
"noempty": true,
78
"nonew": true,
8-
"trailing": true,
99
"maxlen": 200,
1010
"boss": true,
1111
"eqnull": true,
1212
"expr": true,
13-
"globalstrict": true,
1413
"laxbreak": true,
1514
"loopfunc": true,
15+
"strict": "global",
1616
"sub": true,
1717
"undef": true,
18-
"indent": 2
18+
"indent": 2,
19+
20+
"globals": {
21+
"ArrayBuffer": false,
22+
"Uint8Array": false
23+
}
1924
}

0 commit comments

Comments
 (0)