diff --git a/package.json b/package.json index e5b7ddfd3c..1e10d21a18 100644 --- a/package.json +++ b/package.json @@ -159,7 +159,6 @@ "eslint-plugin-no-only-tests": "^3.3.0", "eslint-plugin-no-use-extend-native": "0.7.2", "eslint-plugin-optimize-regex": "^1.2.1", - "eslint-plugin-paths": "^1.0.8", "eslint-plugin-perfectionist": "^3.7.0", "eslint-plugin-regexp": "^2.6.0", "eslint-plugin-sonarjs": "^2.0.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1e328e58f9..4f0cac040a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -107,9 +107,6 @@ importers: eslint-plugin-optimize-regex: specifier: ^1.2.1 version: 1.2.1 - eslint-plugin-paths: - specifier: ^1.0.8 - version: 1.0.8 eslint-plugin-perfectionist: specifier: ^3.7.0 version: 3.7.0(astro-eslint-parser@1.0.3(typescript@5.6.2))(eslint@9.11.1(jiti@2.0.0-rc.1))(svelte-eslint-parser@0.41.1(svelte@4.2.19))(svelte@4.2.19)(typescript@5.6.2)(vue-eslint-parser@9.4.3(eslint@9.11.1(jiti@2.0.0-rc.1))) @@ -1982,9 +1979,6 @@ packages: resolution: {integrity: sha512-itaWrbYbqpGXkGhZPGUulwnhVf5Hpy1xiCFsGqyIGglbBxmG5vSjxQen3/WGOjPpNEv1RtBLKxbmVXm8HpJStQ==} engines: {node: '>= 0.4'} - array-timsort@1.0.3: - resolution: {integrity: sha512-/+3GRL7dDAGEfM6TseQk/U+mi18TU2Ms9I3UlLdUMhz2hbvGNTKdj9xniwXfUqgYhHxRx0+8UnKkvlNwVU+cWQ==} - array-union@2.1.0: resolution: {integrity: sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==} engines: {node: '>=8'} @@ -2234,10 +2228,6 @@ packages: resolution: {integrity: sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==} engines: {node: '>= 6'} - comment-json@4.2.5: - resolution: {integrity: sha512-bKw/r35jR3HGt5PEPm1ljsQQGyCrR8sFGNiN5L+ykDHdpO8Smxkrkla9Yi6NkQyUrb8V54PGhfMs6NrIwtxtdw==} - engines: {node: '>= 6'} - comment-parser@1.4.1: resolution: {integrity: sha512-buhp5kePrmda3vhc5B9t7pUQXAb2Tnd0qgpkIhPhkHXxJpiPJ11H0ZEU0oBpJ2QztSbzG/ZxMj/CHsYJqRHmyg==} engines: {node: '>= 12.0.0'} @@ -2264,9 +2254,6 @@ packages: core-js-compat@3.38.1: resolution: {integrity: sha512-JRH6gfXxGmrzF3tZ57lFx97YARxCXPaMzPo6jELZhv88pBH5VXpQ+y0znKGlFnzuaihqhLbefxSJxWJMPtfDzw==} - core-util-is@1.0.3: - resolution: {integrity: sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==} - cross-spawn@7.0.3: resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==} engines: {node: '>= 8'} @@ -2711,9 +2698,6 @@ packages: resolution: {integrity: sha512-fUaU7Tj1G/KSTDTABJw4Wp427Rl7RPl9ViYTu1Jrv36fJw4DFhd4elPdXiuYtdPsNsvzn9GcVlKEssGIVjw0UQ==} engines: {node: '>=10'} - eslint-plugin-paths@1.0.8: - resolution: {integrity: sha512-HiV4hS7QYE4vbQ3rB5NBVLbAstw7dH1rJQ2P5Msx4aDjawwn29yLWLo0fNTouqC0DpOv/sj+tMk9EaAMVBbS7w==} - eslint-plugin-perfectionist@3.7.0: resolution: {integrity: sha512-pemhfcR3LDbYVWeveHok9u048yR7GpsnfyPvn6RsDkp/UV7iqBV0y5K0aGb9ZJMsemOyWok7akxGzPLsz+mHKQ==} engines: {node: ^18.0.0 || >=20.0.0} @@ -2987,11 +2971,6 @@ packages: resolution: {integrity: sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - esprima@4.0.1: - resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==} - engines: {node: '>=4'} - hasBin: true - esquery@1.6.0: resolution: {integrity: sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==} engines: {node: '>=0.10'} @@ -3260,10 +3239,6 @@ packages: resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} engines: {node: '>=8'} - has-own-prop@2.0.0: - resolution: {integrity: sha512-Pq0h+hvsVm6dDEa8x82GnLSYHOzNDt7f0ddFa3FqcQlgzEiptPqL+XrOJNavjOzSYiYWIrgeVYYgGlLmnxwilQ==} - engines: {node: '>=8'} - has-property-descriptors@1.0.2: resolution: {integrity: sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==} @@ -4536,10 +4511,6 @@ packages: remeda@2.14.0: resolution: {integrity: sha512-OSOhr9gGcb3AshMxlu9YnnUtKSkeYhj+AxWiWGfVh3HolYtJP5IF9vC1j1tq15uI7lxCPVd9qnnp43dOvZ840A==} - repeat-string@1.6.1: - resolution: {integrity: sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w==} - engines: {node: '>=0.10'} - require-directory@2.1.1: resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==} engines: {node: '>=0.10.0'} @@ -7186,8 +7157,6 @@ snapshots: get-intrinsic: 1.2.4 is-string: 1.0.7 - array-timsort@1.0.3: {} - array-union@2.1.0: {} array.prototype.findlast@1.2.5: @@ -7496,14 +7465,6 @@ snapshots: commander@4.1.1: {} - comment-json@4.2.5: - dependencies: - array-timsort: 1.0.3 - core-util-is: 1.0.3 - esprima: 4.0.1 - has-own-prop: 2.0.0 - repeat-string: 1.6.1 - comment-parser@1.4.1: {} concat-map@0.0.1: {} @@ -7522,8 +7483,6 @@ snapshots: dependencies: browserslist: 4.23.3 - core-util-is@1.0.3: {} - cross-spawn@7.0.3: dependencies: path-key: 3.1.1 @@ -8167,10 +8126,6 @@ snapshots: dependencies: regexp-tree: 0.1.27 - eslint-plugin-paths@1.0.8: - dependencies: - comment-json: 4.2.5 - eslint-plugin-perfectionist@3.7.0(astro-eslint-parser@1.0.3(typescript@5.6.2))(eslint@9.11.1(jiti@2.0.0-rc.1))(svelte-eslint-parser@0.41.1(svelte@4.2.19))(svelte@4.2.19)(typescript@5.6.2)(vue-eslint-parser@9.4.3(eslint@9.11.1(jiti@2.0.0-rc.1))): dependencies: '@typescript-eslint/types': 8.7.0 @@ -8626,8 +8581,6 @@ snapshots: acorn-jsx: 5.3.2(acorn@8.12.1) eslint-visitor-keys: 3.4.3 - esprima@4.0.1: {} - esquery@1.6.0: dependencies: estraverse: 5.3.0 @@ -8940,8 +8893,6 @@ snapshots: has-flag@4.0.0: {} - has-own-prop@2.0.0: {} - has-property-descriptors@1.0.2: dependencies: es-define-property: 1.0.0 @@ -10268,8 +10219,6 @@ snapshots: dependencies: type-fest: 4.26.1 - repeat-string@1.6.1: {} - require-directory@2.1.1: {} require-from-string@2.0.2: {} diff --git a/src/configs/storybook.ts b/src/configs/storybook.ts index ff3a16cd71..e3b26763c9 100644 --- a/src/configs/storybook.ts +++ b/src/configs/storybook.ts @@ -25,12 +25,5 @@ export async function storybook(): Promise> { "i18next/no-string-literal": "off", }, }, - { - name: "nirtamir2/storybook/disables", - files: ["**/.storybook/**"], - rules: { - "paths/alias": "off", - }, - }, ]; } diff --git a/src/configs/typescript.ts b/src/configs/typescript.ts index 342b81c09e..6c7f81a2f6 100644 --- a/src/configs/typescript.ts +++ b/src/configs/typescript.ts @@ -2,11 +2,7 @@ import expectType from "eslint-plugin-expect-type/configs/recommended"; import process from "node:process"; import tseslint from "typescript-eslint"; import { GLOB_ASTRO_TS, GLOB_MARKDOWN, GLOB_TS, GLOB_TSX } from "../globs"; -import { - eslintPluginPaths, - pluginAntfu, - pluginSortDestructureKeysTypescript, -} from "../plugins"; +import { pluginAntfu, pluginSortDestructureKeysTypescript } from "../plugins"; import type { OptionsComponentExts, OptionsFiles, @@ -106,7 +102,6 @@ export async function typescript( // Install the plugins without globs, so they can be configured separately. name: "antfu/typescript/setup", plugins: { - paths: eslintPluginPaths, antfu: pluginAntfu, "sort-destructure-keys-typescript": pluginSortDestructureKeysTypescript, // "@typescript-eslint": pluginTs as any, @@ -491,13 +486,6 @@ export async function typescript( "array-callback-return": "off", // https://github.com/typescript-eslint/typescript-eslint/issues/2841 - false positive with TypeScript }, }, - { - name: "nirtamir2/typescript/paths", - files, - rules: { - "paths/alias": "warn", - }, - }, isTypeAware ? [] : tseslint.configs.disableTypeChecked, { name: "nirtamir2/typescript/overrides", diff --git a/src/plugins.ts b/src/plugins.ts index 819a6f1e45..f1f1520041 100644 --- a/src/plugins.ts +++ b/src/plugins.ts @@ -13,5 +13,4 @@ export { default as js } from "@eslint/js"; export { default as confusingBrowserGlobals } from "confusing-browser-globals"; export { default as arrayFunc } from "eslint-plugin-array-func"; export { default as eslintPluginNoUseExtendNative } from "eslint-plugin-no-use-extend-native"; -export { default as eslintPluginPaths } from "eslint-plugin-paths"; export { default as eslintConfigPrettier } from "eslint-config-prettier";