build: Upgrade eslint-config-wikimedia 0.12.0, drop grunt-jsonlint
Change-Id: Ie5c456ce74674194fd10b3e05a283f32bac60f2f
This commit is contained in:
18
Gruntfile.js
18
Gruntfile.js
@@ -4,7 +4,6 @@ module.exports = function ( grunt ) {
|
|||||||
|
|
||||||
grunt.loadNpmTasks( 'grunt-banana-checker' );
|
grunt.loadNpmTasks( 'grunt-banana-checker' );
|
||||||
grunt.loadNpmTasks( 'grunt-eslint' );
|
grunt.loadNpmTasks( 'grunt-eslint' );
|
||||||
grunt.loadNpmTasks( 'grunt-jsonlint' );
|
|
||||||
grunt.loadNpmTasks( 'grunt-stylelint' );
|
grunt.loadNpmTasks( 'grunt-stylelint' );
|
||||||
grunt.loadNpmTasks( 'grunt-svgmin' );
|
grunt.loadNpmTasks( 'grunt-svgmin' );
|
||||||
|
|
||||||
@@ -12,9 +11,15 @@ module.exports = function ( grunt ) {
|
|||||||
eslint: {
|
eslint: {
|
||||||
options: {
|
options: {
|
||||||
reportUnusedDisableDirectives: true,
|
reportUnusedDisableDirectives: true,
|
||||||
|
extensions: [ '.js', '.json' ],
|
||||||
cache: true
|
cache: true
|
||||||
},
|
},
|
||||||
all: '.'
|
all: [
|
||||||
|
'**/*.js{,on}',
|
||||||
|
'!lib/**',
|
||||||
|
'!resources/js/ext.uls.webfonts.repository.js',
|
||||||
|
'!{vendor,node_modules}/**'
|
||||||
|
]
|
||||||
},
|
},
|
||||||
stylelint: {
|
stylelint: {
|
||||||
options: {
|
options: {
|
||||||
@@ -28,13 +33,6 @@ module.exports = function ( grunt ) {
|
|||||||
'!vendor/**'
|
'!vendor/**'
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
jsonlint: {
|
|
||||||
all: [
|
|
||||||
'**/*.json',
|
|
||||||
'!node_modules/**',
|
|
||||||
'!vendor/**'
|
|
||||||
]
|
|
||||||
},
|
|
||||||
banana: conf.MessagesDirs,
|
banana: conf.MessagesDirs,
|
||||||
// SVG Optimization
|
// SVG Optimization
|
||||||
svgmin: {
|
svgmin: {
|
||||||
@@ -75,6 +73,6 @@ module.exports = function ( grunt ) {
|
|||||||
} );
|
} );
|
||||||
|
|
||||||
grunt.registerTask( 'minify', 'svgmin' );
|
grunt.registerTask( 'minify', 'svgmin' );
|
||||||
grunt.registerTask( 'test', [ 'eslint', 'stylelint', 'jsonlint', 'banana' ] );
|
grunt.registerTask( 'test', [ 'eslint', 'stylelint', 'banana' ] );
|
||||||
grunt.registerTask( 'default', [ 'minify', 'test' ] );
|
grunt.registerTask( 'default', [ 'minify', 'test' ] );
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -4,11 +4,10 @@
|
|||||||
"test": "grunt test"
|
"test": "grunt test"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"eslint-config-wikimedia": "0.11.0",
|
"eslint-config-wikimedia": "0.12.0",
|
||||||
"grunt": "^1.0.4",
|
"grunt": "1.0.4",
|
||||||
"grunt-banana-checker": "0.7.0",
|
"grunt-banana-checker": "0.7.0",
|
||||||
"grunt-eslint": "21.0.0",
|
"grunt-eslint": "21.0.0",
|
||||||
"grunt-jsonlint": "1.1.0",
|
|
||||||
"grunt-stylelint": "0.10.1",
|
"grunt-stylelint": "0.10.1",
|
||||||
"grunt-svgmin": "5.0.0",
|
"grunt-svgmin": "5.0.0",
|
||||||
"stylelint-config-wikimedia": "0.5.0"
|
"stylelint-config-wikimedia": "0.5.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user