Skip to content
This repository was archived by the owner on Mar 27, 2022. It is now read-only.

Commit

Permalink
更新依赖
Browse files Browse the repository at this point in the history
  • Loading branch information
lyswhut committed Jan 14, 2022
1 parent aa38dae commit 6f0f196
Show file tree
Hide file tree
Showing 6 changed files with 2,300 additions and 2,256 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"plugins": [
"html"
],
"parser": "babel-eslint",
"parser": "@babel/eslint-parser",
"rules": {
"no-new": "off",
"camelcase": "off",
Expand Down
18 changes: 18 additions & 0 deletions .ncurc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
module.exports = {
upgrade: true,
// target: 'newest',
reject: [
'webpack-dev-server',
'webpack-cli',
'webpack',
'css-loader',
'less',
'less-loader',
'mini-css-extract-plugin',
'optimize-css-assets-webpack-plugin',
'postcss-loader',
'stylus',
'stylus-loader',
'terser-webpack-plugin',
]
}
5 changes: 5 additions & 0 deletions build-config/webpack.config.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin')
const VueLoaderPlugin = require('vue-loader/lib/plugin')
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
const CleanCSSPlugin = require('less-plugin-clean-css')
const ESLintPlugin = require('eslint-webpack-plugin')

const vueLoaderConfig = require('./vue-loader.config')

Expand Down Expand Up @@ -133,6 +134,10 @@ module.exports = {
},
plugins: [
new VueLoaderPlugin(),
new ESLintPlugin({
extensions: ['js', 'vue'],
formatter: require('eslint-formatter-friendly'),
}),
new FriendlyErrorsPlugin({
clearConsole: false,
}),
Expand Down
9 changes: 0 additions & 9 deletions build-config/webpack.config.client.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,6 @@ const config = merge(baseConfig, {
loader: 'babel-loader',
exclude: /node_modules/,
},
{
test: /\.(vue|js)$/,
loader: 'eslint-loader',
options: {
formatter: require('eslint-formatter-friendly'),
},
exclude: /node_modules/,
enforce: 'pre',
},
],
},
})
Expand Down
Loading

0 comments on commit 6f0f196

Please sign in to comment.