Answer the question
In order to leave comments, you need to log in
What's the problem using ESLint and VSCode?
Hi all.
The problem is that in VSCode some styling errors are triggered, and when building (npm run serve or npm run build) - others. As a result, 10,000 warnings during assembly. npm run lint ---fix doesn't fix anything at all, says everything is fine.
.eslintrc.ts :
export default {
'env': {
'browser': true,
'es2021': true,
},
'extends': [
'plugin:vue/essential',
'@vue/typescript',
'google',
],
'parserOptions': {
'ecmaVersion': 12,
'parser': '@typescript-eslint/parser',
'sourceType': 'module',
},
'plugins': [
'vue',
'@typescript-eslint',
],
'rules': {
'object-curly-spacing': ['error', 'always'],
'max-len': ['error', { 'code': 120 }],
'require-jsdoc': 0,
'semi': ['error', 'always'],
},
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question