Fix eslint missing dependencies

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2019-07-14 17:57:46 +02:00
parent 1b736f7b59
commit 842bb074d8
No known key found for this signature in database
GPG Key ID: DC2729FDD34BE99E
3 changed files with 1393 additions and 16 deletions

1373
src/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,9 +1,19 @@
{ {
"devDependencies": { "devDependencies": {
"babel-core": "^6.26.3", "babel-core": "^6.26.3",
"babel-eslint": "^10.0.1",
"babel-loader": "^7.1.5", "babel-loader": "^7.1.5",
"babel-preset-env": "^1.7.0", "babel-preset-env": "^1.7.0",
"css-loader": "^1.0.0", "css-loader": "^1.0.0",
"eslint": "^5.13.0",
"eslint-config-standard": "^12.0.0",
"eslint-friendly-formatter": "^4.0.1",
"eslint-loader": "^2.1.1",
"eslint-plugin-import": "^2.13.0",
"eslint-plugin-node": "^8.0.1",
"eslint-plugin-promise": "^4.0.1",
"eslint-plugin-standard": "^4.0.0",
"eslint-plugin-vue": "^5.2.3",
"node-sass": "^4.9.2", "node-sass": "^4.9.2",
"sass-loader": "^7.0.3", "sass-loader": "^7.0.3",
"style-loader": "^0.21.0", "style-loader": "^0.21.0",

View File

@ -1,29 +1,25 @@
const path = require('path') const path = require('path')
const webpack = require('webpack'); const webpack = require('webpack')
const VueLoaderPlugin = require('vue-loader/lib/plugin') const VueLoaderPlugin = require('vue-loader/lib/plugin')
function resolve(dir) {
return path.join(__dirname, dir)
}
module.exports = { module.exports = {
entry: './main.js', entry: './main.js',
output: { output: {
filename: 'app.js', filename: 'app.js',
path: path.resolve(__dirname, '..', 'frontend') path: path.resolve(__dirname, '..', 'frontend'),
}, },
plugins: [ plugins: [
new webpack.optimize.OccurrenceOrderPlugin(), new webpack.optimize.OccurrenceOrderPlugin(),
new webpack.DefinePlugin({ new webpack.DefinePlugin({
'process.env': { 'process.env': {
'NODE_ENV': JSON.stringify('production') NODE_ENV: JSON.stringify('production'),
} },
}), }),
new VueLoaderPlugin(), new VueLoaderPlugin(),
], ],
optimization: { optimization: {
minimize: true minimize: true,
}, },
module: { module: {
rules: [ rules: [
@ -43,11 +39,9 @@ module.exports = {
use: { use: {
loader: 'babel-loader', loader: 'babel-loader',
options: { options: {
presets: [ presets: [['env', { targets: { browsers: ['>0.25%', 'not ie 11', 'not op_mini all'] } }]],
['env', { "targets": { "browsers": [">0.25%", "not ie 11", "not op_mini all"] } }] },
] },
}
}
}, },
{ {
@ -55,6 +49,6 @@ module.exports = {
loader: 'vue-loader', loader: 'vue-loader',
}, },
] ],
} },
} }