-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
657a1b4
commit 90ec71c
Showing
4 changed files
with
51 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,50 @@ | ||
// @ts-check | ||
import antfu from '@antfu/eslint-config' | ||
|
||
export default antfu({ | ||
unocss: true, | ||
formatters: true, | ||
export default antfu( | ||
{ | ||
unocss: true, | ||
formatters: true, | ||
|
||
ignores: [ | ||
'dist/', | ||
'public/', | ||
'docs/.vuepress/.cache/', | ||
'docs/.vuepress/.temp/', | ||
'docs/.vuepress/public/', | ||
'docs/.vuepress/public/assets/js/', | ||
'docs/.vuepress/public/zhaobc.site/', | ||
'**/*.d.ts', | ||
], | ||
|
||
rules: { | ||
// override default options for rules from base configurations | ||
'quote-props': ['warn', 'as-needed'], | ||
'style/quote-props': ['warn', 'as-needed'], | ||
// 'comma-dangle': ['warn', 'only-multiline'], | ||
'comma-dangle': [ | ||
'error', | ||
{ | ||
arrays: 'only-multiline', | ||
objects: 'only-multiline', | ||
imports: 'always-multiline', | ||
exports: 'always-multiline', | ||
functions: 'only-multiline', | ||
}, | ||
ignores: [ | ||
'dist/', | ||
'public/', | ||
'docs/.vuepress/.cache/', | ||
'docs/.vuepress/.temp/', | ||
'docs/.vuepress/public/', | ||
'docs/.vuepress/public/assets/js/', | ||
'docs/.vuepress/public/zhaobc.site/', | ||
'**/*.d.ts', | ||
], | ||
'@typescript-eslint/comma-dangle': 'off', | ||
'@typescript-eslint/brace-style': 'off', | ||
'style/brace-style': ['warn', '1tbs'], | ||
'arrow-parens': ['warn', 'as-needed'], | ||
'style/arrow-parens': ['warn', 'as-needed'], | ||
curly: ['warn', 'all'], | ||
'no-unused-vars': ['warn'], | ||
'vue/no-unused-refs': ['warn'], | ||
'eslint-comments/no-unlimited-disable': ['warn'], | ||
'style/max-statements-per-line': ['warn'], | ||
'vue/no-irregular-whitespace': ['warn'], | ||
'no-irregular-whitespace': ['warn'], | ||
}, | ||
}) | ||
{ | ||
rules: { | ||
// override default options for rules from base configurations | ||
'quote-props': ['warn', 'as-needed'], | ||
'style/quote-props': ['warn', 'as-needed'], | ||
// 'comma-dangle': ['warn', 'only-multiline'], | ||
'comma-dangle': [ | ||
'error', | ||
{ | ||
arrays: 'only-multiline', | ||
objects: 'only-multiline', | ||
imports: 'always-multiline', | ||
exports: 'always-multiline', | ||
functions: 'only-multiline', | ||
}, | ||
], | ||
'@typescript-eslint/comma-dangle': 'off', | ||
'@typescript-eslint/brace-style': 'off', | ||
'style/brace-style': ['warn', '1tbs'], | ||
'arrow-parens': ['warn', 'as-needed'], | ||
'style/arrow-parens': ['warn', 'as-needed'], | ||
curly: ['warn', 'all'], | ||
'no-unused-vars': ['warn'], | ||
'vue/no-unused-refs': ['warn'], | ||
'eslint-comments/no-unlimited-disable': ['warn'], | ||
'style/max-statements-per-line': ['warn'], | ||
'vue/no-irregular-whitespace': ['warn'], | ||
'no-irregular-whitespace': ['warn'], | ||
}, | ||
} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters