Skip to content

Commit e488fc5

Browse files
committed
feat: migrate to flat config and add prettier plugin for package.json
1 parent adcbfca commit e488fc5

File tree

6 files changed

+26
-28
lines changed

6 files changed

+26
-28
lines changed

bun.lock

Lines changed: 13 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

eslint.config.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

eslint.config.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import config from "@echristian/eslint-config"
2+
3+
export default config({
4+
prettier: {
5+
plugins: ["prettier-plugin-packagejson"],
6+
},
7+
})

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,10 @@
5454
"@types/bun": "^1.2.4",
5555
"bumpp": "^10.0.3",
5656
"eslint": "^9.22.0",
57+
"jiti": "^2.4.2",
5758
"knip": "^5.45.0",
5859
"lint-staged": "^15.4.3",
60+
"prettier-plugin-packagejson": "^2.5.10",
5961
"simple-git-hooks": "^2.11.1",
6062
"tsup": "^8.4.0",
6163
"typescript": "^5.8.2"

src/lib/port.ts

Lines changed: 0 additions & 19 deletions
This file was deleted.

tsconfig.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"compilerOptions": {
33
// Enable latest features
4-
"lib": ["ESNext", "DOM"],
54
"target": "ESNext",
5+
"lib": ["ESNext"],
66
"module": "ESNext",
7-
"moduleDetection": "force",
8-
"jsx": "react-jsx",
9-
"allowJs": true,
7+
"skipLibCheck": true,
8+
9+
1010

1111
// Bundler mode
1212
"moduleResolution": "bundler",
@@ -16,7 +16,6 @@
1616

1717
// Best practices
1818
"strict": true,
19-
"skipLibCheck": true,
2019
"noFallthroughCasesInSwitch": true,
2120

2221
// Some stricter flags (disabled by default)

0 commit comments

Comments
 (0)