32 lines
828 B
JavaScript
32 lines
828 B
JavaScript
module.exports = {
|
|
root: true,
|
|
env: {
|
|
node: true
|
|
},
|
|
extends: ['plugin:vue/recommended', '@vue/standard'],
|
|
rules: {
|
|
// 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
|
// 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
|
'space-before-function-paren': 'off',
|
|
// 禁止在计算属性中对属性修改
|
|
'vue/no-side-effects-in-computed-properties': 'off',
|
|
// 属性空格
|
|
'vue/attribute-hyphenation': 'off',
|
|
'vue/html-closing-bracket-newline': 'off',
|
|
'vue/html-self-closing': 'off',
|
|
'vue/require-default-prop': 'off',
|
|
'vue/max-attributes-per-line': 'off'
|
|
},
|
|
parserOptions: {
|
|
parser: 'babel-eslint'
|
|
},
|
|
overrides: [
|
|
{
|
|
files: ['**/__tests__/*.{j,t}s?(x)'],
|
|
env: {
|
|
jest: true
|
|
}
|
|
}
|
|
]
|
|
}
|