Fix eslint with babel-eslint and remove unusued LimitChunkCount plugin.

This commit is contained in:
Alex Howes 2020-10-13 19:33:13 +01:00
parent e04a5a3263
commit c5fca64a67
4 changed files with 16 additions and 1 deletions

View File

@ -8,6 +8,7 @@ module.exports = {
'plugin:vue/recommended',
],
parserOptions: {
parser: "babel-eslint",
ecmaVersion: 2018,
sourceType: 'module',
},

14
package-lock.json generated
View File

@ -2458,6 +2458,20 @@
"resolved": "https://registry.npmjs.org/aws4/-/aws4-1.10.1.tgz",
"integrity": "sha512-zg7Hz2k5lI8kb7U32998pRRFin7zJlkfezGJjUc2heaD4Pw2wObakCDVzkKztTm/Ln7eiVvYsjqak0Ed4LkMDA=="
},
"babel-eslint": {
"version": "10.1.0",
"resolved": "https://registry.npmjs.org/babel-eslint/-/babel-eslint-10.1.0.tgz",
"integrity": "sha512-ifWaTHQ0ce+448CYop8AdrQiBsGrnC+bMgfyKFdi6EsPLTAWG+QfyDeM6OH+FmWnKvEq5NnBMLvlBUPKQZoDSg==",
"dev": true,
"requires": {
"@babel/code-frame": "^7.0.0",
"@babel/parser": "^7.7.0",
"@babel/traverse": "^7.7.0",
"@babel/types": "^7.7.0",
"eslint-visitor-keys": "^1.0.0",
"resolve": "^1.12.0"
}
},
"babel-plugin-dynamic-import-node": {
"version": "2.3.3",
"resolved": "https://registry.npmjs.org/babel-plugin-dynamic-import-node/-/babel-plugin-dynamic-import-node-2.3.3.tgz",

View File

@ -57,6 +57,7 @@
},
"devDependencies": {
"@vue/cli-service": "^4.5.4",
"babel-eslint": "^10.1.0",
"copyfiles": "^2.3.0",
"duplicate-package-checker-webpack-plugin": "^3.0.0",
"eslint": "^7.8.1",

View File

@ -25,7 +25,6 @@ THE SOFTWARE.
*/
const path = require('path');
const { LimitChunkCountPlugin } = require('webpack').optimize;
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
const DuplicatePackageCheckerPlugin = require('duplicate-package-checker-webpack-plugin');