Step 1: Configure in vue.config.js (if not created manually)
module.exports = {
// 关闭eslint语法验证
lintOnSave: false,
devServer: {
// 关闭eslint语法验证
overlay: {
warning: false,
errors: false,
},
},
}
The second step is to configure .eslintrc (if it is not created manually)
module.exports = {
rules: {
"prettier/prettier": "off"
}
}
Turn off ts check
npm install @typescript-eslint/eslint-plugin @typescript-eslint/parser
and then create the .eslintrc file in the root directory file and write the following code to solve the problem. My browser console is completely white.
module.exports = {
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
rules: {
'import/no-anonymous-default-export': 0
}
}