-
-
Notifications
You must be signed in to change notification settings - Fork 228
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
5b3ffe8
commit 1a027d5
Showing
14 changed files
with
12,572 additions
and
5,107 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import antfu from '@antfu/eslint-config' | ||
|
||
export default antfu( | ||
{ | ||
ignores: ['dist', 'docs'], | ||
jsx: false, | ||
typescript: true, | ||
formatters: { | ||
markdown: true, | ||
}, | ||
rules: { | ||
'curly': ['error', 'multi-line'], | ||
'import/extensions': 'off', | ||
'import/order': 0, | ||
'jsdoc/check-alignment': 'error', | ||
'jsdoc/check-line-alignment': 'error', | ||
'perfectionist/sort-exports': 'error', | ||
'perfectionist/sort-imports': [ | ||
'error', | ||
{ | ||
groups: [ | ||
'builtin-type', | ||
'external-type', | ||
'internal-type', | ||
['parent-type', 'sibling-type', 'index-type'], | ||
'builtin', | ||
'external', | ||
'internal', | ||
['parent', 'sibling', 'index'], | ||
'object', | ||
'unknown', | ||
], | ||
order: 'asc', | ||
type: 'natural', | ||
}, | ||
], | ||
'perfectionist/sort-named-exports': 'error', | ||
'perfectionist/sort-named-imports': 'error', | ||
'sort-imports': 0, | ||
'style/brace-style': ['error', '1tbs', { allowSingleLine: true }], | ||
'style/quote-props': ['error', 'consistent-as-needed'], | ||
'test/no-only-tests': 'error', | ||
'unicorn/no-useless-spread': 'error', | ||
'unused-imports/no-unused-vars': ['error', { caughtErrors: 'none' }], | ||
'no-new': 0, // Disable the no-new rule | ||
'new-cap': 0, // Disable the new-cap rule | ||
'no-undef': 0, // Disable the no-undef rule | ||
}, | ||
}, | ||
) |
Oops, something went wrong.