forked from jquery/jquery
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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).
- Loading branch information
Showing
9 changed files
with
88 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"root": true, | ||
|
||
"extends": "jquery", | ||
|
||
// Support: IE <=9 only, Android <=4.0 only | ||
// The above browsers are failing a lot of tests in the ES5 | ||
// test suite at http://test262.ecmascript.org. | ||
"parserOptions": { | ||
"ecmaVersion": 3 | ||
}, | ||
|
||
// The browser env is not enabled on purpose so that code takes | ||
// all browser-only globals from window instead of assuming | ||
// they're available as globals. This makes it possible to use | ||
// jQuery with tools like jsdom which provide a custom window | ||
// implementation. | ||
"env": {}, | ||
|
||
"globals": { | ||
"window": true, | ||
"jQuery": true, | ||
"define": true, | ||
"module": true, | ||
"noGlobal": true | ||
}, | ||
|
||
"rules": { | ||
"strict": ["error", "function"] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"root": true, | ||
|
||
"extends": "jquery", | ||
|
||
"parserOptions": { | ||
"ecmaVersion": 5 | ||
}, | ||
|
||
"env": { | ||
"node": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
{ | ||
"extends": "eslint-config-jquery", | ||
"root": true, | ||
"env": { | ||
"node": true | ||
} | ||
|
||
"extends": "./.eslintrc-node.json" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,5 @@ | ||
{ | ||
// Support: IE <=9 only, Android <=4.0 only | ||
// The above browsers are failing a lot of tests in the ES5 | ||
// test suite at http://test262.ecmascript.org. | ||
"parserOptions": { | ||
"ecmaVersion": 3 | ||
}, | ||
"globals": { | ||
"window": true, | ||
"jQuery": true, | ||
"define": true, | ||
"module": true, | ||
"noGlobal": true | ||
}, | ||
"rules": { | ||
"strict": ["error", "function"] | ||
} | ||
"root": true, | ||
|
||
"extends": "../.eslintrc-browser.json" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,13 @@ | ||
{ | ||
"root": true, | ||
|
||
"extends": "../../.eslintrc-node.json", | ||
|
||
"parserOptions": { | ||
"ecmaVersion": 2015 | ||
}, | ||
|
||
"env": { | ||
"es6": true | ||
}, | ||
"extends" : "../../.eslintrc.json", | ||
"root": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"extends": "../../.eslintrc.json", | ||
"root": true | ||
"root": true, | ||
|
||
"extends": "../../.eslintrc-node.json" | ||
} |