mirror of
https://github.com/jquery/jquery.git
synced 2024-12-09 08:04:24 +00:00
37df5cdf4e
While we have absolutely no style-related expectations to our minified file, we do care that it's valid ES 5.1. This is now verified. Also, update grunt-eslint as a newer ESLint version is required to be able to use "extends" inside of the "overrides" section. Fixes gh-3075 Closes gh-4594 Ref gh-4598
34 lines
668 B
JSON
34 lines
668 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",
|
|
|
|
// 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"
|
|
}
|
|
}
|
|
]
|
|
}
|