提交 1ac1b535 编写于 作者: D DebugIsFalse

Update eslint.config.mjs

上级 d5f82065
...@@ -3,13 +3,23 @@ import withNuxt from './.nuxt/eslint.config.mjs' ...@@ -3,13 +3,23 @@ import withNuxt from './.nuxt/eslint.config.mjs'
export default withNuxt({ export default withNuxt({
files: ['**/*.vue', '**/*.js'], files: ['**/*.vue', '**/*.js'],
rules: { rules: {
'indent': [2, 2], 'semi': [0],
'vue/html-indent': ['off', 'tab', { }], 'indent': ['error', 2],
'vue/html-indent': ['off', 2, {}],
'no-empty': ['error', { 'allowEmptyCatch': true }], 'no-empty': ['error', { 'allowEmptyCatch': true }],
'vue/no-v-html': 'off', 'vue/no-v-html': 'off',
'no-useless-escape': 'error', 'no-useless-escape': 'error',
'vue/no-multiple-template-root': 'off', 'vue/no-multiple-template-root': 'off',
'vue/multi-word-component-names': 0 'vue/multi-word-component-names': 0,
'array-bracket-spacing': [2, 'always'],
'quotes': [2, 'single'],
// 引号类型 `` "" ''
'object-curly-spacing': ['error', 'always'],
// 关键字后面是否要空一格
'keyword-spacing': [2, { 'before': true, 'after': true }],
// 强制最后一行空行
'no-multiple-empty-lines': ['error', { 'max': 2,'maxEOF': 1 }]
} }
}) })
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册