mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-23 22:13:38 +00:00
chore(ci): 🔧 👷 make es-x eslint rules warn instead of error
They will be addressed when we are rewriting the modules to ES6
This commit is contained in:
parent
aa7983dc3e
commit
bb0eb49aaa
|
@ -4,22 +4,27 @@
|
|||
"wikimedia/client-es6",
|
||||
"wikimedia/mediawiki"
|
||||
],
|
||||
"env": {
|
||||
"browser": true
|
||||
},
|
||||
"globals": {
|
||||
"require": "readonly",
|
||||
"module": "readonly"
|
||||
"exports": true
|
||||
},
|
||||
"rules": {
|
||||
"one-var": "off",
|
||||
"//": [
|
||||
"off",
|
||||
"ResourceLoader's `packageFiles` do not require wrapping but the `module` option is only available in ES6+."
|
||||
],
|
||||
"no-implicit-globals": "off",
|
||||
"es/no-object-fromentries": "off",
|
||||
"es/no-object-entries": "off",
|
||||
"no-implicit-globals": "warn",
|
||||
"es-x/no-async-functions": "warn",
|
||||
"es-x/no-object-fromentries": "warn",
|
||||
"es-x/no-object-entries": "warn",
|
||||
"es-x/no-object-values": "warn",
|
||||
"es-x/no-array-prototype-includes": "warn",
|
||||
"es-x/no-optional-chaining": "warn",
|
||||
"es-x/no-nullish-coalescing-operators": "warn",
|
||||
"es-x/no-symbol-prototype-description": "warn",
|
||||
"compat/compat": "warn",
|
||||
"mediawiki/class-doc": "off"
|
||||
},
|
||||
"parserOptions": {
|
||||
"ecmaVersion": 11
|
||||
"ecmaVersion": 11,
|
||||
"sourceType": "module"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -84,7 +84,6 @@ function convertDataToResults( data ) {
|
|||
return [];
|
||||
}
|
||||
|
||||
/* eslint-disable-next-line compat/compat, es/no-object-values */
|
||||
data = Object.values( data.query.pages );
|
||||
|
||||
// Sort the data with the index property since it is not in order
|
||||
|
|
Loading…
Reference in a new issue