-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Innei <[email protected]>
- Loading branch information
Showing
39 changed files
with
901 additions
and
799 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
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,53 @@ | ||
import { sxzz } from '@sxzz/eslint-config' | ||
|
||
export default sxzz( | ||
[ | ||
{ | ||
languageOptions: { | ||
parserOptions: { | ||
emitDecoratorMetadata: true, | ||
experimentalDecorators: true, | ||
}, | ||
}, | ||
rules: { | ||
eqeqeq: 'off', | ||
|
||
'no-void': 0, | ||
'@typescript-eslint/consistent-type-imports': 'warn', | ||
'@typescript-eslint/consistent-type-assertions': 0, | ||
'no-restricted-syntax': 0, | ||
'unicorn/filename-case': 0, | ||
'unicorn/prefer-math-trunc': 0, | ||
|
||
'unused-imports/no-unused-vars': [ | ||
'error', | ||
{ | ||
vars: 'all', | ||
varsIgnorePattern: '^_', | ||
args: 'after-used', | ||
argsIgnorePattern: '^_', | ||
ignoreRestSiblings: true, | ||
}, | ||
], | ||
|
||
// for node server runtime | ||
'require-await': 0, | ||
'unicorn/no-array-callback-reference': 0, | ||
|
||
'node/prefer-global/process': 0, | ||
'node/prefer-global/buffer': 'off', | ||
'no-duplicate-imports': 'off', | ||
'unicorn/explicit-length-check': 0, | ||
// readable push syntax | ||
'unicorn/no-array-push-push': 0, | ||
'unicorn/prefer-top-level-await': 0, | ||
}, | ||
}, | ||
], | ||
{ | ||
prettier: true, | ||
markdown: true, | ||
vue: false, // auto detection | ||
unocss: false, // auto detection | ||
}, | ||
) |
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
Oops, something went wrong.