This commit is contained in:
lik
2026-06-12 09:00:45 +08:00
parent 18e7177560
commit 2014ec4b2b
756 changed files with 91998 additions and 1 deletions

44
.eslintrc.js Normal file
View File

@@ -0,0 +1,44 @@
module.exports = {
root: true,
env: {
node: true,
browser: true,
es2021: true
},
extends: [
'eslint:recommended',
'plugin:vue/vue3-recommended'
],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module'
},
rules: {
'vue/multi-word-component-names': 'off',
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'max-len': ['warn', { code: 150 }],
'indent': ['error', 2, { SwitchCase: 1 }],
'quotes': ['error', 'single', { avoidEscape: true }],
'semi': ['error', 'never'],
'comma-dangle': ['error', 'never'],
'no-trailing-spaces': 'error',
'no-multiple-empty-lines': ['error', { max: 1 }],
'vue/html-indent': ['error', 2],
'vue/max-attributes-per-line': ['error', {
singleline: { max: 1 },
multiline: { max: 1 }
}],
'vue/html-self-closing': ['error', {
html: {
void: 'always',
normal: 'never',
component: 'always'
},
svg: 'always',
math: 'always'
}],
'vue/require-default-prop': 'off',
'vue/no-v-html': 'warn'
}
}