-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: use esconfig with native eslint v9
- Loading branch information
1 parent
d2fd917
commit bdb9007
Showing
9 changed files
with
491 additions
and
596 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 |
---|---|---|
|
@@ -18,4 +18,5 @@ jobs: | |
yarn typecheck | ||
yarn lint:check | ||
yarn format:check | ||
yarn knip | ||
yarn sync |
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 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,14 @@ | ||
import tseslint from "typescript-eslint"; | ||
|
||
// eslint-disable-next-line import/extensions | ||
import sharedConfig from "@nihalgonsalves/esconfig/eslint.config.shared.js"; | ||
|
||
export default tseslint.config({ ignores: ["dist"] }, ...sharedConfig, { | ||
rules: { | ||
"@typescript-eslint/no-duplicate-enum-values": "off", | ||
"@typescript-eslint/restrict-template-expressions": [ | ||
"error", | ||
{ allowNumber: true }, | ||
], | ||
}, | ||
}); |
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,5 @@ | ||
{ | ||
"$schema": "https://unpkg.com/knip@5/schema.json", | ||
"entry": ["src/index.ts!"], | ||
"project": ["**/*.{js,cjs,mjs,jsx,ts,cts,mts,tsx}"], | ||
} |
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.