settings.json
{
"eslint.validate": ["vue", "javascript", "html"],
"eslint.alwaysShowStatus": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"editor.tabSize": 2,
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
"editor.formatOnSave": true,
"vetur.format.defaultFormatter.js": "none",
"vetur.format.defaultFormatter.css": "none",
"vetur.format.defaultFormatter.html": "prettier",
"vetur.format.defaultFormatter.less": "none",
"vetur.format.defaultFormatter.postcss": "none",
"vetur.format.defaultFormatter.pug": "none",
"[vue]": {
"editor.defaultFormatter": "octref.vetur"
}
}
.eslintrc.js
주석 처리한 부분이 문제가 되어서 다 삭제 했다!
(// "plugin:vue/essential" 여긴 원래 주석이었다)
module.exports = {
root: true,
env: {
node: true
},
extends: [
// "plugin:vue/essential",
'plugin:vue/recommended',
'eslint:recommended',
// 'plugin:prettier/recommended'
],
parserOptions: {
parser: '@babel/eslint-parser'
},
rules: {
// 'prettier/prettier': [
// 'error',
// {
// singleQuote: true,
// semi: false,
// useTabs: false,
// tabWidth: 2,
// trailingComma: 'none',
// printWidth: 120,
// bracketSpacing: true,
// arrowParens: 'avoid',
// endOfLine: 'auto'
// }
// ],
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-unused-vars': ['warn', { vars: 'all', args: 'after-used', ignoreRestSiblings: false }],
'vue/multi-word-component-names': [
'warn',
{
ignores: ['index']
}
]
}
}
+++++++ 추가 +++++++
팀장님이 해결해주셔따리~~~ 최고