vue create hello-world建立项目的时候选择了Linter / Formatter,因此写代码的时候会有代码规范检查,怎么才能关闭这个校验呢vue
1.项目建立好后会生成 .eslintrc.js文件node
module.exports = { root: true, env: { node: true }, 'extends': [ 'plugin:vue/essential', // '@vue/standard',//这行注释就能够 '@vue/typescript' ], rules: { 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off', 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off' }, parserOptions: { parser: '@typescript-eslint/parser' } }
@vue/standardtypescript
这个注释掉就能够了debug