mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
0fdfdd8290
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
(cherry picked from commit 4a7fc8544e
)
35 lines
690 B
JSON
35 lines
690 B
JSON
{
|
|
"root": true,
|
|
|
|
"parserOptions": {
|
|
"ecmaVersion": 5,
|
|
"sourceType": "script"
|
|
},
|
|
|
|
"overrides": [
|
|
{
|
|
"files": "jquery.js",
|
|
"extends": "../.eslintrc-browser.json",
|
|
|
|
"rules": {
|
|
// That is okay for the built version
|
|
"no-multiple-empty-lines": "off",
|
|
"one-var": "off",
|
|
|
|
// Sizzle is not compatible with jQuery code style
|
|
"no-nested-ternary": "off",
|
|
"no-unused-expressions": "off",
|
|
"no-unused-vars": "off",
|
|
"lines-around-comment": "off",
|
|
"space-in-parens": "off",
|
|
"camelcase": "off",
|
|
"computed-property-spacing": "off",
|
|
"max-len": "off",
|
|
"dot-notation": "off",
|
|
"semi-spacing": "off",
|
|
"brace-style": "off"
|
|
}
|
|
}
|
|
]
|
|
}
|