You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Use the short name of the preset in the config.
2. Run ESLint first on non-minified files.
3. Explicitly specify environments in every config file (those settings cascade
which means we've been assuming a Node.js environment where we shouldn't have).
// The above browsers are failing a lot of tests in the ES5
8
+
// test suite at http://test262.ecmascript.org.
9
+
"parserOptions": {
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
// The above browsers are failing a lot of tests in the ES5
4
-
// test suite at http://test262.ecmascript.org.
Copy file name to clipboardExpand all lines: test/.eslintrc.json
+12-8
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,15 @@
1
1
{
2
+
"root": true,
3
+
4
+
"extends": "../.eslintrc-browser.json",
5
+
2
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.
3
10
"browser": true
4
11
},
5
-
// Support: IE <=9 only, Android <=4.0 only
6
-
// The above browsers are failing a lot of tests in the ES5
7
-
// test suite at http://test262.ecmascript.org.
8
-
"parserOptions": {
9
-
"ecmaVersion": 3
10
-
},
12
+
11
13
"globals": {
12
14
"require": false,
13
15
"define": false,
@@ -41,17 +43,19 @@
41
43
"baseURL": true,
42
44
"externalHost": true
43
45
},
46
+
44
47
"rules": {
45
48
// See https://github.com/eslint/eslint/issues/2342
46
49
"no-unused-vars": "off",
47
50
48
-
// Too much errors
51
+
// Too many errors
49
52
"max-len": "off",
50
53
"brace-style": "off",
51
54
"key-spacing": "off",
52
55
"camelcase": "off",
56
+
"strict": "off",
53
57
54
-
// Not really too much - waiting autofix features for these rules
58
+
// Not really too many - waiting for autofix features for these rules
0 commit comments