mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Thanks
synced 2024-11-23 14:36:47 +00:00
Update ESLint and fix config
Change-Id: I53da439c547b1931140a407a71284643aa7f5d49
This commit is contained in:
parent
f18aee5bbc
commit
4826b01af6
7
.eslintignore
Normal file
7
.eslintignore
Normal file
|
@ -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:
|
* Recommended options from:
|
||||||
* https://www.mediawiki.org/wiki/Manual:Coding_conventions/SVG#Exemplified_safe_configuration
|
* https://www.mediawiki.org/wiki/Manual:Coding_conventions/SVG#Exemplified_safe_configuration
|
||||||
*/
|
*/
|
||||||
|
'use strict';
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
plugins: [
|
plugins: [
|
||||||
|
@ -38,4 +39,4 @@ module.exports = {
|
||||||
pretty: true
|
pretty: true
|
||||||
},
|
},
|
||||||
multipass: true
|
multipass: true
|
||||||
}
|
};
|
||||||
|
|
|
@ -19,10 +19,7 @@ module.exports = function ( grunt ) {
|
||||||
cache: true,
|
cache: true,
|
||||||
fix: grunt.option( 'fix' )
|
fix: grunt.option( 'fix' )
|
||||||
},
|
},
|
||||||
all: [
|
all: [ '.' ]
|
||||||
'**/*.{js,json}',
|
|
||||||
'!{vendor,node_modules,docs}/**'
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
banana: conf.MessagesDirs,
|
banana: conf.MessagesDirs,
|
||||||
watch: {
|
watch: {
|
||||||
|
|
1820
package-lock.json
generated
1820
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -6,7 +6,7 @@
|
||||||
"test": "grunt test"
|
"test": "grunt test"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"eslint-config-wikimedia": "0.25.1",
|
"eslint-config-wikimedia": "0.26.0",
|
||||||
"grunt": "1.6.1",
|
"grunt": "1.6.1",
|
||||||
"grunt-banana-checker": "0.11.1",
|
"grunt-banana-checker": "0.11.1",
|
||||||
"grunt-contrib-watch": "1.1.0",
|
"grunt-contrib-watch": "1.1.0",
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{
|
{
|
||||||
|
"root": true,
|
||||||
"extends": [
|
"extends": [
|
||||||
"../../modules/.eslintrc.json",
|
"../../modules/.eslintrc.json",
|
||||||
"wikimedia/qunit"
|
"wikimedia/qunit"
|
||||||
|
|
Loading…
Reference in a new issue