You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
729 B
33 lines
729 B
11 months ago
|
module.exports = {
|
||
|
root: true,
|
||
|
env: {
|
||
|
node: true
|
||
|
},
|
||
|
'extends': [
|
||
|
'plugin:vue/essential'
|
||
|
// 'eslint:recommended'
|
||
|
],
|
||
|
parserOptions: {
|
||
|
parser: 'babel-eslint'
|
||
|
},
|
||
|
rules: {
|
||
|
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
||
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
||
|
"invalid-first-character-of-tag-name": 'off', // 忽略 template 中的三元运算符使用小于号(<)时报错
|
||
|
'vue/no-parsing-error': [2, {
|
||
|
"x-invalid-end-tag": false
|
||
|
}]
|
||
|
},
|
||
|
overrides: [
|
||
|
{
|
||
|
files: [
|
||
|
'**/__tests__/*.{j,t}s?(x)',
|
||
|
'**/tests/unit/**/*.spec.{j,t}s?(x)'
|
||
|
],
|
||
|
env: {
|
||
|
mocha: true
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
}
|