Dynamic Imports for Code Splitting cause: ESLint Parsing Error 'import' Dynamic Imports for Code Splitting cause: ESLint Parsing Error 'import' vue.js vue.js

Dynamic Imports for Code Splitting cause: ESLint Parsing Error 'import'


.eslintrc.js

parserOptions: {  parser: 'babel-eslint',  sourceType: 'module',  allowImportExportEverywhere: true}

Should Be:

parser: 'babel-eslint',parserOptions: {  sourceType: 'module',  allowImportExportEverywhere: true}

Source: https://eslint.org/docs/user-guide/configuring#specifying-parser

With (@vue/cli).eslintrc.json

{  "parser": "vue-eslint-parser",  "parserOptions": {    "parser": "babel-eslint",    "ecmaVersion": 8,    "sourceType": "module"  }}