We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b75cb4 commit 0638c09Copy full SHA for 0638c09
.eslintrc-browser.json
@@ -10,6 +10,13 @@
10
"ecmaVersion": 3
11
},
12
13
+ // The browser env is not enabled on purpose so that code takes
14
+ // all browser-only globals from window instead of assuming
15
+ // they're available as globals. This makes it possible to use
16
+ // jQuery with tools like jsdom which provide a custom window
17
+ // implementation.
18
+ "env": {},
19
+
20
"globals": {
21
"window": true,
22
"jQuery": true,
test/.eslintrc.json
@@ -4,6 +4,9 @@
4
"extends": "../.eslintrc-browser.json",
5
6
"env": {
7
8
+ // In source the browser env is not enabled but unit tests rely on them
9
+ // too much and we don't run them in non-browser environments anyway.
"browser": true
0 commit comments