Skip to content

Commit

Permalink
jshint working again. updated webpack config
Browse files Browse the repository at this point in the history
  • Loading branch information
Stardog committed Apr 27, 2017
1 parent 08dd8a0 commit e94bbdb
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
"name": "properties",
"version": "2.0.0",
"description": "Online property manager",
"dependencies": {
},
"dependencies": {},
"devDependencies": {
"babel-core": "^6.17.0",
"babel-loader": "^7.0.0",
Expand All @@ -12,6 +11,8 @@
"classnames": "^2.2.5",
"css-loader": "^0.28.0",
"es6-promise": "^4.0.5",
"jshint": "^2.9.4",
"jshint-loader": "^0.8.4",
"moment": "^2.15.1",
"prop-types": "^15.5.8",
"react": "^15.3.0",
Expand Down
13 changes: 10 additions & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,14 @@ module.exports = {
},
plugins: [new webpack.optimize.CommonsChunkPlugin({name: 'vendor', filename: 'vendor.js'})],
module: {
loaders: [
rules: [
{
test: /\.jsx?$/,
enforce: 'pre',
loader: 'jshint-loader',
exclude: '/node_modules/',
include: setup.APP_DIR + "/dev"
},
{
test: /\.jsx?/,
include: setup.APP_DIR,
Expand All @@ -22,7 +29,7 @@ module.exports = {
test: /\.css$/,
loader: "style-loader!css-loader"
}
]
],
},
devtool: 'source-map'
}
}
2 changes: 1 addition & 1 deletion webpack.production.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = {
},
plugins: [new webpack.optimize.CommonsChunkPlugin({name: 'vendor', filename: 'vendor.js'})],
module: {
loaders: [
rules: [
{
test: /\.jsx?/,
include: setup.APP_DIR,
Expand Down

0 comments on commit e94bbdb

Please sign in to comment.