Update linters and remove redundant ones

eslint covers jshint and jscs rules.

Change-Id: Ieff7a050021e504575a774c7c9ba987b23380294
This commit is contained in:
Ed Sanders 2016-10-13 12:04:01 -07:00
parent da8f7fb064
commit 08aef9f5f4
3 changed files with 4 additions and 34 deletions

View file

@ -1,13 +0,0 @@
{
"adjoining-classes": false,
"box-model": false,
"box-sizing": false,
"fallback-colors": false,
"ids": false,
"important": false,
"outline-none": false,
"overqualified-elements": false,
"qualified-headings": false,
"universal-selector": false,
"unqualified-attributes": false
}

View file

@ -1,9 +1,7 @@
/* jshint node:true */
module.exports = function ( grunt ) {
grunt.loadNpmTasks( 'grunt-banana-checker' );
grunt.loadNpmTasks( 'grunt-contrib-jshint' );
grunt.loadNpmTasks( 'grunt-eslint' );
grunt.loadNpmTasks( 'grunt-jscs' );
grunt.loadNpmTasks( 'grunt-jsonlint' );
grunt.loadNpmTasks( 'grunt-stylelint' );
@ -15,19 +13,6 @@ module.exports = function ( grunt ) {
'modules/**/*.js'
]
},
jshint: {
options: {
jshintrc: true
},
all: [
'*.js',
'tests/**/*.js',
'modules/**/*.js'
]
},
jscs: {
src: '<%= jshint.all %>'
},
stylelint: {
all: [
'modules/**/*.css',
@ -46,6 +31,6 @@ module.exports = function ( grunt ) {
}
} );
grunt.registerTask( 'test', [ 'eslint', 'jshint', 'jscs', 'jsonlint', 'stylelint', 'banana' ] );
grunt.registerTask( 'test', [ 'eslint', 'jsonlint', 'stylelint', 'banana' ] );
grunt.registerTask( 'default', 'test' );
};

View file

@ -14,11 +14,9 @@
"eslint-config-wikimedia": "0.1.0",
"grunt": "1.0.1",
"grunt-banana-checker": "0.5.0",
"grunt-contrib-jshint": "1.0.0",
"grunt-eslint": "19.0.0",
"grunt-jscs": "3.0.0",
"grunt-jsonlint": "1.0.8",
"grunt-stylelint": "0.4.0",
"stylelint-config-wikimedia": "0.2.2"
"grunt-jsonlint": "1.1.0",
"grunt-stylelint": "0.6.0",
"stylelint-config-wikimedia": "0.3.0"
}
}