40 lines
936 B
JavaScript
40 lines
936 B
JavaScript
|
|
export default {
|
||
|
|
env: {
|
||
|
|
browser: true,
|
||
|
|
es2021: true,
|
||
|
|
node: true
|
||
|
|
},
|
||
|
|
extends: [
|
||
|
|
'eslint:recommended',
|
||
|
|
'plugin:vue/vue3-recommended'
|
||
|
|
],
|
||
|
|
parserOptions: {
|
||
|
|
ecmaVersion: 'latest',
|
||
|
|
sourceType: 'module'
|
||
|
|
},
|
||
|
|
plugins: [
|
||
|
|
'vue'
|
||
|
|
],
|
||
|
|
rules: {
|
||
|
|
'vue/multi-word-component-names': 'off',
|
||
|
|
'vue/no-unused-vars': 'warn',
|
||
|
|
'vue/no-unused-components': 'warn',
|
||
|
|
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'warn',
|
||
|
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'warn',
|
||
|
|
'indent': ['error', 2],
|
||
|
|
'quotes': ['error', 'single'],
|
||
|
|
'semi': ['error', 'always'],
|
||
|
|
'no-trailing-spaces': 'error',
|
||
|
|
'comma-dangle': ['error', 'always-multiline'],
|
||
|
|
'object-curly-spacing': ['error', 'always'],
|
||
|
|
'array-bracket-spacing': ['error', 'always']
|
||
|
|
},
|
||
|
|
overrides: [
|
||
|
|
{
|
||
|
|
files: ['*.vue'],
|
||
|
|
rules: {
|
||
|
|
'indent': 'off'
|
||
|
|
}
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|