Browse Source

include eslint during dev

dev
Evan You 9 years ago
parent
commit
6a06b0dec0
  1. 2
      build/karma.base.config.js
  2. 6
      build/webpack.dist.dev.config.js
  3. 6
      build/webpack.ssr.dev.config.js
  4. 1
      package.json

2
build/karma.base.config.js

@ -11,7 +11,7 @@ var webpackConfig = {
loaders: [
{
test: /\.js$/,
loader: 'babel',
loader: 'babel!eslint',
exclude: /node_modules/
}
]

6
build/webpack.dist.dev.config.js

@ -17,7 +17,11 @@ module.exports = {
},
module: {
loaders: [
{ test: /\.js/, loader: 'babel', exclude: /node_modules/ }
{
test: /\.js/,
loader: 'babel!eslint',
exclude: /node_modules/
}
]
},
plugins: [

6
build/webpack.ssr.dev.config.js

@ -14,7 +14,11 @@ module.exports = {
},
module: {
loaders: [
{ test: /\.js/, loader: 'babel', exclude: /node_modules/ }
{
test: /\.js/,
loader: 'babel!eslint',
exclude: /node_modules/
}
]
}
}

1
package.json

@ -54,6 +54,7 @@
"entities": "1.1.x",
"eslint": "2.9.x",
"eslint-config-vue": "1.0.x",
"eslint-loader": "^1.3.0",
"eslint-plugin-flow-vars": "0.4.x",
"flow-bin": "0.24.x",
"http-server": "0.9.x",

Loading…
Cancel
Save