-
-
Notifications
You must be signed in to change notification settings - Fork 252
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
b4577e4
commit d1a59d7
Showing
10 changed files
with
2,715 additions
and
685 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ | |
!/tsconfig-*.json | ||
!/.prettierignore | ||
/benchmark-*.json | ||
!eslint.config.mjs |
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,55 @@ | ||
import eslint from '@eslint/js' | ||
import tseslint from 'typescript-eslint' | ||
|
||
export default tseslint.config( | ||
{ | ||
ignores: [ | ||
'.tap/', | ||
'tap-snapshots/', | ||
'dist/', | ||
'benchmark/', | ||
'eslint.config.mjs', | ||
'map.js', | ||
], | ||
}, | ||
eslint.configs.recommended, | ||
...tseslint.configs.recommended, | ||
...tseslint.configs.recommendedTypeChecked, | ||
{ | ||
languageOptions: { | ||
parserOptions: { | ||
projectService: true, | ||
tsconfigRootDir: import.meta.dirname, | ||
}, | ||
}, | ||
}, | ||
{ | ||
files: ['**/test/**/*.ts'], | ||
rules: { | ||
'no-empty': 'off', | ||
'@typescript-eslint/require-await': 'off', | ||
'@typescript-eslint/no-unnecessary-type-assertion': 'off', | ||
'@typescript-eslint/ban-ts-comment': [ | ||
'error', | ||
{ | ||
minimumDescriptionLength: 0, | ||
}, | ||
], | ||
'@typescript-eslint/no-floating-promises': [ | ||
'error', | ||
{ | ||
allowForKnownSafeCalls: [ | ||
'test', | ||
'rejects', | ||
'resolveMatch', | ||
'resolves', | ||
].map(name => ({ | ||
name, | ||
from: 'package', | ||
package: 'tap', | ||
})), | ||
}, | ||
], | ||
}, | ||
}, | ||
) |
Oops, something went wrong.