2020-06-07 02:03:55 +08:00
|
|
|
module.exports = {
|
|
|
|
root: true,
|
|
|
|
env: {
|
|
|
|
node: true,
|
2023-12-24 22:49:19 +08:00
|
|
|
// es2022: true,
|
2020-06-07 02:03:55 +08:00
|
|
|
},
|
2023-12-24 22:49:19 +08:00
|
|
|
plugins: ['vue'],
|
2020-06-07 02:03:55 +08:00
|
|
|
extends: [
|
2023-12-24 22:49:19 +08:00
|
|
|
'eslint:recommended',
|
2020-06-07 02:03:55 +08:00
|
|
|
'plugin:vue/essential',
|
2023-12-24 22:49:19 +08:00
|
|
|
'plugin:vue/strongly-recommended',
|
|
|
|
'@vue/eslint-config-airbnb',
|
2020-06-07 02:03:55 +08:00
|
|
|
],
|
2023-12-24 22:49:19 +08:00
|
|
|
parser: 'vue-eslint-parser',
|
2020-06-07 02:03:55 +08:00
|
|
|
rules: {
|
2023-12-24 22:49:19 +08:00
|
|
|
'class-methods-use-this': 'off',
|
|
|
|
'vue/multi-word-component-names': 'off',
|
|
|
|
'vue/quote-props': 'off',
|
|
|
|
'vue/first-attribute-linebreak': 'off',
|
|
|
|
'vue/no-child-content': 'off',
|
|
|
|
'vue/max-attributes-per-line': 'off',
|
|
|
|
'vue/html-indent': 'off',
|
|
|
|
'vue/html-closing-bracket-newline': 'off',
|
|
|
|
'vue/max-len': ['error', {
|
|
|
|
code: 200,
|
|
|
|
template: 200,
|
|
|
|
comments: 200,
|
|
|
|
}],
|
2020-06-07 02:03:55 +08:00
|
|
|
},
|
|
|
|
};
|