Skip to content

Commit

Permalink
Linting in Webpack - Correcting loader
Browse files Browse the repository at this point in the history
Hi,

I think 'eslint-loader' should be used instead `eslint`. The later will give the following error.


```
path/to/eslint/lib/api.js didn't return a function
 @ multi main
webpack: bundle is now VALID.
```

Someone talked about it as well in survivejs#3.

I'm new to eslint, so I hope this is correct.
  • Loading branch information
kamotos committed Feb 25, 2016
1 parent 629c37c commit e5cfdc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manuscript/11_linting_in_webpack.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ var common = {
preLoaders: [
{
test: /\.jsx?$/,
loaders: ['eslint'],
loaders: ['eslint-loader'],
include: PATHS.app
}
]
Expand Down

0 comments on commit e5cfdc8

Please sign in to comment.