@trackunit/eslint-plugin-trackunit 0.6.117 → 0.6.118

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## 0.6.118 (2026-08-25)
2
+
3
+ ### 🧱 Updated Dependencies
4
+
5
+ - Updated css-classname-utils to 0.0.21
6
+ - Updated shared-utils to 1.16.21
7
+
1
8
  ## 0.6.117 (2026-08-20)
2
9
 
3
10
  ### 🩹 Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/eslint-plugin-trackunit",
3
- "version": "0.6.117",
3
+ "version": "0.6.118",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "repository": "https://github.com/Trackunit/manager",
6
6
  "engines": {
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "dependencies": {
10
10
  "@nx/eslint-plugin": "23.1.0",
11
- "@trackunit/css-classname-utils": "0.0.20",
11
+ "@trackunit/css-classname-utils": "0.0.21",
12
12
  "@typescript-eslint/eslint-plugin": "8.58.1",
13
13
  "@typescript-eslint/utils": "8.58.1",
14
14
  "eslint-config-prettier": "^10.1.8",
@@ -11,6 +11,7 @@ exports.importRules = {
11
11
  },
12
12
  ],
13
13
  "import-x/first": "off",
14
+ "import-x/no-default-export": "warn",
14
15
  };
15
16
  const createImportExtraneousDependenciesConfig = (rootDir) => (0, create_skip_when_1.createSkipWhen)({
16
17
  when: { tags: ["scope:tool"] },
@@ -5,8 +5,8 @@ const plugins_1 = require("../plugins");
5
5
  exports.baseJestOverrides = {
6
6
  files: ["**/*.spec.ts", "**/*.spec.tsx"],
7
7
  languageOptions: {
8
- ecmaVersion: 5,
9
- sourceType: "script",
8
+ ecmaVersion: 2022,
9
+ sourceType: "module",
10
10
  parserOptions: {
11
11
  project: ["./tsconfig.*?.json"],
12
12
  },
@@ -149,6 +149,7 @@ export declare const configs: {
149
149
  "@trackunit/no-unused-translation-key"?: undefined;
150
150
  "@typescript-eslint/no-require-imports"?: undefined;
151
151
  "@nx/enforce-module-boundaries"?: undefined;
152
+ "import-x/no-default-export"?: undefined;
152
153
  };
153
154
  files?: undefined;
154
155
  languageOptions?: undefined;
@@ -195,6 +196,7 @@ export declare const configs: {
195
196
  "@trackunit/no-unused-translation-key"?: undefined;
196
197
  "@typescript-eslint/no-require-imports"?: undefined;
197
198
  "@nx/enforce-module-boundaries"?: undefined;
199
+ "import-x/no-default-export"?: undefined;
198
200
  };
199
201
  plugins?: undefined;
200
202
  } | {
@@ -316,6 +318,7 @@ export declare const configs: {
316
318
  "@trackunit/no-unused-translation-key"?: undefined;
317
319
  "@typescript-eslint/no-require-imports"?: undefined;
318
320
  "@nx/enforce-module-boundaries"?: undefined;
321
+ "import-x/no-default-export"?: undefined;
319
322
  };
320
323
  } | {
321
324
  files: string[];
@@ -436,6 +439,7 @@ export declare const configs: {
436
439
  "@trackunit/no-deprecated-graphql-fields"?: undefined;
437
440
  "@typescript-eslint/no-require-imports"?: undefined;
438
441
  "@nx/enforce-module-boundaries"?: undefined;
442
+ "import-x/no-default-export"?: undefined;
439
443
  };
440
444
  } | {
441
445
  files: string[];
@@ -445,6 +449,7 @@ export declare const configs: {
445
449
  "@trackunit/no-deprecated-graphql-fields"?: undefined;
446
450
  "@trackunit/no-unused-translation-key"?: undefined;
447
451
  "@nx/enforce-module-boundaries"?: undefined;
452
+ "import-x/no-default-export"?: undefined;
448
453
  };
449
454
  plugins?: undefined;
450
455
  languageOptions?: undefined;
@@ -456,6 +461,19 @@ export declare const configs: {
456
461
  "@trackunit/no-deprecated-graphql-fields"?: undefined;
457
462
  "@trackunit/no-unused-translation-key"?: undefined;
458
463
  "@typescript-eslint/no-require-imports"?: undefined;
464
+ "import-x/no-default-export"?: undefined;
465
+ };
466
+ plugins?: undefined;
467
+ languageOptions?: undefined;
468
+ } | {
469
+ files: string[];
470
+ rules: {
471
+ "import-x/no-default-export": string;
472
+ "@trackunit/no-internal-graphql-when-tagged-with-gql-public"?: undefined;
473
+ "@trackunit/no-deprecated-graphql-fields"?: undefined;
474
+ "@trackunit/no-unused-translation-key"?: undefined;
475
+ "@typescript-eslint/no-require-imports"?: undefined;
476
+ "@nx/enforce-module-boundaries"?: undefined;
459
477
  };
460
478
  plugins?: undefined;
461
479
  languageOptions?: undefined;
@@ -149,6 +149,7 @@ export declare const base: (import("eslint").Linter.FlatConfig<import("eslint").
149
149
  "@trackunit/no-unused-translation-key"?: undefined;
150
150
  "@typescript-eslint/no-require-imports"?: undefined;
151
151
  "@nx/enforce-module-boundaries"?: undefined;
152
+ "import-x/no-default-export"?: undefined;
152
153
  };
153
154
  files?: undefined;
154
155
  languageOptions?: undefined;
@@ -195,6 +196,7 @@ export declare const base: (import("eslint").Linter.FlatConfig<import("eslint").
195
196
  "@trackunit/no-unused-translation-key"?: undefined;
196
197
  "@typescript-eslint/no-require-imports"?: undefined;
197
198
  "@nx/enforce-module-boundaries"?: undefined;
199
+ "import-x/no-default-export"?: undefined;
198
200
  };
199
201
  plugins?: undefined;
200
202
  } | {
@@ -316,6 +318,7 @@ export declare const base: (import("eslint").Linter.FlatConfig<import("eslint").
316
318
  "@trackunit/no-unused-translation-key"?: undefined;
317
319
  "@typescript-eslint/no-require-imports"?: undefined;
318
320
  "@nx/enforce-module-boundaries"?: undefined;
321
+ "import-x/no-default-export"?: undefined;
319
322
  };
320
323
  } | {
321
324
  files: string[];
@@ -436,6 +439,7 @@ export declare const base: (import("eslint").Linter.FlatConfig<import("eslint").
436
439
  "@trackunit/no-deprecated-graphql-fields"?: undefined;
437
440
  "@typescript-eslint/no-require-imports"?: undefined;
438
441
  "@nx/enforce-module-boundaries"?: undefined;
442
+ "import-x/no-default-export"?: undefined;
439
443
  };
440
444
  } | {
441
445
  files: string[];
@@ -445,6 +449,7 @@ export declare const base: (import("eslint").Linter.FlatConfig<import("eslint").
445
449
  "@trackunit/no-deprecated-graphql-fields"?: undefined;
446
450
  "@trackunit/no-unused-translation-key"?: undefined;
447
451
  "@nx/enforce-module-boundaries"?: undefined;
452
+ "import-x/no-default-export"?: undefined;
448
453
  };
449
454
  plugins?: undefined;
450
455
  languageOptions?: undefined;
@@ -456,6 +461,19 @@ export declare const base: (import("eslint").Linter.FlatConfig<import("eslint").
456
461
  "@trackunit/no-deprecated-graphql-fields"?: undefined;
457
462
  "@trackunit/no-unused-translation-key"?: undefined;
458
463
  "@typescript-eslint/no-require-imports"?: undefined;
464
+ "import-x/no-default-export"?: undefined;
465
+ };
466
+ plugins?: undefined;
467
+ languageOptions?: undefined;
468
+ } | {
469
+ files: string[];
470
+ rules: {
471
+ "import-x/no-default-export": string;
472
+ "@trackunit/no-internal-graphql-when-tagged-with-gql-public"?: undefined;
473
+ "@trackunit/no-deprecated-graphql-fields"?: undefined;
474
+ "@trackunit/no-unused-translation-key"?: undefined;
475
+ "@typescript-eslint/no-require-imports"?: undefined;
476
+ "@nx/enforce-module-boundaries"?: undefined;
459
477
  };
460
478
  plugins?: undefined;
461
479
  languageOptions?: undefined;
@@ -73,8 +73,8 @@ exports.base = [
73
73
  {
74
74
  files: ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx"],
75
75
  languageOptions: {
76
- ecmaVersion: 5,
77
- sourceType: "script",
76
+ ecmaVersion: 2022,
77
+ sourceType: "module",
78
78
  parser: plugins_1.tsParser,
79
79
  parserOptions: {
80
80
  project: ["./tsconfig.*?.json"],
@@ -165,5 +165,34 @@ exports.base = [
165
165
  "@nx/enforce-module-boundaries": "off",
166
166
  },
167
167
  },
168
+ {
169
+ // Files that legitimately require a default export and cannot be converted:
170
+ // - Storybook CSF (meta object), demo files and .storybook config
171
+ // - tool config files (only these *.config.* names carry a default export) and GraphQL codegen
172
+ // - Nx generators/executors and migration codemods (Nx loads them via the default export,
173
+ // except entries whose implementation string carries a #namedExport suffix)
174
+ // - iris-app manifests and framework entry points loaded via their default export
175
+ files: [
176
+ "**/*.stories.{ts,tsx,js,jsx}",
177
+ "**/*.demo.{ts,tsx,js,jsx}",
178
+ "**/.storybook/**/*.{ts,tsx}",
179
+ "**/vite.config.{ts,js}",
180
+ "**/vitest.config.{ts,js}",
181
+ "**/jest.config.{ts,js}",
182
+ "**/playwright.config.{ts,js}",
183
+ "**/codegen.ts",
184
+ "**/generators/**/generator.ts",
185
+ "**/executors/**/executor.ts",
186
+ "**/migrations/v[0-9]*/**/*.{ts,tsx}",
187
+ "**/extension-manifest.ts",
188
+ "**/iris-app-manifest.ts",
189
+ "**/iris-app-playwright/src/plugins/logsReporter.ts",
190
+ "**/react/test-setup/src/preset.ts",
191
+ "**/react/vite-test-setup/src/preset.ts",
192
+ ],
193
+ rules: {
194
+ "import-x/no-default-export": "off",
195
+ },
196
+ },
168
197
  ];
169
198
  //# sourceMappingURL=base.js.map
@@ -31,7 +31,7 @@ exports.reactPreset = [
31
31
  },
32
32
  parser: plugins_1.tsParser,
33
33
  ecmaVersion: 2022,
34
- sourceType: "commonjs",
34
+ sourceType: "module",
35
35
  parserOptions: {
36
36
  ecmaFeatures: {
37
37
  jsx: true,