@powerlines/plugin-eslint 0.8.118 → 0.8.120

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -217,6 +217,10 @@ interface ResolveOptions$1 extends ResolveOptions {
217
217
  * If true, the module is being resolved as an entry point.
218
218
  */
219
219
  isEntry?: boolean;
220
+ /**
221
+ * If true, the resolver will skip alias resolution when resolving modules.
222
+ */
223
+ skipAlias?: boolean;
220
224
  /**
221
225
  * If true, the resolver will skip using the cache when resolving modules.
222
226
  */
@@ -449,6 +453,16 @@ interface VirtualFileSystemInterface {
449
453
  * @returns The resolved module path.
450
454
  */
451
455
  resolveSync: (id: string, importer?: string, options?: ResolveOptions$1) => string | undefined;
456
+ /**
457
+ * Resolves a given module ID using the configured aliases.
458
+ *
459
+ * @remarks
460
+ * This function can be used to map module IDs to different paths based on the alias configuration.
461
+ *
462
+ * @param id - The module ID to resolve.
463
+ * @returns The resolved module ID - after applying any configured aliases (this will be the same as the input ID if no aliases match).
464
+ */
465
+ resolveAlias: (id: string) => string;
452
466
  /**
453
467
  * Disposes of the virtual file system (VFS), writes any virtual file changes to disk, and releases any associated resources.
454
468
  */
@@ -217,6 +217,10 @@ interface ResolveOptions$1 extends ResolveOptions {
217
217
  * If true, the module is being resolved as an entry point.
218
218
  */
219
219
  isEntry?: boolean;
220
+ /**
221
+ * If true, the resolver will skip alias resolution when resolving modules.
222
+ */
223
+ skipAlias?: boolean;
220
224
  /**
221
225
  * If true, the resolver will skip using the cache when resolving modules.
222
226
  */
@@ -449,6 +453,16 @@ interface VirtualFileSystemInterface {
449
453
  * @returns The resolved module path.
450
454
  */
451
455
  resolveSync: (id: string, importer?: string, options?: ResolveOptions$1) => string | undefined;
456
+ /**
457
+ * Resolves a given module ID using the configured aliases.
458
+ *
459
+ * @remarks
460
+ * This function can be used to map module IDs to different paths based on the alias configuration.
461
+ *
462
+ * @param id - The module ID to resolve.
463
+ * @returns The resolved module ID - after applying any configured aliases (this will be the same as the input ID if no aliases match).
464
+ */
465
+ resolveAlias: (id: string) => string;
452
466
  /**
453
467
  * Disposes of the virtual file system (VFS), writes any virtual file changes to disk, and releases any associated resources.
454
468
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-eslint",
3
- "version": "0.8.118",
3
+ "version": "0.8.120",
4
4
  "type": "module",
5
5
  "description": "A package containing a Powerlines plugin for running ESLint on the codebase.",
6
6
  "repository": {
@@ -105,13 +105,13 @@
105
105
  "@stryke/path": "^0.24.0",
106
106
  "defu": "^6.1.4",
107
107
  "eslint": "^9.39.2",
108
- "powerlines": "^0.36.19"
108
+ "powerlines": "^0.36.21"
109
109
  },
110
110
  "devDependencies": {
111
- "@powerlines/nx": "^0.11.45",
111
+ "@powerlines/nx": "^0.11.47",
112
112
  "@storm-software/tsup": "^0.2.72",
113
113
  "@types/node": "^24.10.4"
114
114
  },
115
115
  "publishConfig": { "access": "public" },
116
- "gitHead": "b4b5079fef10cf5fccdaa2ff09dd8f728ff25bf7"
116
+ "gitHead": "b16324cf857ea5743fd7ad06e18607b1ba32abe0"
117
117
  }