Skip to content

Commit 3213cdb

Browse files
authored
Cleanup unused deps, closes #1244 (#1246)
1 parent 9c49cf3 commit 3213cdb

File tree

12 files changed

+45
-142
lines changed

12 files changed

+45
-142
lines changed

apps/website/eslint.config.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import react from "@eslint-react/eslint-plugin";
2+
import { includeIgnoreFile } from "@eslint/compat";
23
import markdown from "@eslint/markdown";
34
import { disableTypeChecked, strictTypeChecked } from "@local/configs/eslint";
4-
import gitignore from "eslint-config-flat-gitignore";
55
import { recommended as fastImportRecommended } from "eslint-plugin-fast-import";
66
import pluginReactHooks from "eslint-plugin-react-hooks";
77
import pluginReactRefresh from "eslint-plugin-react-refresh";
88
import { globalIgnores } from "eslint/config";
99
import { defineConfig } from "eslint/config";
10-
import url from "node:url";
10+
import { fileURLToPath } from "node:url";
1111
import tseslint from "typescript-eslint";
1212

1313
import TSCONFIG from "./tsconfig.json" with { type: "json" };
@@ -25,10 +25,11 @@ const GLOB_IGNORES = [
2525
"eslint.config.ts",
2626
];
2727

28-
const dirname = url.fileURLToPath(new URL(".", import.meta.url));
28+
const dirname = fileURLToPath(new URL(".", import.meta.url));
29+
const gitignore = fileURLToPath(new URL(".gitignore", import.meta.url));
2930

3031
export default defineConfig([
31-
gitignore(),
32+
includeIgnoreFile(gitignore, "Imported .gitignore patterns"),
3233
globalIgnores(GLOB_IGNORES),
3334
{
3435
extends: [
@@ -49,7 +50,8 @@ export default defineConfig([
4950
},
5051
{
5152
extends: [
52-
strictTypeChecked, // @ts-expect-error - types issue
53+
strictTypeChecked,
54+
// @ts-expect-error - types issue
5355
fastImportRecommended({ rootDir: dirname }),
5456
],
5557
files: GLOB_TS,

apps/website/package.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,9 @@
1010
"start": "next start"
1111
},
1212
"dependencies": {
13-
"@chevrotain/regexp-to-ast": "^11.0.3",
1413
"@effect-atom/atom-react": "^0.2.0",
1514
"@eslint-react/eff": "workspace:*",
16-
"@radix-ui/react-icons": "^1.3.2",
1715
"bsky-react-post": "^0.1.7",
18-
"class-variance-authority": "^0.7.1",
1916
"clsx": "^2.1.1",
2017
"effect": "^3.17.14",
2118
"fumadocs-core": "15.8.1",
@@ -29,7 +26,6 @@
2926
"next-view-transitions": "^0.3.4",
3027
"react": "^19.1.1",
3128
"react-dom": "^19.1.1",
32-
"shiki": "^3.13.0",
3329
"tailwind-merge": "^3.3.1",
3430
"twoslash": "^0.3.4"
3531
},
@@ -52,15 +48,11 @@
5248
"@types/node": "^24.5.2",
5349
"@types/react": "^19.1.14",
5450
"@types/react-dom": "^19.1.9",
55-
"autoprefixer": "^10.4.21",
5651
"dedent": "^1.7.0",
5752
"eslint": "^9.36.0",
58-
"eslint-plugin-de-morgan": "^1.3.1",
5953
"eslint-plugin-fast-import": "^1.4.4",
60-
"eslint-plugin-perfectionist": "^4.15.0",
6154
"eslint-plugin-react-hooks": "^5.2.0",
6255
"eslint-plugin-react-refresh": "^0.4.22",
63-
"eslint-plugin-unicorn": "^61.0.2",
6456
"importx": "^0.5.2",
6557
"postcss": "^8.5.6",
6658
"tailwindcss": "^4.1.13",

eslint.config.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import url from "node:url";
1+
import { fileURLToPath } from "node:url";
22

3+
import { includeIgnoreFile } from "@eslint/compat";
34
import markdown from "@eslint/markdown";
45
import {
56
GLOB_CONFIGS,
@@ -12,21 +13,21 @@ import {
1213
strictTypeChecked,
1314
} from "@local/configs/eslint";
1415
import pluginLocal from "@local/eslint-plugin-local";
15-
import gitIgnores from "eslint-config-flat-gitignore";
1616
import { recommended as fastImportRecommended } from "eslint-plugin-fast-import";
1717
import pluginVitest from "eslint-plugin-vitest";
1818
import { defineConfig, globalIgnores } from "eslint/config";
1919
import tseslint from "typescript-eslint";
2020

21-
const dirname = url.fileURLToPath(new URL(".", import.meta.url));
21+
const dirname = fileURLToPath(new URL(".", import.meta.url));
22+
const gitignore = fileURLToPath(new URL(".gitignore", import.meta.url));
2223

2324
const packagesTsConfigs = [
2425
"packages/*/tsconfig.json",
2526
"packages/*/*/tsconfig.json",
2627
];
2728

2829
export default defineConfig([
29-
gitIgnores(),
30+
includeIgnoreFile(gitignore, "Imported .gitignore patterns"),
3031
globalIgnores([
3132
...GLOB_IGNORES,
3233
"apps",

examples/next/eslint.config.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import eslintReact from "@eslint-react/eslint-plugin";
2+
import { includeIgnoreFile } from "@eslint/compat";
23
import eslintJs from "@eslint/js";
34
import eslintPluginNext from "@next/eslint-plugin-next";
4-
import gitignore from "eslint-config-flat-gitignore";
55
import eslintPluginReactHooks from "eslint-plugin-react-hooks";
66
import eslintPluginReactRefresh from "eslint-plugin-react-refresh";
77
import { defineConfig } from "eslint/config";
8+
import { fileURLToPath } from "node:url";
89
import tseslint from "typescript-eslint";
910

1011
import TSCONFIG from "./tsconfig.json" with { type: "json" };
@@ -14,8 +15,10 @@ const GLOB_JS = ["**/*.js", "**/*.jsx"];
1415
const GLOB_APP = ["app/**/*.{js,ts,jsx,tsx}"];
1516
const GLOB_CONFIG = ["**/*.config.{js,mjs,ts,tsx}"];
1617

18+
const gitignore = fileURLToPath(new URL(".gitignore", import.meta.url));
19+
1720
export default defineConfig([
18-
gitignore(),
21+
includeIgnoreFile(gitignore, "Imported .gitignore patterns"),
1922
{
2023
files: GLOB_TS,
2124
extends: [

examples/next/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
},
1717
"devDependencies": {
1818
"@eslint-react/eslint-plugin": "workspace:*",
19+
"@eslint/compat": "^1.4.0",
1920
"@eslint/config-inspector": "^1.3.0",
2021
"@eslint/js": "^9.36.0",
2122
"@next/eslint-plugin-next": "^15.5.4",
@@ -26,7 +27,6 @@
2627
"@types/react": "^19.1.14",
2728
"@types/react-dom": "^19.1.9",
2829
"eslint": "^9.36.0",
29-
"eslint-config-flat-gitignore": "^2.1.0",
3030
"eslint-plugin-react-hooks": "^5.2.0",
3131
"eslint-plugin-react-refresh": "^0.4.22",
3232
"typescript": "^5.9.2",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,12 @@
6868
"@typescript-eslint/parser": "^8.44.1",
6969
"@typescript-eslint/rule-tester": "^8.44.1",
7070
"@typescript-eslint/types": "^8.44.1",
71+
"@eslint/compat": "^1.4.0",
7172
"ansis": "^4.1.0",
7273
"dedent": "^1.7.0",
7374
"dprint": "^0.50.2",
7475
"effect": "^3.17.14",
7576
"eslint": "^9.36.0",
76-
"eslint-config-flat-gitignore": "^2.1.0",
7777
"eslint-plugin-fast-import": "^1.4.4",
7878
"eslint-plugin-vitest": "^0.5.4",
7979
"jiti": "^2.6.0",

packages/core/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,9 @@
4040
"@eslint-react/shared": "workspace:*",
4141
"@eslint-react/var": "workspace:*",
4242
"@typescript-eslint/scope-manager": "^8.44.1",
43-
"@typescript-eslint/type-utils": "^8.44.1",
4443
"@typescript-eslint/types": "^8.44.1",
4544
"@typescript-eslint/utils": "^8.44.1",
4645
"birecord": "^0.1.1",
47-
"ts-api-utils": "^2.1.0",
4846
"ts-pattern": "^5.8.0"
4947
},
5048
"devDependencies": {

packages/plugins/eslint-plugin-react-x/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,18 +53,17 @@
5353
"compare-versions": "^6.1.1",
5454
"is-immutable-type": "^5.0.1",
5555
"string-ts": "^2.2.1",
56+
"ts-api-utils": "^2.1.0",
5657
"ts-pattern": "^5.8.0"
5758
},
5859
"devDependencies": {
5960
"@local/configs": "workspace:*",
6061
"@types/react": "^19.1.14",
6162
"@types/react-dom": "^19.1.9",
62-
"ts-api-utils": "^2.1.0",
6363
"tsdown": "^0.15.5"
6464
},
6565
"peerDependencies": {
6666
"eslint": "^9.36.0",
67-
"ts-api-utils": "^2.1.0",
6867
"typescript": "^5.9.2"
6968
},
7069
"engines": {

packages/utilities/ast/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@
3737
"@typescript-eslint/types": "^8.44.1",
3838
"@typescript-eslint/typescript-estree": "^8.44.1",
3939
"@typescript-eslint/utils": "^8.44.1",
40-
"string-ts": "^2.2.1",
41-
"ts-pattern": "^5.8.0"
40+
"string-ts": "^2.2.1"
4241
},
4342
"devDependencies": {
4443
"@local/configs": "workspace:*",

packages/utilities/kit/package.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,12 @@
3535
},
3636
"dependencies": {
3737
"@eslint-react/eff": "workspace:*",
38-
"@typescript-eslint/utils": "^8.44.1",
39-
"ts-pattern": "^5.8.0",
40-
"zod": "^4.1.11"
38+
"@typescript-eslint/utils": "^8.44.1"
4139
},
4240
"devDependencies": {
4341
"@local/configs": "workspace:*",
4442
"@tsconfig/node22": "^22.0.2",
45-
"tsdown": "^0.15.5",
46-
"type-fest": "^5.0.1"
43+
"tsdown": "^0.15.5"
4744
},
4845
"engines": {
4946
"node": ">=20.19.0"

0 commit comments

Comments
 (0)