添加prettier、eslint

master
liuyx 2 years ago
parent 399d2a985d
commit 2174464e3f

@ -0,0 +1,18 @@
module.exports = {
env: {
browser: true,
es2021: true
},
extends: ['plugin:vue/vue3-essential', 'standard'],
overrides: [],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module'
},
plugins: ['vue'],
rules: {
'vue/multi-word-component-names': 0,
'space-before-function-paren': 0,
quotes: ['error', 'single'] // 单引号
}
}

@ -0,0 +1,9 @@
{
"useTabs": false,
"tabWidth": 2,
"printWidth": 100,
"singleQuote": true,
"trailingComma": "none",
"bracketSpacing": true,
"semi": false
}
Loading…
Cancel
Save