2019-06-04 11:30:56 +08:00
|
|
|
module.exports = {
|
2019-11-06 13:31:01 +08:00
|
|
|
extends: ['plugin:vue/recommended', '@vue/standard'],
|
2019-12-17 18:09:46 +08:00
|
|
|
parserOptions: {
|
2020-03-20 22:25:39 +08:00
|
|
|
parser: 'babel-eslint'
|
2019-12-17 17:26:25 +08:00
|
|
|
},
|
2019-11-06 13:31:01 +08:00
|
|
|
rules: {
|
|
|
|
'vue/max-attributes-per-line': [
|
|
|
|
2,
|
|
|
|
{
|
|
|
|
singleline: 20,
|
|
|
|
multiline: {
|
|
|
|
max: 1,
|
|
|
|
allowFirstLine: false
|
|
|
|
}
|
|
|
|
}
|
2020-09-08 22:04:45 +08:00
|
|
|
],
|
2020-09-18 19:56:47 +08:00
|
|
|
'vue/no-template-key': 0,
|
2020-09-27 13:53:16 +08:00
|
|
|
'vue/valid-template-root': 0,
|
|
|
|
'vue/valid-v-model': 0
|
2019-12-17 16:53:20 +08:00
|
|
|
},
|
2020-02-13 20:51:40 +08:00
|
|
|
overrides: [
|
|
|
|
{
|
|
|
|
files: 'src/_icons/**/*',
|
|
|
|
rules: {}
|
2020-06-18 23:38:54 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
files: '*.spec.js',
|
|
|
|
globals: {
|
|
|
|
describe: 'readonly',
|
|
|
|
it: 'readonly'
|
|
|
|
}
|
2020-09-17 01:02:59 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
files: '*',
|
|
|
|
globals: {
|
|
|
|
__DEV__: 'readonly'
|
|
|
|
}
|
2020-02-13 20:51:40 +08:00
|
|
|
}
|
|
|
|
]
|
2019-11-06 13:31:01 +08:00
|
|
|
}
|