jquery/dist/.eslintrc.json
Michał Gołębiowski-Owczarek 4a7fc8544e
Build: Enable ESLint one-var rule for var declarations in browser code
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
2020-03-02 22:25:35 +01:00

28 lines
380 B
JSON

{
"root": true,
"parserOptions": {
"ecmaVersion": 5,
"sourceType": "script"
},
"globals": {
"define": false,
"module": true,
"Symbol": false
},
"overrides": [
{
"files": "jquery.js",
"extends": "../.eslintrc-browser.json",
"rules": {
// That is okay for the built version
"no-multiple-empty-lines": "off",
"one-var": "off"
}
}
]
}