安装完依赖后,项目的根目录下会自动生成 .eslintrc.cjs 文件如下:
module.exports = { "env": { "browser": true, "es2021": true }, "extends": [ "standard-with-typescript", "plugin:vue/vue3-essential" ], "overrides": [ { "env": { "node": true }, "files": [ ".eslintrc.{js,cjs}" ], "parserOptions": { "sourceType": "script" } } ], "parserOptions": { "ecmaVersion": "latest", "sourceType": "module" }, "plugins": [ "vue" ], "rules": { } }
标签:module,ESLint,env,true,vite,vu3 From: https://www.cnblogs.com/alanaZ/p/17622872.html