mirror of
https://github.com/jquery/jquery.git
synced 2024-12-09 08:04:24 +00:00
46f9810b73
This forbids unnecessary `eslint-disable` comments. Ref gh-4095 Closes gh-4520
28 lines
542 B
JSON
28 lines
542 B
JSON
{
|
|
"root": true,
|
|
|
|
"extends": "jquery",
|
|
|
|
"reportUnusedDisableDirectives": true,
|
|
|
|
"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"]
|
|
}
|
|
}
|