mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
fae5fee8b4
Introduces a new test API, `includesModule`. The method returns whether a particular module like "ajax" or "deprecated" is included in the current jQuery build; it handles the slim build as well. The util was created so that we don't treat presence of particular APIs to decide whether to run a test as then if we accidentally remove an API, the tests would still not fail. Fixes gh-5069 Closes gh-5046
82 lines
1.5 KiB
JSON
82 lines
1.5 KiB
JSON
{
|
|
"root": true,
|
|
|
|
"extends": "../.eslintrc-browser.json",
|
|
|
|
"env": {
|
|
|
|
// 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.
|
|
"browser": true
|
|
},
|
|
|
|
"globals": {
|
|
"require": false,
|
|
"Promise": false,
|
|
"Symbol": false,
|
|
"trustedTypes": false,
|
|
"QUnit": false,
|
|
"ajaxTest": false,
|
|
"testIframe": false,
|
|
"createDashboardXML": false,
|
|
"createWithFriesXML": false,
|
|
"createXMLFragment": false,
|
|
"includesModule": false,
|
|
"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
|
|
},
|
|
|
|
"rules": {
|
|
// See https://github.com/eslint/eslint/issues/2342
|
|
"no-unused-vars": "off",
|
|
|
|
// Too many errors
|
|
"max-len": "off",
|
|
"brace-style": "off",
|
|
"key-spacing": "off",
|
|
"camelcase": "off",
|
|
"one-var": "off",
|
|
"strict": "off",
|
|
|
|
// Not really too many - waiting for autofix features for these rules
|
|
"lines-around-comment": "off",
|
|
"dot-notation": "off"
|
|
},
|
|
|
|
"overrides": [
|
|
{
|
|
"files": [
|
|
"data/core/jquery-iterability-transpiled-es6.js",
|
|
"data/testinit-jsdom.js"
|
|
],
|
|
"parserOptions": {
|
|
"ecmaVersion": 2015
|
|
}
|
|
},
|
|
|
|
{
|
|
"files": [
|
|
"jquery.js",
|
|
"data/testinit.js"
|
|
],
|
|
"parserOptions": {
|
|
"ecmaVersion": 2020
|
|
}
|
|
}
|
|
]
|
|
}
|