build: Update linters

Change-Id: I98cbfd20fd85cdf8bb8dc1276ebbc516992212c3
This commit is contained in:
Ed Sanders 2023-09-12 10:56:08 +01:00 committed by Jdlrobson
parent 8eb55200fd
commit 1071a53446
8 changed files with 752 additions and 508 deletions

View file

@ -1,22 +1,12 @@
{
"root": true,
"env": {
"es6": true,
"browser": true,
"commonjs": true
},
"extends": [
"wikimedia/client-es6",
"wikimedia/jquery",
"wikimedia/mediawiki"
"wikimedia/server"
],
"parserOptions": {
"ecmaVersion": 6
},
"rules": {
"jsdoc/no-undefined-types": "off",
"no-implicit-globals": "off",
"max-len": "off",
"compat/compat": "warn"
"node/no-unsupported-features/node-builtins": [ "error", {
"version": ">=14",
"ignores": []
} ]
}
}

View file

@ -1,3 +1,5 @@
'use strict';
// For a detailed explanation regarding each configuration property, visit:
// https://jestjs.io/docs/en/configuration.html
module.exports = {

View file

@ -1,3 +1,5 @@
'use strict';
const wikimediaTestingUtils = require( '@wikimedia/mw-node-qunit' );
const fn = () => {};

1208
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -22,10 +22,10 @@
"@wdio/spec-reporter": "7.16.13",
"@wikimedia/mw-node-qunit": "7.0.0",
"@wikimedia/types-wikimedia": "0.3.4",
"eslint-config-wikimedia": "0.25.0",
"eslint-config-wikimedia": "0.25.1",
"grunt-banana-checker": "0.11.0",
"jest": "27.4.7",
"stylelint-config-wikimedia": "0.15.0",
"stylelint-config-wikimedia": "0.16.1",
"typescript": "4.3.5",
"wdio-mediawiki": "2.1.0"
}

17
resources/.eslintrc.json Normal file
View file

@ -0,0 +1,17 @@
{
"root": true,
"env": {
"browser": true,
"commonjs": true
},
"extends": [
"wikimedia/client-es6",
"wikimedia/jquery",
"wikimedia/mediawiki"
],
"rules": {
"jsdoc/no-undefined-types": "off",
"no-implicit-globals": "off",
"max-len": "off"
}
}

View file

@ -1,7 +1,7 @@
{
"root": true,
"extends": [
"../../.eslintrc.json"
"../../resources/.eslintrc.json"
],
"env": {
"jest": true

View file

@ -1,6 +1,7 @@
{
"root": true,
"extends": [
"wikimedia/qunit",
"../../.eslintrc.json"
"../../resources/.eslintrc.json",
"wikimedia/qunit"
]
}