有错误提示和快捷键自动修复。html
我安装的插件vue
注意: 需提早安装好node环境node
// 除了eslint是必须的,能够按需安装 npm i -g eslint eslint-config-standard eslint-plugin-html eslint-plugin-import eslint-plugin-node eslint-plugin-promise
node和eslint的路径是软件自动获取的,记得选中enable;去设置里面设置你的自动修复快捷键git
// https://eslint.org/docs/user-guide/configuring // 本身按需配置咯 module.exports = { root: true, parser: 'babel-eslint', parserOptions: { sourceType: 'module' }, env: { browser: true }, // https://github.com/standard/standard/blob/master/docs/RULES-en.md extends: 'standard', // required to lint *.vue files plugins: [ 'html' ], // add your custom rules here rules: { // allow async-await 'generator-star-spacing': 'off', // allow debugger during development 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off' } }