|
@@ -1,14 +1,22 @@
|
|
|
module.exports = {
|
|
module.exports = {
|
|
|
root: true,
|
|
root: true,
|
|
|
env: {
|
|
env: {
|
|
|
- node: true
|
|
|
|
|
|
|
+ node: true,
|
|
|
|
|
+ browser: true,
|
|
|
|
|
+ es2021: true
|
|
|
|
|
+ },
|
|
|
|
|
+ parser: "vue-eslint-parser",
|
|
|
|
|
+ parserOptions: {
|
|
|
|
|
+ parser: "@babel/eslint-parser", // 嵌套配置 JS 解析器
|
|
|
|
|
+ ecmaVersion: "latest",
|
|
|
|
|
+ sourceType: "module",
|
|
|
|
|
+ babelOptions: {
|
|
|
|
|
+ configFile: "./babel.config.js"
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
extends: [
|
|
extends: [
|
|
|
"plugin:vue/vue3-essential"
|
|
"plugin:vue/vue3-essential"
|
|
|
],
|
|
],
|
|
|
- parserOptions: {
|
|
|
|
|
- parser: "@babel/eslint-parser"
|
|
|
|
|
- },
|
|
|
|
|
rules: {
|
|
rules: {
|
|
|
indent: 0,
|
|
indent: 0,
|
|
|
"no-tabs": 0,
|
|
"no-tabs": 0,
|