mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-13 18:07:00 +00:00
build: Update linters
Change-Id: I7cdedec41a9960f8dce2bac3251d3d24e7999024
This commit is contained in:
parent
c21ef1461d
commit
29f8ba1162
|
@ -2,9 +2,7 @@
|
||||||
"root": true,
|
"root": true,
|
||||||
"extends": [
|
"extends": [
|
||||||
"wikimedia/client",
|
"wikimedia/client",
|
||||||
"wikimedia/jquery"
|
"wikimedia/jquery",
|
||||||
],
|
"wikimedia/mediawiki"
|
||||||
"globals": {
|
]
|
||||||
"mw": false
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,12 +7,11 @@ module.exports = function ( grunt ) {
|
||||||
grunt.initConfig( {
|
grunt.initConfig( {
|
||||||
eslint: {
|
eslint: {
|
||||||
options: {
|
options: {
|
||||||
reportUnusedDisableDirectives: true,
|
|
||||||
extensions: [ '.js', '.json' ],
|
extensions: [ '.js', '.json' ],
|
||||||
cache: true
|
cache: true
|
||||||
},
|
},
|
||||||
all: [
|
all: [
|
||||||
'**/*.js{,on}',
|
'**/*.{js,json}',
|
||||||
'!{vendor,node_modules}/**'
|
'!{vendor,node_modules}/**'
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
1057
package-lock.json
generated
1057
package-lock.json
generated
File diff suppressed because it is too large
Load diff
10
package.json
10
package.json
|
@ -4,11 +4,11 @@
|
||||||
"test": "grunt test"
|
"test": "grunt test"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"eslint-config-wikimedia": "0.12.0",
|
"eslint-config-wikimedia": "0.15.0",
|
||||||
"grunt": "1.0.4",
|
"grunt": "1.0.4",
|
||||||
"grunt-banana-checker": "0.7.0",
|
"grunt-banana-checker": "0.8.1",
|
||||||
"grunt-eslint": "21.0.0",
|
"grunt-eslint": "22.0.0",
|
||||||
"grunt-stylelint": "0.11.1",
|
"grunt-stylelint": "0.12.0",
|
||||||
"stylelint-config-wikimedia": "0.6.0"
|
"stylelint-config-wikimedia": "0.7.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -99,6 +99,8 @@ mw.libs.ve.targetLoader.addPlugin( function () {
|
||||||
setTimeout( onCaptchaLoad );
|
setTimeout( onCaptchaLoad );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
// Messages documented above
|
||||||
|
// eslint-disable-next-line mediawiki/msg-doc
|
||||||
$captchaParagraph.append( mw.message( msg ).parseDom(), '<br>', question );
|
$captchaParagraph.append( mw.message( msg ).parseDom(), '<br>', question );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue