2016-05-10 09:06:37 +00:00
|
|
|
{
|
2016-11-02 23:51:34 +00:00
|
|
|
"root": true,
|
|
|
|
|
|
|
|
"extends": "../.eslintrc-browser.json",
|
|
|
|
|
2016-05-10 09:12:28 +00:00
|
|
|
"env": {
|
2016-11-02 23:51:34 +00:00
|
|
|
|
|
|
|
// In source the browser env is not enabled but unit tests rely on them
|
|
|
|
// too much and we don't run them in non-browser environments anyway.
|
2016-05-10 09:12:28 +00:00
|
|
|
"browser": true
|
|
|
|
},
|
2016-11-02 23:51:34 +00:00
|
|
|
|
2016-05-10 09:12:28 +00:00
|
|
|
"globals": {
|
|
|
|
"require": false,
|
|
|
|
"Promise": false,
|
|
|
|
"Symbol": false,
|
|
|
|
"QUnit": false,
|
|
|
|
"ajaxTest": false,
|
|
|
|
"testIframe": false,
|
|
|
|
"createDashboardXML": false,
|
2022-12-14 00:41:31 +00:00
|
|
|
"createWithFriesXML": false,
|
2016-05-10 09:12:28 +00:00
|
|
|
"createXMLFragment": false,
|
2022-07-12 15:12:27 +00:00
|
|
|
"includesModule": false,
|
2016-05-10 09:12:28 +00:00
|
|
|
"moduleTeardown": false,
|
|
|
|
"url": false,
|
|
|
|
"q": false,
|
|
|
|
"jQuery": true,
|
|
|
|
"sinon": true,
|
|
|
|
"amdDefined": true,
|
|
|
|
"fireNative": true,
|
|
|
|
"Globals": true,
|
|
|
|
"hasPHP": true,
|
|
|
|
"isLocal": true,
|
|
|
|
"supportjQuery": true,
|
|
|
|
"originaljQuery": true,
|
|
|
|
"$": true,
|
|
|
|
"original$": true,
|
|
|
|
"baseURL": true,
|
|
|
|
"externalHost": true
|
|
|
|
},
|
2016-11-02 23:51:34 +00:00
|
|
|
|
2016-05-10 09:12:28 +00:00
|
|
|
"rules": {
|
|
|
|
// See https://github.com/eslint/eslint/issues/2342
|
|
|
|
"no-unused-vars": "off",
|
2016-05-10 09:06:37 +00:00
|
|
|
|
2016-11-02 23:51:34 +00:00
|
|
|
// Too many errors
|
2016-05-10 09:12:28 +00:00
|
|
|
"max-len": "off",
|
|
|
|
"brace-style": "off",
|
|
|
|
"key-spacing": "off",
|
|
|
|
"camelcase": "off",
|
2020-03-02 21:25:35 +00:00
|
|
|
"one-var": "off",
|
2016-11-02 23:51:34 +00:00
|
|
|
"strict": "off",
|
2016-05-10 09:06:37 +00:00
|
|
|
|
2016-11-02 23:51:34 +00:00
|
|
|
// Not really too many - waiting for autofix features for these rules
|
2016-05-10 09:12:28 +00:00
|
|
|
"lines-around-comment": "off",
|
|
|
|
"dot-notation": "off"
|
2019-03-04 17:30:51 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
"overrides": [
|
2023-01-23 22:20:08 +00:00
|
|
|
{
|
|
|
|
"files": [
|
|
|
|
"middleware-mockserver.js"
|
|
|
|
],
|
|
|
|
|
|
|
|
"extends": "../.eslintrc-node.json"
|
|
|
|
},
|
|
|
|
|
2019-03-04 17:30:51 +00:00
|
|
|
{
|
2019-03-11 19:03:54 +00:00
|
|
|
"files": [
|
|
|
|
"data/core/jquery-iterability-transpiled-es6.js",
|
|
|
|
"data/testinit-jsdom.js"
|
|
|
|
],
|
2019-03-04 17:30:51 +00:00
|
|
|
"parserOptions": {
|
|
|
|
"ecmaVersion": 2015
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2016-05-10 09:06:37 +00:00
|
|
|
}
|