mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RelatedArticles
synced 2024-11-24 00:05:50 +00:00
build: Update linters
Change-Id: I98cbfd20fd85cdf8bb8dc1276ebbc516992212c3
This commit is contained in:
parent
8eb55200fd
commit
1071a53446
|
@ -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"
|
} ]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 = {
|
||||||
|
|
|
@ -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
1208
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -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
17
resources/.eslintrc.json
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"root": true,
|
"root": true,
|
||||||
"extends": [
|
"extends": [
|
||||||
"../../.eslintrc.json"
|
"../../resources/.eslintrc.json"
|
||||||
],
|
],
|
||||||
"env": {
|
"env": {
|
||||||
"jest": true
|
"jest": true
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
|
"root": true,
|
||||||
"extends": [
|
"extends": [
|
||||||
"wikimedia/qunit",
|
"../../resources/.eslintrc.json",
|
||||||
"../../.eslintrc.json"
|
"wikimedia/qunit"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue