mirror of
https://github.com/wassname/generator-react-webpack.git
synced 2026-09-09 11:22:44 +08:00
Merge pull request #61 from pherris/master
make jsx hint default to resolve warnings when compiling
This commit is contained in:
@@ -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",<% } %>
|
||||
|
||||
@@ -38,7 +38,7 @@ module.exports = {
|
||||
preLoaders: [{
|
||||
test: /\.js$/,
|
||||
exclude: /node_modules/,
|
||||
loader: 'jshint'
|
||||
loader: 'jsxhint'
|
||||
}],
|
||||
loaders: [{
|
||||
test: /\.js$/,
|
||||
|
||||
@@ -44,7 +44,7 @@ module.exports = {
|
||||
preLoaders: [{
|
||||
test: /\.js$/,
|
||||
exclude: /node_modules/,
|
||||
loader: 'jshint'
|
||||
loader: 'jsxhint'
|
||||
}],
|
||||
|
||||
loaders: [{
|
||||
|
||||
Reference in New Issue
Block a user