You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
768 B
JavaScript

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

module.exports = {
root: true,//此项是用来告诉eslint找当前配置文件不能往父级查找
env: {
node: true//此项指定环境的全局变量下面的配置指定为node环境
},
'extends': [
// 此项是用来配置vue.js风格就是说写代码的时候要规范的写如果你使用vs-code我觉得应该可以避免出错
'plugin:vue/essential',
// '@vue/standard'
],
parserOptions: {
//此项是用来指定eslint解析器的解析器必须符合规则babel-eslint解析器是对babel解析器的包装使其与ESLint解析
parser: 'babel-eslint'
},
rules: {
//规则配置写在这里
"no-console": "off",
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
}
}