mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-11-27 17:20:01 +00:00
build: Update linters
Change-Id: I1d32a8c331d7abae89d8fa539e0af4ee96935575
This commit is contained in:
parent
a70ac9aa8a
commit
a53a1bfa5e
3
.eslintignore
Normal file
3
.eslintignore
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
lib/
|
||||||
|
vendor/
|
||||||
|
docs/
|
|
@ -19,10 +19,7 @@ module.exports = function ( grunt ) {
|
||||||
cache: true,
|
cache: true,
|
||||||
fix: grunt.option( 'fix' )
|
fix: grunt.option( 'fix' )
|
||||||
},
|
},
|
||||||
all: [
|
all: [ '.' ]
|
||||||
'**/*.{js,json}',
|
|
||||||
'!{lib,vendor,node_modules,docs}/**'
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
stylelint: {
|
stylelint: {
|
||||||
all: [
|
all: [
|
||||||
|
@ -38,7 +35,8 @@ module.exports = function ( grunt ) {
|
||||||
watch: {
|
watch: {
|
||||||
files: [
|
files: [
|
||||||
'.{stylelintrc,eslintrc}.json',
|
'.{stylelintrc,eslintrc}.json',
|
||||||
'<%= eslint.all %>',
|
'**/*.{js,json}',
|
||||||
|
'!{lib,vendor,node_modules,docs}/**',
|
||||||
'<%= stylelint.all %>'
|
'<%= stylelint.all %>'
|
||||||
],
|
],
|
||||||
tasks: 'test'
|
tasks: 'test'
|
||||||
|
|
|
@ -10,8 +10,6 @@
|
||||||
],
|
],
|
||||||
"rules": {
|
"rules": {
|
||||||
"max-len": "off",
|
"max-len": "off",
|
||||||
"no-var": "off",
|
"no-var": "off"
|
||||||
"no-shadow": "warn",
|
|
||||||
"compat/compat": "warn"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
2071
package-lock.json
generated
2071
package-lock.json
generated
File diff suppressed because it is too large
Load diff
10
package.json
10
package.json
|
@ -6,13 +6,13 @@
|
||||||
"test": "grunt test"
|
"test": "grunt test"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"eslint-config-wikimedia": "0.25.0",
|
"eslint-config-wikimedia": "0.25.1",
|
||||||
"grunt": "1.6.1",
|
"grunt": "1.6.1",
|
||||||
"grunt-banana-checker": "0.11.0",
|
"grunt-banana-checker": "0.11.1",
|
||||||
"grunt-contrib-watch": "1.1.0",
|
"grunt-contrib-watch": "1.1.0",
|
||||||
"grunt-eslint": "24.0.1",
|
"grunt-eslint": "24.3.0",
|
||||||
"grunt-stylelint": "0.18.0",
|
"grunt-stylelint": "0.19.0",
|
||||||
"jsdoc": "3.6.10",
|
"jsdoc": "3.6.10",
|
||||||
"stylelint-config-wikimedia": "0.15.0"
|
"stylelint-config-wikimedia": "0.16.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue