mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
4a7fc8544e
Node.js code is written more & more commonly in ES6+ so it doesn't make sense to enable it there. There are many violations in test code so it's disabled there as well. Closes gh-4615
26 lines
501 B
JSON
26 lines
501 B
JSON
{
|
|
"root": true,
|
|
|
|
"extends": "jquery",
|
|
|
|
"parserOptions": {
|
|
"ecmaVersion": 5
|
|
},
|
|
|
|
// 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
|
|
},
|
|
|
|
"rules": {
|
|
"one-var": ["error", {"var": "always"}],
|
|
"strict": ["error", "function"]
|
|
}
|
|
}
|