From 9c3473b8d18bcc2b62445e9ee1a2ac9e01226196 Mon Sep 17 00:00:00 2001 From: Andrew Date: Tue, 17 Feb 2015 11:10:32 -0800 Subject: [PATCH] make jsx hint default to resolve warnings when compiling --- templates/common/_package.json | 1 + templates/common/_webpack.config.js | 2 +- templates/common/_webpack.dist.config.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/templates/common/_package.json b/templates/common/_package.json index 75830a7..4709ba7 100644 --- a/templates/common/_package.json +++ b/templates/common/_package.json @@ -34,6 +34,7 @@ "webpack-dev-server": "~1.6.5", "grunt-open": "~0.2.3", "jshint-loader": "~0.8.0", + "jsxhint-loader": "~0.2.0", "grunt-contrib-copy": "~0.5.0",<% if (es6) { %> "babel": "^4.0.0", "babel-loader": "^4.0.0",<% } %> diff --git a/templates/common/_webpack.config.js b/templates/common/_webpack.config.js index b23c0b0..7f19c55 100644 --- a/templates/common/_webpack.config.js +++ b/templates/common/_webpack.config.js @@ -34,7 +34,7 @@ module.exports = { preLoaders: [{ test: /\.js$/, exclude: /node_modules/, - loader: 'jshint' + loader: 'jsxhint' }], loaders: [{ test: /\.js$/, diff --git a/templates/common/_webpack.dist.config.js b/templates/common/_webpack.dist.config.js index 2e89773..c205b2d 100644 --- a/templates/common/_webpack.dist.config.js +++ b/templates/common/_webpack.dist.config.js @@ -40,7 +40,7 @@ module.exports = { preLoaders: [{ test: /\.js$/, exclude: /node_modules/, - loader: 'jshint' + loader: 'jsxhint' }], loaders: [{