Skip to content

Commit b955d8e

Browse files
committed
chore: update deps and cleanup monorepo eslint config
1 parent ec2ffa9 commit b955d8e

File tree

21 files changed

+277
-323
lines changed

21 files changed

+277
-323
lines changed

.pkgs/eslint-plugin-local/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525
"@eslint-react/eff": "workspace:*",
2626
"@eslint-react/shared": "workspace:*",
2727
"@eslint-react/var": "workspace:*",
28-
"@typescript-eslint/scope-manager": "^8.26.0",
29-
"@typescript-eslint/type-utils": "^8.26.0",
30-
"@typescript-eslint/types": "^8.26.0",
31-
"@typescript-eslint/utils": "^8.26.0",
28+
"@typescript-eslint/scope-manager": "^8.26.1",
29+
"@typescript-eslint/type-utils": "^8.26.1",
30+
"@typescript-eslint/types": "^8.26.1",
31+
"@typescript-eslint/utils": "^8.26.1",
3232
"string-ts": "^2.2.1",
3333
"ts-pattern": "^5.6.2"
3434
},

apps/website/app/theme.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@
2626
--color-fd-card: hsl(0, 0%, 9.8%);
2727
--color-fd-foreground: hsl(0, 0%, 92%);
2828
--color-fd-muted-foreground: hsl(0, 0%, 60.9%);
29-
--color-fd-muted: hsl(0, 0%, 15%);
29+
--color-fd-muted: hsl(0, 0%, 12.9%);
3030
--color-fd-popover-foreground: hsl(0, 0%, 88%);
3131
--color-fd-popover: hsl(0, 0%, 9.8%);
3232
--color-fd-primary-foreground: hsl(0, 0%, 9%);
33-
--color-fd-primary: hsl(209, 100%, 58%);
33+
--color-fd-primary: hsl(0, 0%, 98%);
3434
--color-fd-ring: hsl(0, 0%, 54.9%);
3535
--color-fd-secondary-foreground: hsl(0, 0%, 98%);
3636
--color-fd-secondary: hsl(0, 0%, 12.9%);

apps/website/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@
4545
"@types/react": "^19.0.10",
4646
"@types/react-dom": "^19.0.4",
4747
"autoprefixer": "^10.4.21",
48-
"babel-plugin-react-compiler": "^19.0.0-beta-40c6c23-20250301",
48+
"babel-plugin-react-compiler": "^19.0.0-beta-bafa41b-20250307",
4949
"dedent": "^1.5.3",
5050
"eslint": "^9.22.0",
5151
"eslint-plugin-de-morgan": "^1.2.0",
5252
"eslint-plugin-import-x": "^4.6.1",
5353
"eslint-plugin-mdx": "^3.2.0",
5454
"eslint-plugin-perfectionist": "^4.10.1",
55-
"eslint-plugin-react-compiler": "^19.0.0-beta-40c6c23-20250301",
55+
"eslint-plugin-react-compiler": "^19.0.0-beta-bafa41b-20250307",
5656
"eslint-plugin-react-hooks": "^5.2.0",
5757
"eslint-plugin-react-refresh": "^0.4.19",
5858
"eslint-plugin-simple-import-sort": "^12.1.1",
@@ -61,6 +61,6 @@
6161
"tailwindcss": "^4.0.12",
6262
"tailwindcss-animated": "^2.0.0",
6363
"typescript": "^5.8.2",
64-
"typescript-eslint": "^8.26.0"
64+
"typescript-eslint": "^8.26.1"
6565
}
6666
}

eslint.config.ts

Lines changed: 26 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -71,35 +71,13 @@ const p11tGroups = {
7171
groups: ["id", "type", "meta", "alias", "rules", "unknown"],
7272
};
7373

74-
const enableTypeCheckedRules = {
75-
...tseslint.configs.strictTypeCheckedOnly
76-
.map((x) => x.rules)
77-
.reduce((a, b) => ({ ...a, ...b }), {}),
78-
"@typescript-eslint/consistent-type-exports": "error",
79-
"@typescript-eslint/strict-boolean-expressions": ["error", {
80-
allowAny: false,
81-
allowNullableBoolean: false,
82-
allowNullableEnum: false,
83-
allowNullableNumber: false,
84-
allowNullableObject: false,
85-
allowNullableString: false,
86-
allowNumber: true,
87-
allowString: false,
88-
}],
89-
} satisfies typeof tseslint.configs.disableTypeChecked.rules;
90-
91-
const disableTypeCheckedRules = Object.fromEntries(Object.keys(enableTypeCheckedRules).map((x) => [x, "off"]));
92-
9374
export default tseslint.config(
75+
{ ignores: GLOB_IGNORES },
9476
{
95-
name: "global-ignores",
96-
ignores: GLOB_IGNORES,
97-
},
98-
{
77+
files: GLOB_MD,
9978
extends: [
10079
markdown.configs.recommended,
10180
],
102-
files: GLOB_MD,
10381
ignores: [
10482
"packages/**/docs/**/*.md",
10583
],
@@ -113,20 +91,19 @@ export default tseslint.config(
11391
files: [...GLOB_JS, ...GLOB_TS],
11492
extends: [
11593
js.configs.recommended,
116-
...tseslint.configs.strict,
94+
...tseslint.configs.strictTypeChecked,
11795
pluginDeMorgan.configs.recommended,
118-
pluginPerfectionist.configs["recommended-natural"],
119-
pluginRegexp.configs["flat/recommended"],
12096
pluginJsdoc.configs["flat/recommended-typescript-error"],
97+
pluginRegexp.configs["flat/recommended"],
98+
pluginPerfectionist.configs["recommended-natural"],
12199
],
122100
languageOptions: {
123101
parser: tseslint.parser,
124102
parserOptions: {
125-
allowAutomaticSingleRunInference: true,
126103
project: packagesTsConfigs,
127104
projectService: true,
128105
tsconfigRootDir: dirname,
129-
warnOnUnsupportedTypeScriptVersion: false,
106+
// warnOnUnsupportedTypeScriptVersion: false,
130107
},
131108
},
132109
plugins: {
@@ -140,14 +117,12 @@ export default tseslint.config(
140117
files: [...GLOB_JS, ...GLOB_TS],
141118
rules: {
142119
eqeqeq: ["error", "smart"],
120+
"no-undef": "off",
143121
"no-console": "error",
144122
"no-else-return": "error",
145123
"no-fallthrough": ["error", { commentPattern: ".*intentional fallthrough.*" }],
146124
"no-implicit-coercion": ["error", { allow: ["!!"] }],
147125
"no-mixed-operators": "warn",
148-
"no-process-exit": "error",
149-
"no-undef": "off",
150-
"one-var": ["error", "never"],
151126
"prefer-object-has-own": "error",
152127
// Part: custom rules
153128
"no-restricted-syntax": [
@@ -176,7 +151,17 @@ export default tseslint.config(
176151
"@typescript-eslint/no-misused-promises": "off",
177152
"@typescript-eslint/no-unnecessary-parameter-property-assignment": "warn",
178153
"@typescript-eslint/no-unused-vars": ["warn", { caughtErrors: "all" }],
179-
...enableTypeCheckedRules,
154+
"@typescript-eslint/consistent-type-exports": "error",
155+
"@typescript-eslint/strict-boolean-expressions": ["error", {
156+
allowAny: false,
157+
allowNullableBoolean: false,
158+
allowNullableEnum: false,
159+
allowNullableNumber: false,
160+
allowNullableObject: false,
161+
allowNullableString: false,
162+
allowNumber: true,
163+
allowString: false,
164+
}],
180165
// Part: jsdoc rules
181166
"jsdoc/check-param-names": "warn",
182167
"jsdoc/check-tag-names": "warn",
@@ -245,72 +230,41 @@ export default tseslint.config(
245230
},
246231
},
247232
{
248-
files: GLOB_JS,
233+
files: [...GLOB_JS, ...GLOB_SCRIPT, ...GLOB_CONFIG],
234+
extends: [
235+
tseslint.configs.disableTypeChecked,
236+
],
249237
languageOptions: {
250238
parserOptions: {
251239
project: false,
252240
projectService: false,
253241
},
254242
},
255243
rules: {
256-
...disableTypeCheckedRules,
257-
"@typescript-eslint/no-var-requires": "off",
244+
"no-console": "off",
258245
},
259246
},
260247
{
261248
files: GLOB_TEST,
249+
extends: [
250+
pluginVitest.configs.recommended,
251+
],
262252
languageOptions: {
263253
globals: {
264254
...pluginVitest.environments.env.globals,
265255
},
266-
parser: tseslint.parser,
267256
parserOptions: {
268-
allowAutomaticSingleRunInference: true,
269257
project: "tsconfig.json",
270258
projectService: true,
271259
tsconfigRootDir: dirname,
272-
warnOnUnsupportedTypeScriptVersion: false,
273260
},
274261
},
275262
plugins: {
276263
vitest: pluginVitest,
277264
},
278265
rules: {
279-
...disableTypeCheckedRules,
280-
...pluginVitest.configs.recommended.rules,
281266
"@typescript-eslint/no-empty-function": ["error", { allow: ["arrowFunctions"] }],
282267
"local/avoid-multiline-template-expression": "off",
283268
},
284269
},
285-
{
286-
files: GLOB_SCRIPT,
287-
languageOptions: {
288-
parser: tseslint.parser,
289-
parserOptions: {
290-
allowAutomaticSingleRunInference: true,
291-
project: "tsconfig.json",
292-
projectService: true,
293-
tsconfigRootDir: dirname,
294-
warnOnUnsupportedTypeScriptVersion: false,
295-
},
296-
},
297-
rules: {
298-
"no-console": "off",
299-
...disableTypeCheckedRules,
300-
},
301-
},
302-
{
303-
files: GLOB_CONFIG,
304-
languageOptions: {
305-
parser: tseslint.parser,
306-
parserOptions: {
307-
allowAutomaticSingleRunInference: true,
308-
project: false,
309-
projectService: false,
310-
},
311-
},
312-
rules: {
313-
...disableTypeCheckedRules,
314-
},
315-
},
316270
);

examples/next-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"eslint-plugin-react-hooks": "^5.2.0",
3030
"eslint-plugin-react-refresh": "^0.4.19",
3131
"typescript": "^5.8.2",
32-
"typescript-eslint": "^8.26.0"
32+
"typescript-eslint": "^8.26.1"
3333
},
3434
"engines": {
3535
"node": ">=18.18.0"

examples/vite-react-dom-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"eslint-plugin-react-hooks": "^5.2.0",
2929
"eslint-plugin-react-refresh": "^0.4.19",
3030
"typescript": "^5.8.2",
31-
"typescript-eslint": "^8.26.0",
31+
"typescript-eslint": "^8.26.1",
3232
"vite": "^6.2.1"
3333
},
3434
"engines": {

examples/vite-react-dom-with-ts-blank-eslint-parser-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"globals": "^16.0.0",
3232
"ts-blank-eslint-parser": "^0.4.2",
3333
"typescript": "^5.8.2",
34-
"typescript-eslint": "^8.26.0",
34+
"typescript-eslint": "^8.26.1",
3535
"vite": "^6.2.1"
3636
},
3737
"engines": {

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@
6464
"@types/node": "^22.13.10",
6565
"@types/react": "^19.0.10",
6666
"@types/react-dom": "^19.0.4",
67-
"@typescript-eslint/parser": "^8.26.0",
68-
"@typescript-eslint/rule-tester": "^8.26.0",
69-
"@typescript-eslint/types": "^8.26.0",
67+
"@typescript-eslint/parser": "^8.26.1",
68+
"@typescript-eslint/rule-tester": "^8.26.1",
69+
"@typescript-eslint/types": "^8.26.1",
7070
"ansis": "^3.17.0",
7171
"cspell": "^8.17.5",
7272
"dedent": "^1.5.3",
@@ -100,7 +100,7 @@
100100
"typedoc-plugin-mdn-links": "^5.0.1",
101101
"typedoc-plugin-missing-exports": "^3.1.0",
102102
"typescript": "^5.8.2",
103-
"typescript-eslint": "^8.26.0",
103+
"typescript-eslint": "^8.26.1",
104104
"vitest": "^3.0.8"
105105
},
106106
"packageManager": "[email protected]",

packages/core/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@
4747
"@eslint-react/jsx": "workspace:*",
4848
"@eslint-react/shared": "workspace:*",
4949
"@eslint-react/var": "workspace:*",
50-
"@typescript-eslint/scope-manager": "^8.26.0",
51-
"@typescript-eslint/type-utils": "^8.26.0",
52-
"@typescript-eslint/types": "^8.26.0",
53-
"@typescript-eslint/utils": "^8.26.0",
50+
"@typescript-eslint/scope-manager": "^8.26.1",
51+
"@typescript-eslint/type-utils": "^8.26.1",
52+
"@typescript-eslint/types": "^8.26.1",
53+
"@typescript-eslint/utils": "^8.26.1",
5454
"birecord": "^0.1.1",
5555
"ts-pattern": "^5.6.2"
5656
},

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@
5555
"@eslint-react/jsx": "workspace:*",
5656
"@eslint-react/shared": "workspace:*",
5757
"@eslint-react/var": "workspace:*",
58-
"@typescript-eslint/scope-manager": "^8.26.0",
59-
"@typescript-eslint/type-utils": "^8.26.0",
60-
"@typescript-eslint/types": "^8.26.0",
61-
"@typescript-eslint/utils": "^8.26.0",
58+
"@typescript-eslint/scope-manager": "^8.26.1",
59+
"@typescript-eslint/type-utils": "^8.26.1",
60+
"@typescript-eslint/types": "^8.26.1",
61+
"@typescript-eslint/utils": "^8.26.1",
6262
"string-ts": "^2.2.1",
6363
"ts-pattern": "^5.6.2"
6464
},

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@
5555
"@eslint-react/jsx": "workspace:*",
5656
"@eslint-react/shared": "workspace:*",
5757
"@eslint-react/var": "workspace:*",
58-
"@typescript-eslint/scope-manager": "^8.26.0",
59-
"@typescript-eslint/types": "^8.26.0",
60-
"@typescript-eslint/utils": "^8.26.0",
58+
"@typescript-eslint/scope-manager": "^8.26.1",
59+
"@typescript-eslint/types": "^8.26.1",
60+
"@typescript-eslint/utils": "^8.26.1",
6161
"compare-versions": "^6.1.1",
6262
"string-ts": "^2.2.1",
6363
"ts-pattern": "^5.6.2"

packages/plugins/eslint-plugin-react-hooks-extra/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@
5656
"@eslint-react/jsx": "workspace:*",
5757
"@eslint-react/shared": "workspace:*",
5858
"@eslint-react/var": "workspace:*",
59-
"@typescript-eslint/scope-manager": "^8.26.0",
60-
"@typescript-eslint/type-utils": "^8.26.0",
61-
"@typescript-eslint/types": "^8.26.0",
62-
"@typescript-eslint/utils": "^8.26.0",
59+
"@typescript-eslint/scope-manager": "^8.26.1",
60+
"@typescript-eslint/type-utils": "^8.26.1",
61+
"@typescript-eslint/types": "^8.26.1",
62+
"@typescript-eslint/utils": "^8.26.1",
6363
"string-ts": "^2.2.1",
6464
"ts-pattern": "^5.6.2"
6565
},

packages/plugins/eslint-plugin-react-naming-convention/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@
5555
"@eslint-react/jsx": "workspace:*",
5656
"@eslint-react/shared": "workspace:*",
5757
"@eslint-react/var": "workspace:*",
58-
"@typescript-eslint/scope-manager": "^8.26.0",
59-
"@typescript-eslint/type-utils": "^8.26.0",
60-
"@typescript-eslint/types": "^8.26.0",
61-
"@typescript-eslint/utils": "^8.26.0",
58+
"@typescript-eslint/scope-manager": "^8.26.1",
59+
"@typescript-eslint/type-utils": "^8.26.1",
60+
"@typescript-eslint/types": "^8.26.1",
61+
"@typescript-eslint/utils": "^8.26.1",
6262
"string-ts": "^2.2.1",
6363
"ts-pattern": "^5.6.2"
6464
},

packages/plugins/eslint-plugin-react-web-api/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@
5555
"@eslint-react/jsx": "workspace:*",
5656
"@eslint-react/shared": "workspace:*",
5757
"@eslint-react/var": "workspace:*",
58-
"@typescript-eslint/scope-manager": "^8.26.0",
59-
"@typescript-eslint/types": "^8.26.0",
60-
"@typescript-eslint/utils": "^8.26.0",
58+
"@typescript-eslint/scope-manager": "^8.26.1",
59+
"@typescript-eslint/types": "^8.26.1",
60+
"@typescript-eslint/utils": "^8.26.1",
6161
"string-ts": "^2.2.1",
6262
"ts-pattern": "^5.6.2"
6363
},

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@
5454
"@eslint-react/jsx": "workspace:*",
5555
"@eslint-react/shared": "workspace:*",
5656
"@eslint-react/var": "workspace:*",
57-
"@typescript-eslint/scope-manager": "^8.26.0",
58-
"@typescript-eslint/type-utils": "^8.26.0",
59-
"@typescript-eslint/types": "^8.26.0",
60-
"@typescript-eslint/utils": "^8.26.0",
57+
"@typescript-eslint/scope-manager": "^8.26.1",
58+
"@typescript-eslint/type-utils": "^8.26.1",
59+
"@typescript-eslint/types": "^8.26.1",
60+
"@typescript-eslint/utils": "^8.26.1",
6161
"compare-versions": "^6.1.1",
6262
"string-ts": "^2.2.1",
6363
"ts-pattern": "^5.6.2"

packages/plugins/eslint-plugin/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@
5454
"dependencies": {
5555
"@eslint-react/eff": "workspace:*",
5656
"@eslint-react/shared": "workspace:*",
57-
"@typescript-eslint/scope-manager": "^8.26.0",
58-
"@typescript-eslint/type-utils": "^8.26.0",
59-
"@typescript-eslint/types": "^8.26.0",
60-
"@typescript-eslint/utils": "^8.26.0",
57+
"@typescript-eslint/scope-manager": "^8.26.1",
58+
"@typescript-eslint/type-utils": "^8.26.1",
59+
"@typescript-eslint/types": "^8.26.1",
60+
"@typescript-eslint/utils": "^8.26.1",
6161
"eslint-plugin-react-debug": "workspace:*",
6262
"eslint-plugin-react-dom": "workspace:*",
6363
"eslint-plugin-react-hooks-extra": "workspace:*",

0 commit comments

Comments
 (0)