-
Notifications
You must be signed in to change notification settings - Fork 41
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
Showing
13 changed files
with
3,853 additions
and
6,449 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
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,42 @@ | ||
// @ts-check | ||
|
||
import eslint from "@eslint/js"; | ||
import configPrettier from "eslint-config-prettier"; | ||
import tseslint from "typescript-eslint"; | ||
import globals from "globals"; | ||
|
||
export default tseslint.config( | ||
eslint.configs.recommended, | ||
...tseslint.configs.strictTypeChecked, | ||
...tseslint.configs.stylisticTypeChecked, | ||
{ | ||
languageOptions: { | ||
parserOptions: { | ||
project: true, | ||
tsconfigRootDir: import.meta.dirname, | ||
}, | ||
globals: { | ||
...globals.node, | ||
}, | ||
}, | ||
rules: { | ||
"@typescript-eslint/no-require-imports": "off", | ||
"@typescript-eslint/unbound-method": "off", | ||
}, | ||
}, | ||
/** | ||
* Javascript files. | ||
* | ||
* Ignore type-checking | ||
*/ | ||
{ | ||
files: ["**/*.{js,mjs,cjs}"], | ||
...tseslint.configs.disableTypeChecked, | ||
}, | ||
|
||
/** | ||
* Disable rules that could conflict with prettier. | ||
* This should be the last rule. | ||
*/ | ||
configPrettier, | ||
); |
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
Oops, something went wrong.