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

View file

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

View file

@ -1,3 +1,5 @@
'use strict';
const wikimediaTestingUtils = require( '@wikimedia/mw-node-qunit' ); const wikimediaTestingUtils = require( '@wikimedia/mw-node-qunit' );
const fn = () => {}; 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", "@wdio/spec-reporter": "7.16.13",
"@wikimedia/mw-node-qunit": "7.0.0", "@wikimedia/mw-node-qunit": "7.0.0",
"@wikimedia/types-wikimedia": "0.3.4", "@wikimedia/types-wikimedia": "0.3.4",
"eslint-config-wikimedia": "0.25.0", "eslint-config-wikimedia": "0.25.1",
"grunt-banana-checker": "0.11.0", "grunt-banana-checker": "0.11.0",
"jest": "27.4.7", "jest": "27.4.7",
"stylelint-config-wikimedia": "0.15.0", "stylelint-config-wikimedia": "0.16.1",
"typescript": "4.3.5", "typescript": "4.3.5",
"wdio-mediawiki": "2.1.0" "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, "root": true,
"extends": [ "extends": [
"../../.eslintrc.json" "../../resources/.eslintrc.json"
], ],
"env": { "env": {
"jest": true "jest": true

View file

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