Update ESLint and fix config

Change-Id: I53da439c547b1931140a407a71284643aa7f5d49
This commit is contained in:
Ed Sanders 2023-11-30 11:01:52 +00:00
parent f18aee5bbc
commit 4826b01af6
6 changed files with 1182 additions and 656 deletions

7
.eslintignore Normal file
View file

@ -0,0 +1,7 @@
/vendor/
/docs/
# Language files written automatically by TranslateWiki
/**/i18n/**/*.json
!/**/i18n/**/en.json
!/**/i18n/**/qqq.json

View file

@ -4,6 +4,7 @@
* Recommended options from:
* https://www.mediawiki.org/wiki/Manual:Coding_conventions/SVG#Exemplified_safe_configuration
*/
'use strict';
module.exports = {
plugins: [
@ -38,4 +39,4 @@ module.exports = {
pretty: true
},
multipass: true
}
};

View file

@ -19,10 +19,7 @@ module.exports = function ( grunt ) {
cache: true,
fix: grunt.option( 'fix' )
},
all: [
'**/*.{js,json}',
'!{vendor,node_modules,docs}/**'
]
all: [ '.' ]
},
banana: conf.MessagesDirs,
watch: {

1820
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -6,7 +6,7 @@
"test": "grunt test"
},
"devDependencies": {
"eslint-config-wikimedia": "0.25.1",
"eslint-config-wikimedia": "0.26.0",
"grunt": "1.6.1",
"grunt-banana-checker": "0.11.1",
"grunt-contrib-watch": "1.1.0",

View file

@ -1,4 +1,5 @@
{
"root": true,
"extends": [
"../../modules/.eslintrc.json",
"wikimedia/qunit"