mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
9cb124ed00
So far, we've been testing that jQuery element iteration works with polyfilled Symbol & transpiled for-of via a Node test with jsdom with the Symbol global removed. Unfortunately, jsdom now requires Symbol to be present for its internal functionality so such a test is no longer possible. Instead, it's been migrated to an iframe test with transpiled JavaScript. This PR also enables us to use ECMAScript 2017 or newer in Node.js code. Closes gh-4305
65 lines
1.2 KiB
JSON
65 lines
1.2 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,
|
|
"QUnit": false,
|
|
"ajaxTest": false,
|
|
"testIframe": false,
|
|
"createDashboardXML": false,
|
|
"createXMLFragment": 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",
|
|
"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"],
|
|
"parserOptions": {
|
|
"ecmaVersion": 2015
|
|
}
|
|
}
|
|
]
|
|
}
|