mirror of
https://github.com/cosmocode/edittable.git
synced 2026-01-05 06:21:54 +00:00
chore: remove jshint in favor of eslint
This commit is contained in:
26
Gruntfile.js
26
Gruntfile.js
@ -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']);
|
||||
};
|
||||
|
||||
@ -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",
|
||||
|
||||
Reference in New Issue
Block a user