Skip to content

Commit 8bee1fa

Browse files
committed
chore: update deps and ESLint configuration
1 parent 138a994 commit 8bee1fa

File tree

7 files changed

+234
-198
lines changed

7 files changed

+234
-198
lines changed

eslint.config.ts

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable perfectionist/sort-objects */
12
/* eslint-disable simple-import-sort/imports */
23
import url from "node:url";
34

@@ -116,7 +117,6 @@ export default tseslint.config(
116117
},
117118
{
118119
files: [...GLOB_JS, ...GLOB_TS],
119-
// eslint-disable-next-line perfectionist/sort-objects
120120
extends: [
121121
eslintJs.configs.recommended,
122122
...tseslint.configs.strict,
@@ -254,6 +254,47 @@ export default tseslint.config(
254254
"local/avoid-multiline-template-expression": "warn",
255255
"local/no-shadow-underscore": "error",
256256
"local/prefer-eqeq-nullish-comparison": "warn",
257+
// Part: nx rules
258+
"@nx/enforce-module-boundaries": [
259+
"off", // TODO: enable
260+
{
261+
allow: [],
262+
depConstraints: [
263+
{
264+
sourceTag: "utilities:eff",
265+
onlyDependOnLibsWithTags: [],
266+
},
267+
{
268+
sourceTag: "utilities:ast",
269+
onlyDependOnLibsWithTags: ["utilities:eff"],
270+
},
271+
{
272+
sourceTag: "utilities:var",
273+
onlyDependOnLibsWithTags: ["utilities:eff", "utilities:ast"],
274+
},
275+
{
276+
sourceTag: "utilities:jsx",
277+
onlyDependOnLibsWithTags: ["utilities:eff", "utilities:ast", "utilities:var"],
278+
},
279+
{
280+
sourceTag: "shared",
281+
onlyDependOnLibsWithTags: ["utilities:eff"],
282+
},
283+
{
284+
sourceTag: "core",
285+
onlyDependOnLibsWithTags: ["utilities:*", "shared"],
286+
},
287+
{
288+
sourceTag: "plugins:eslint-plugin-react-*",
289+
onlyDependOnLibsWithTags: ["utilities:*", "shared", "core"],
290+
},
291+
{
292+
sourceTag: "plugins:eslint-plugin",
293+
onlyDependOnLibsWithTags: ["utilities:*", "shared", "core", "plugins:eslint-plugin-react-*"],
294+
},
295+
],
296+
},
297+
],
257298
},
258299
settings: {
259300
"import-x/parsers": {
@@ -299,6 +340,7 @@ export default tseslint.config(
299340
"@typescript-eslint/no-empty-function": ["error", { allow: ["arrowFunctions"] }],
300341
"import-x/no-extraneous-dependencies": "off",
301342
"local/avoid-multiline-template-expression": "off",
343+
"@nx/enforce-module-boundaries": "off",
302344
},
303345
},
304346
{
@@ -315,6 +357,7 @@ export default tseslint.config(
315357
},
316358
rules: {
317359
"no-console": "off",
360+
"@nx/enforce-module-boundaries": "off",
318361
},
319362
},
320363
{
@@ -329,6 +372,7 @@ export default tseslint.config(
329372
},
330373
rules: {
331374
...disableTypeCheckedRules,
375+
"@nx/enforce-module-boundaries": "off",
332376
},
333377
},
334378
);

examples/next-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"@eslint-react/eslint-plugin": "^1.23.2",
2020
"@eslint/config-inspector": "^1.0.0",
2121
"@eslint/js": "^9.18.0",
22-
"@next/eslint-plugin-next": "^15.1.4",
22+
"@next/eslint-plugin-next": "^15.1.5",
2323
"@types/negotiator": "^0.6.3",
2424
"@types/node": "^22.10.7",
2525
"@types/react": "^19.0.7",

nx.json

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,5 @@
2323
"cache": true
2424
}
2525
},
26-
"defaultBase": "main",
27-
"plugins": [
28-
{
29-
"plugin": "@nx/eslint/plugin",
30-
"options": {
31-
"targetName": "eslint:lint"
32-
}
33-
}
34-
]
26+
"defaultBase": "main"
3527
}

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
"@typescript-eslint/parser": "^8.20.0",
6868
"@typescript-eslint/rule-tester": "^8.20.0",
6969
"@typescript-eslint/types": "^8.20.0",
70-
"@vitest/ui": "^3.0.1",
70+
"@vitest/ui": "^3.0.2",
7171
"@workspace/configs": "workspace:*",
7272
"@workspace/eslint-plugin-local": "workspace:*",
7373
"concurrently": "^9.1.2",
@@ -80,15 +80,15 @@
8080
"eslint-import-resolver-oxc": "^0.8.0",
8181
"eslint-plugin-eslint-plugin": "^6.4.0",
8282
"eslint-plugin-import-x": "^4.6.1",
83-
"eslint-plugin-jsdoc": "^50.6.1",
83+
"eslint-plugin-jsdoc": "^50.6.2",
8484
"eslint-plugin-perfectionist": "^4.6.0",
8585
"eslint-plugin-regexp": "^2.7.0",
8686
"eslint-plugin-simple-import-sort": "^12.1.1",
8787
"eslint-plugin-unicorn": "^56.0.1",
8888
"eslint-plugin-vitest": "^0.5.4",
8989
"fixpkg": "^1.0.2",
9090
"jiti": "^2.4.2",
91-
"lefthook": "^1.10.7",
91+
"lefthook": "^1.10.8",
9292
"markdownlint": "^0.37.4",
9393
"nx": "20.3.1",
9494
"ofetch": "^1.4.1",
@@ -108,7 +108,7 @@
108108
"typedoc-plugin-rename-defaults": "^0.7.2",
109109
"typescript": "^5.7.3",
110110
"typescript-eslint": "^8.20.0",
111-
"vitest": "^3.0.1"
111+
"vitest": "^3.0.2"
112112
},
113113
"engines": {
114114
"node": ">=18.18.0"
@@ -123,7 +123,7 @@
123123
"@types/react": "^19.0.7",
124124
"@types/react-dom": "^19.0.3",
125125
"cross-spawn": "^7.0.6",
126-
"next": "^15.1.4",
126+
"next": "^15.1.5",
127127
"react": "^19.0.0",
128128
"react-dom": "^19.0.0",
129129
"ts-api-utils": "^2.0.0",

packages/shared/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"ts-pattern": "^5.6.0"
4747
},
4848
"devDependencies": {
49-
"@types/picomatch": "^3.0.1",
49+
"@types/picomatch": "^3.0.2",
5050
"@workspace/configs": "workspace:*",
5151
"fast-equals": "^5.2.2",
5252
"micro-memoize": "^4.1.3",

0 commit comments

Comments
 (0)