mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-11-23 15:36:47 +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,
|
||||
fix: grunt.option( 'fix' )
|
||||
},
|
||||
all: [
|
||||
'**/*.{js,json}',
|
||||
'!{lib,vendor,node_modules,docs}/**'
|
||||
]
|
||||
all: [ '.' ]
|
||||
},
|
||||
stylelint: {
|
||||
all: [
|
||||
|
@ -38,7 +35,8 @@ module.exports = function ( grunt ) {
|
|||
watch: {
|
||||
files: [
|
||||
'.{stylelintrc,eslintrc}.json',
|
||||
'<%= eslint.all %>',
|
||||
'**/*.{js,json}',
|
||||
'!{lib,vendor,node_modules,docs}/**',
|
||||
'<%= stylelint.all %>'
|
||||
],
|
||||
tasks: 'test'
|
||||
|
|
|
@ -10,8 +10,6 @@
|
|||
],
|
||||
"rules": {
|
||||
"max-len": "off",
|
||||
"no-var": "off",
|
||||
"no-shadow": "warn",
|
||||
"compat/compat": "warn"
|
||||
"no-var": "off"
|
||||
}
|
||||
}
|
||||
|
|
2057
package-lock.json
generated
2057
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"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint-config-wikimedia": "0.25.0",
|
||||
"eslint-config-wikimedia": "0.25.1",
|
||||
"grunt": "1.6.1",
|
||||
"grunt-banana-checker": "0.11.0",
|
||||
"grunt-banana-checker": "0.11.1",
|
||||
"grunt-contrib-watch": "1.1.0",
|
||||
"grunt-eslint": "24.0.1",
|
||||
"grunt-stylelint": "0.18.0",
|
||||
"grunt-eslint": "24.3.0",
|
||||
"grunt-stylelint": "0.19.0",
|
||||
"jsdoc": "3.6.10",
|
||||
"stylelint-config-wikimedia": "0.15.0"
|
||||
"stylelint-config-wikimedia": "0.16.1"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue