chore: remove jshint in favor of eslint

This commit is contained in:
Michael Große
2017-09-04 20:01:48 +02:00
parent 81e70ab617
commit e45581aec7
2 changed files with 2 additions and 25 deletions

View File

@ -3,40 +3,18 @@ module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'), // the package file to use
eslint: {
target: ['script']
},
jshint: {
options: {
curly: true,
forin: true,
freeze: true,
globals: {
DOKU_BASE: false,
LANG: false,
initToolbar: false
},
strict: true,
undef: true,
unused: true,
plusplus: true,
browser: true,
devel: true,
jquery: true,
qunit: true
},
all: ['_jstest/*.js', 'script/*.js', '!script/handsontable.full.js']
target: ['script', '_jstest']
},
qunit: {
all: ['_jstest/*.html']
},
watch: {
files: ['_jstest/*.js', '_jstest/*.html', 'script/*.js'],
tasks: ['qunit', 'jshint']
tasks: ['qunit', 'eslint']
}
});
grunt.loadNpmTasks('grunt-contrib-qunit');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-eslint');
grunt.registerTask('default', ['qunit']);
};

View File

@ -12,7 +12,6 @@
"eslint": "^4.5.0",
"eslint-plugin-compat": "^1.0.4",
"grunt": "^0.4.5",
"grunt-contrib-jshint": "^1.0.0",
"grunt-contrib-qunit": "^0.7.0",
"grunt-contrib-watch": "^0.6.1",
"grunt-eslint": "^20.0.0",