Skip to content

Commit

Permalink
use eslint instead of jshint/jscs - many errors though
Browse files Browse the repository at this point in the history
for #1508
  • Loading branch information
gordonwoodhull committed May 24, 2019
1 parent 25a82e5 commit 5c06cf5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 22 deletions.
25 changes: 5 additions & 20 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ module.exports = function (grunt) {
}
}
},
jscs: {
eslint: {
source: {
src: [
'<%= conf.src %>/**/*.js',
Expand All @@ -91,24 +91,9 @@ module.exports = function (grunt) {
'Gruntfile.js',
'grunt/*.js',
'<%= conf.web %>/stock.js'],
options: {
config: '.jscsrc'
}
}
},
jshint: {
source: {
src: [
'<%= conf.src %>/**/*.js',
'!<%= conf.src %>/{banner,footer,d3v3-compat}.js',
'<%= conf.spec %>/**/*.js',
'Gruntfile.js',
'grunt/*.js',
'<%= conf.web %>/stock.js'
],
options: {
jshintrc: '.jshintrc'
}
},
options: {
configFile: '.eslintrc'
}
},
watch: {
Expand Down Expand Up @@ -521,7 +506,7 @@ module.exports = function (grunt) {
grunt.registerTask('coverage', ['build', 'copy', 'karma:coverage']);
grunt.registerTask('ci', ['ci-pull', 'safe-sauce-labs']);
grunt.registerTask('ci-pull', ['build', 'copy', 'karma:ci']);
grunt.registerTask('lint', ['jshint', 'jscs']);
grunt.registerTask('lint', ['eslint']);
grunt.registerTask('default', ['build', 'shell:hooks']);
grunt.registerTask('doc-debug', ['build', 'jsdoc', 'jsdoc2md', 'watch:jsdoc2md']);
};
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,12 @@
"grunt-contrib-copy": "~1.0",
"grunt-contrib-cssmin": "3.x",
"grunt-contrib-jasmine": "^2.0.3",
"grunt-contrib-jshint": "~1.1",
"grunt-contrib-uglify": "^4.0.1",
"grunt-contrib-watch": "^1.1.0",
"grunt-docco2": "^0.2.1",
"grunt-eslint": "^21.0.0",
"grunt-fileindex": "~0.1",
"grunt-gh-pages": "^3.1.0",
"grunt-jscs": "~3.0",
"grunt-jsdoc": "^2.4.0",
"grunt-jsdoc-to-markdown": "4.x",
"grunt-karma": "^3.0.2",
Expand Down

0 comments on commit 5c06cf5

Please sign in to comment.