@dword-design/eslint-plugin-import-alias 8.1.3 → 8.1.5

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.
package/LICENSE.md CHANGED
@@ -14,17 +14,17 @@ MIT License
14
14
 
15
15
  Copyright (c) <year> <copyright holders>
16
16
 
17
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
18
- associated documentation files (the "Software"), to deal in the Software without restriction, including
19
- without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
20
- copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the
17
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
18
+ associated documentation files (the "Software"), to deal in the Software without restriction, including
19
+ without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
20
+ copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the
21
21
  following conditions:
22
22
 
23
- The above copyright notice and this permission notice shall be included in all copies or substantial
23
+ The above copyright notice and this permission notice shall be included in all copies or substantial
24
24
  portions of the Software.
25
25
 
26
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
27
- LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
28
- EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
29
- IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
26
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
27
+ LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
28
+ EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
29
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
30
30
  USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md CHANGED
@@ -89,7 +89,7 @@ Add the plugin to your ESLint config:
89
89
  // eslint.config.ts
90
90
 
91
91
  import { defineConfig } from 'eslint/config';
92
- import importAlias from '@dword-design/import-alias';
92
+ import importAlias from '@dword-design/eslint-plugin-import-alias';
93
93
 
94
94
  export default defineConfig([
95
95
  importAlias.configs.recommended,
@@ -102,7 +102,7 @@ Options can be passed by setting them in the `prefer-alias` rule:
102
102
  // eslint.config.ts
103
103
 
104
104
  import { defineConfig } from 'eslint/config';
105
- import importAlias from '@dword-design/import-alias';
105
+ import importAlias from '@dword-design/eslint-plugin-import-alias';
106
106
 
107
107
  export default defineConfig([
108
108
  importAlias.configs.recommended,
@@ -146,7 +146,7 @@ You can also just pass the aliases to the plugin as an option.
146
146
  // eslint.config.ts
147
147
 
148
148
  import { defineConfig } from 'eslint/config';
149
- import importAlias from '@dword-design/import-alias';
149
+ import importAlias from '@dword-design/eslint-plugin-import-alias';
150
150
 
151
151
  export default defineConfig([
152
152
  importAlias.configs.recommended,
@@ -184,7 +184,7 @@ rules: {
184
184
  }
185
185
  ```
186
186
 
187
- If an import resolves to a file insode `app`, `@` will be preferred over `@@` although both aliases match. This is convenient for the use case where you have a lot of aliases for top-level folders like `components`, `utils` etc where you usually want those instead of a generic root alias. If you have other use cases, please let me know.
187
+ If an import resolves to a file inside `app`, `@` will be preferred over `@@` although both aliases match. This is convenient for the use case where you have a lot of aliases for top-level folders like `components`, `utils` etc where you usually want those instead of a generic root alias. If you have other use cases, please let me know.
188
188
 
189
189
  <!-- LICENSE/ -->
190
190
  ## Contribute
package/dist/index.d.ts CHANGED
@@ -4,7 +4,9 @@ declare const _default: {
4
4
  plugins: {
5
5
  '@dword-design/import-alias': {
6
6
  rules: {
7
- 'prefer-alias': import("@typescript-eslint/utils/dist/ts-eslint").RuleModule<"parentImport" | "subpathImport", [import("./rules/prefer-alias").OptionsInput], unknown, import("@typescript-eslint/utils/dist/ts-eslint").RuleListener>;
7
+ 'prefer-alias': import("@typescript-eslint/utils/dist/ts-eslint").RuleModule<"parentImport" | "subpathImport", [import("./rules/prefer-alias").OptionsInput], unknown, import("@typescript-eslint/utils/dist/ts-eslint").RuleListener> & {
8
+ name: string;
9
+ };
8
10
  };
9
11
  };
10
12
  };
@@ -22,5 +22,7 @@ export type OptionsInput = Omit<Partial<Options>, 'alias'> & {
22
22
  alias?: Record<string, string>;
23
23
  babelOptions?: BabelOptions;
24
24
  };
25
- declare const _default: ESLintUtils.RuleModule<"parentImport" | "subpathImport", [OptionsInput], unknown, ESLintUtils.RuleListener>;
25
+ declare const _default: ESLintUtils.RuleModule<"parentImport" | "subpathImport", [OptionsInput], unknown, ESLintUtils.RuleListener> & {
26
+ name: string;
27
+ };
26
28
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dword-design/eslint-plugin-import-alias",
3
- "version": "8.1.3",
3
+ "version": "8.1.5",
4
4
  "description": "An ESLint plugin that enforces the use of import aliases. Also supports autofixing.",
5
5
  "keywords": [
6
6
  "alias",
@@ -51,25 +51,26 @@
51
51
  "verify": "base verify"
52
52
  },
53
53
  "dependencies": {
54
- "@babel/core": "^7.28.5",
55
- "@dword-design/defaults": "^1.1.1",
54
+ "@babel/core": "^7.29.0",
55
+ "@dword-design/defaults": "^1.1.2",
56
56
  "@types/babel__core": "^7.20.5",
57
57
  "@types/lodash-es": "^4.17.12",
58
- "@typescript-eslint/utils": "^8.50.1",
58
+ "@typescript-eslint/utils": "^8.57.0",
59
59
  "babel-plugin-module-resolver": "^5.0.2",
60
60
  "micromatch": "^4.0.8"
61
61
  },
62
62
  "devDependencies": {
63
- "@dword-design/base": "^16.1.7",
64
- "@playwright/test": "^1.57.0",
63
+ "@dword-design/base": "^16.2.3",
64
+ "@playwright/test": "^1.58.2",
65
65
  "@types/micromatch": "^4.0.10",
66
+ "@types/node": "^25.4.0",
66
67
  "depcheck-package-name": "^5.0.0",
67
68
  "endent": "npm:@dword-design/endent@^1.4.7",
68
- "eslint": "^9.39.2",
69
- "lodash-es": "^4.17.22",
70
- "output-files": "^3.0.0",
71
- "typescript": "^5.0.0",
72
- "typescript-eslint": "^8.50.0"
69
+ "eslint": "^9.39.4",
70
+ "lodash-es": "^4.17.23",
71
+ "output-files": "^4.0.0",
72
+ "typescript": "^5.9.3",
73
+ "typescript-eslint": "^8.57.0"
73
74
  },
74
75
  "peerDependencies": {
75
76
  "typescript": ">=5.0.0"