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:
alistair3149 2022-12-05 15:08:18 -05:00
parent aa7983dc3e
commit bb0eb49aaa
No known key found for this signature in database
2 changed files with 16 additions and 12 deletions

View file

@ -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"
}
}

View file

@ -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