Update ESLint and fix config

Change-Id: I53da439c547b1931140a407a71284643aa7f5d49
这个提交包含在:
Ed Sanders 2023-11-30 11:01:52 +00:00
父节点 f18aee5bbc
当前提交 4826b01af6
共有 6 个文件被更改,包括 1182 次插入656 次删除

7
.eslintignore 普通文件
查看文件

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

查看文件

@ -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
}
};

查看文件

@ -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 自动生成的

文件差异内容过多而无法显示 加载差异

查看文件

@ -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",

查看文件

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