build: Update linters

Change-Id: I1d32a8c331d7abae89d8fa539e0af4ee96935575
This commit is contained in:
Ed Sanders 2023-10-26 13:31:59 +01:00
parent a70ac9aa8a
commit a53a1bfa5e
5 changed files with 1407 additions and 689 deletions

3
.eslintignore Normal file
View file

@ -0,0 +1,3 @@
lib/
vendor/
docs/

View file

@ -19,10 +19,7 @@ module.exports = function ( grunt ) {
cache: true,
fix: grunt.option( 'fix' )
},
all: [
'**/*.{js,json}',
'!{lib,vendor,node_modules,docs}/**'
]
all: [ '.' ]
},
stylelint: {
all: [
@ -38,7 +35,8 @@ module.exports = function ( grunt ) {
watch: {
files: [
'.{stylelintrc,eslintrc}.json',
'<%= eslint.all %>',
'**/*.{js,json}',
'!{lib,vendor,node_modules,docs}/**',
'<%= stylelint.all %>'
],
tasks: 'test'

View file

@ -10,8 +10,6 @@
],
"rules": {
"max-len": "off",
"no-var": "off",
"no-shadow": "warn",
"compat/compat": "warn"
"no-var": "off"
}
}

2071
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -6,13 +6,13 @@
"test": "grunt test"
},
"devDependencies": {
"eslint-config-wikimedia": "0.25.0",
"eslint-config-wikimedia": "0.25.1",
"grunt": "1.6.1",
"grunt-banana-checker": "0.11.0",
"grunt-banana-checker": "0.11.1",
"grunt-contrib-watch": "1.1.0",
"grunt-eslint": "24.0.1",
"grunt-stylelint": "0.18.0",
"grunt-eslint": "24.3.0",
"grunt-stylelint": "0.19.0",
"jsdoc": "3.6.10",
"stylelint-config-wikimedia": "0.15.0"
"stylelint-config-wikimedia": "0.16.1"
}
}