From d51d4248200c9d3b0ba8884fadd85531924617d2 Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Mon, 5 Jun 2017 09:37:08 +0900 Subject: [PATCH] Use jshint-cli instead of grunt-jshint (#2064) --- Gruntfile.coffee | 8 -------- package.json | 4 ++-- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/Gruntfile.coffee b/Gruntfile.coffee index 49b235d..a02ea7d 100644 --- a/Gruntfile.coffee +++ b/Gruntfile.coffee @@ -3,13 +3,6 @@ module.exports = (grunt) -> grunt.initConfig - jshint: - c3: 'src/**/*.js' - spec: 'spec/**/*.js' - options: - reporter: require('jshint-stylish') - jshintrc: '.jshintrc' - uglify: c3: files: @@ -20,5 +13,4 @@ module.exports = (grunt) -> src: 'c3.css' dest: 'c3.min.css' - grunt.registerTask 'lint', ['jshint'] grunt.registerTask 'minify', ['cssmin', 'uglify'] diff --git a/package.json b/package.json index c8abf9f..045a708 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "serve": "static -p 8080 htdocs/", "prepublish": "npm run dist", - "lint": "grunt lint", + "lint": "jshint --reporter=node_modules/jshint-stylish src/ spec/", "build": "npm run build:js && npm run build:css", "build:js": "rollup -f umd --name c3 --globals d3:d3 src/index.js > c3.js", "build:css": "node-sass src/scss/main.scss > c3.css", @@ -36,9 +36,9 @@ "grunt": "^0.4.5", "grunt-cli": "^1.2.0", "grunt-contrib-cssmin": "^0.10.0", - "grunt-contrib-jshint": "^1.0.0", "grunt-contrib-uglify": "~0.4.0", "jasmine-core": "^2.3.4", + "jshint": "^2.9.4", "jshint-stylish": "^2.1.0", "karma": "^0.13.10", "karma-coverage": "^0.5.2",