diff --git a/.changeset/slimy-owls-unite.md b/.changeset/slimy-owls-unite.md new file mode 100644 index 00000000..57fabe84 --- /dev/null +++ b/.changeset/slimy-owls-unite.md @@ -0,0 +1,8 @@ +--- +"eslint-plugin-esm": patch +"@fenge/eslint-config": patch +"smells": patch +"fenge": patch +--- + +chore: update deps diff --git a/packages/eslint-config/package.json b/packages/eslint-config/package.json index 20a16fe3..f2f67e7e 100644 --- a/packages/eslint-config/package.json +++ b/packages/eslint-config/package.json @@ -29,30 +29,30 @@ "dependencies": { "@fenge/eslint-plugin": "workspace:*", "@fenge/eslint-plugin-ts": "workspace:*", - "@typescript-eslint/eslint-plugin": "8.16.0", - "@typescript-eslint/parser": "8.16.0", + "@typescript-eslint/eslint-plugin": "8.18.0", + "@typescript-eslint/parser": "8.18.0", "confusing-browser-globals": "1.0.11", "eslint-plugin-es-x": "8.4.1", "eslint-plugin-esm": "workspace:*", "eslint-plugin-fp": "2.3.0", "eslint-plugin-import": "2.31.0", - "eslint-plugin-n": "17.14.0", + "eslint-plugin-n": "17.15.0", "eslint-plugin-pkg-json": "workspace:*", "eslint-plugin-promise": "7.2.1", "eslint-plugin-publint": "workspace:*", "eslint-plugin-react": "7.37.2", - "eslint-plugin-react-hooks": "5.0.0", + "eslint-plugin-react-hooks": "5.1.0", "eslint-plugin-simple-import-sort": "12.1.1", "eslint-plugin-sonarjs": "1.0.4", "eslint-plugin-unicorn": "56.0.1", - "globals": "15.12.0" + "globals": "15.13.0" }, "devDependencies": { "@types/eslint-config-prettier": "6.11.3", "@types/node": "22.9.1", "eslint": "8.57.1", "eslint-config-prettier": "9.1.0", - "prettier": "3.4.1", + "prettier": "3.4.2", "tsx": "4.19.2" }, "peerDependencies": { diff --git a/packages/eslint-plugin-esm/package.json b/packages/eslint-plugin-esm/package.json index e0da4ffa..69561743 100644 --- a/packages/eslint-plugin-esm/package.json +++ b/packages/eslint-plugin-esm/package.json @@ -33,7 +33,7 @@ "@types/estree": "1.0.6", "@types/json-schema": "7.0.15", "@types/node": "22.9.1", - "@typescript-eslint/parser": "8.16.0", + "@typescript-eslint/parser": "8.18.0", "eslint": "8.57.1", "outdent": "0.8.0", "tsx": "4.19.2" diff --git a/packages/eslint-plugin-esm/src/rules/no-side-effect-imports.ts b/packages/eslint-plugin-esm/src/rules/no-side-effect-imports.ts index f8768b88..eebf9d9b 100644 --- a/packages/eslint-plugin-esm/src/rules/no-side-effect-imports.ts +++ b/packages/eslint-plugin-esm/src/rules/no-side-effect-imports.ts @@ -31,8 +31,10 @@ export const noSideEffectImports = createRule({ return { "ImportDeclaration[specifiers.length=0]": (node: ImportDeclaration) => { if ( - ignoreExps.some((exp) => - exp.test(node.source.value?.toString() ?? ""), + ignoreExps.some( + (exp) => + typeof node.source.value === "string" && + exp.test(node.source.value), ) ) { return; diff --git a/packages/eslint-plugin-ts/package.json b/packages/eslint-plugin-ts/package.json index 91ef8452..f1b0c71c 100644 --- a/packages/eslint-plugin-ts/package.json +++ b/packages/eslint-plugin-ts/package.json @@ -28,7 +28,7 @@ "@types/estree": "1.0.6", "@types/json-schema": "7.0.15", "@types/node": "22.9.1", - "@typescript-eslint/parser": "8.16.0", + "@typescript-eslint/parser": "8.18.0", "eslint": "8.57.1", "tsx": "4.19.2" } diff --git a/packages/eslint-plugin/package.json b/packages/eslint-plugin/package.json index 52ab353d..9dd3089d 100644 --- a/packages/eslint-plugin/package.json +++ b/packages/eslint-plugin/package.json @@ -29,7 +29,7 @@ "@types/estree": "1.0.6", "@types/json-schema": "7.0.15", "@types/node": "22.9.1", - "@typescript-eslint/parser": "8.16.0", + "@typescript-eslint/parser": "8.18.0", "eslint": "8.57.1", "tsx": "4.19.2" } diff --git a/packages/fenge/package.json b/packages/fenge/package.json index e098c2d1..88b38879 100644 --- a/packages/fenge/package.json +++ b/packages/fenge/package.json @@ -54,10 +54,10 @@ "chalk": "5.3.0", "commander": "12.1.0", "eslint": "8.57.1", - "lilconfig": "3.1.2", - "lint-staged": "15.2.10", + "lilconfig": "3.1.3", + "lint-staged": "15.2.11", "ora": "8.1.1", - "prettier": "3.4.1", + "prettier": "3.4.2", "prettier-ignore": "workspace:*" }, "devDependencies": { diff --git a/packages/smells/package.json b/packages/smells/package.json index e7e63245..cfcc4b5a 100644 --- a/packages/smells/package.json +++ b/packages/smells/package.json @@ -28,7 +28,7 @@ "build": "tsc" }, "dependencies": { - "@typescript-eslint/typescript-estree": "8.16.0", + "@typescript-eslint/typescript-estree": "8.18.0", "commander": "12.1.0", "globby": "14.0.2" },