mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
cbc8638c38
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).
32 lines
687 B
JSON
32 lines
687 B
JSON
{
|
|
"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"]
|
|
}
|
|
}
|