@trackunit/eslint-plugin-trackunit 0.6.161 → 0.6.162
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,19 @@
|
|
|
1
|
+
## 0.6.162 (2026-10-01)
|
|
2
|
+
|
|
3
|
+
### 🩹 Fixes
|
|
4
|
+
|
|
5
|
+
- **eslint-plugin-trackunit:** make no-unused-translation-key report again [GLU-2056] ([#26085](https://github.com/Trackunit/manager/pull/26085))
|
|
6
|
+
|
|
7
|
+
### 🧱 Updated Dependencies
|
|
8
|
+
|
|
9
|
+
- Updated css-classname-utils to 0.0.63
|
|
10
|
+
- Updated shared-utils to 1.18.1
|
|
11
|
+
|
|
12
|
+
### ❤️ Thank You
|
|
13
|
+
|
|
14
|
+
- Cursor @cursoragent
|
|
15
|
+
- Mikkel Thorbjørn Andersen @mta-trackunit
|
|
16
|
+
|
|
1
17
|
## 0.6.161 (2026-10-01)
|
|
2
18
|
|
|
3
19
|
### 🧱 Updated Dependencies
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/eslint-plugin-trackunit",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.162",
|
|
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.
|
|
11
|
+
"@trackunit/css-classname-utils": "0.0.63",
|
|
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",
|
|
@@ -1027,6 +1027,16 @@ export declare const configs: {
|
|
|
1027
1027
|
Text: string;
|
|
1028
1028
|
screen: string;
|
|
1029
1029
|
};
|
|
1030
|
+
parser?: undefined;
|
|
1031
|
+
ecmaVersion?: undefined;
|
|
1032
|
+
sourceType?: undefined;
|
|
1033
|
+
parserOptions?: undefined;
|
|
1034
|
+
};
|
|
1035
|
+
files?: undefined;
|
|
1036
|
+
rules?: undefined;
|
|
1037
|
+
} | {
|
|
1038
|
+
files: string[];
|
|
1039
|
+
languageOptions: {
|
|
1030
1040
|
parser: import("eslint").Linter.Parser;
|
|
1031
1041
|
ecmaVersion: number;
|
|
1032
1042
|
sourceType: string;
|
|
@@ -1035,8 +1045,10 @@ export declare const configs: {
|
|
|
1035
1045
|
jsx: boolean;
|
|
1036
1046
|
};
|
|
1037
1047
|
};
|
|
1048
|
+
globals?: undefined;
|
|
1038
1049
|
};
|
|
1039
|
-
|
|
1050
|
+
plugins?: undefined;
|
|
1051
|
+
settings?: undefined;
|
|
1040
1052
|
rules?: undefined;
|
|
1041
1053
|
} | {
|
|
1042
1054
|
files: string[];
|
|
@@ -526,6 +526,16 @@ export declare const reactPreset: (import("eslint").Linter.Config<import("eslint
|
|
|
526
526
|
Text: string;
|
|
527
527
|
screen: string;
|
|
528
528
|
};
|
|
529
|
+
parser?: undefined;
|
|
530
|
+
ecmaVersion?: undefined;
|
|
531
|
+
sourceType?: undefined;
|
|
532
|
+
parserOptions?: undefined;
|
|
533
|
+
};
|
|
534
|
+
files?: undefined;
|
|
535
|
+
rules?: undefined;
|
|
536
|
+
} | {
|
|
537
|
+
files: string[];
|
|
538
|
+
languageOptions: {
|
|
529
539
|
parser: import("eslint").Linter.Parser;
|
|
530
540
|
ecmaVersion: number;
|
|
531
541
|
sourceType: string;
|
|
@@ -534,8 +544,10 @@ export declare const reactPreset: (import("eslint").Linter.Config<import("eslint
|
|
|
534
544
|
jsx: boolean;
|
|
535
545
|
};
|
|
536
546
|
};
|
|
547
|
+
globals?: undefined;
|
|
537
548
|
};
|
|
538
|
-
|
|
549
|
+
plugins?: undefined;
|
|
550
|
+
settings?: undefined;
|
|
539
551
|
rules?: undefined;
|
|
540
552
|
} | {
|
|
541
553
|
files: string[];
|
|
@@ -6,6 +6,16 @@ const react_rules_1 = require("../fragments/react-rules");
|
|
|
6
6
|
const story_relaxations_1 = require("../fragments/story-relaxations");
|
|
7
7
|
const testing_library_1 = require("../fragments/testing-library");
|
|
8
8
|
const plugins_1 = require("../plugins");
|
|
9
|
+
/**
|
|
10
|
+
* Files that are parsed as code and therefore need the TypeScript parser.
|
|
11
|
+
*
|
|
12
|
+
* The parser must NOT be set on an unscoped config block: `react` is spread after `base`, and an
|
|
13
|
+
* unscoped `languageOptions.parser` overrides the JSON parser that `base` assigns to
|
|
14
|
+
* `locales/en/translation.json`. The JSON visitor of `@trackunit/no-unused-translation-key` then never
|
|
15
|
+
* fires and the rule silently reports nothing. `.cjs` and `.mjs` are listed so the config files
|
|
16
|
+
* that are linted by default keep the parser they had when it was unscoped.
|
|
17
|
+
*/
|
|
18
|
+
const codeFiles = ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx", "**/*.cjs", "**/*.mjs"];
|
|
9
19
|
exports.reactPreset = [
|
|
10
20
|
{
|
|
11
21
|
plugins: {
|
|
@@ -34,6 +44,11 @@ exports.reactPreset = [
|
|
|
34
44
|
Text: "writable",
|
|
35
45
|
screen: "writable",
|
|
36
46
|
},
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
files: codeFiles,
|
|
51
|
+
languageOptions: {
|
|
37
52
|
parser: plugins_1.tsParser,
|
|
38
53
|
ecmaVersion: 2022,
|
|
39
54
|
sourceType: "module",
|
|
@@ -3,12 +3,21 @@ export declare const server: ({
|
|
|
3
3
|
globals: {
|
|
4
4
|
[x: string]: boolean | "readonly" | "writable";
|
|
5
5
|
};
|
|
6
|
-
parser
|
|
6
|
+
parser?: undefined;
|
|
7
7
|
parserOptions?: undefined;
|
|
8
8
|
};
|
|
9
9
|
files?: undefined;
|
|
10
10
|
plugins?: undefined;
|
|
11
11
|
rules?: undefined;
|
|
12
|
+
} | {
|
|
13
|
+
files: string[];
|
|
14
|
+
languageOptions: {
|
|
15
|
+
parser: import("eslint").Linter.Parser;
|
|
16
|
+
globals?: undefined;
|
|
17
|
+
parserOptions?: undefined;
|
|
18
|
+
};
|
|
19
|
+
plugins?: undefined;
|
|
20
|
+
rules?: undefined;
|
|
12
21
|
} | {
|
|
13
22
|
files: string[];
|
|
14
23
|
plugins: {
|
|
@@ -5,12 +5,24 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const compat_1 = require("@eslint/compat");
|
|
6
6
|
const typeGraphql = tslib_1.__importStar(require("eslint-plugin-type-graphql"));
|
|
7
7
|
const plugins_1 = require("../plugins");
|
|
8
|
+
/**
|
|
9
|
+
* The parser must NOT be set on an unscoped config block: an unscoped `languageOptions.parser`
|
|
10
|
+
* overrides the JSON parser that `base` assigns to `locales/en/translation.json`, which silently
|
|
11
|
+
* disables `@trackunit/no-unused-translation-key`. `.cjs` and `.mjs` are listed so the config
|
|
12
|
+
* files linted by default keep the parser they had when it was unscoped.
|
|
13
|
+
*/
|
|
14
|
+
const codeFiles = ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx", "**/*.cjs", "**/*.mjs"];
|
|
8
15
|
exports.server = [
|
|
9
16
|
{
|
|
10
17
|
languageOptions: {
|
|
11
18
|
globals: {
|
|
12
19
|
...plugins_1.globals.browser,
|
|
13
20
|
},
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
files: codeFiles,
|
|
25
|
+
languageOptions: {
|
|
14
26
|
parser: plugins_1.tsParser,
|
|
15
27
|
},
|
|
16
28
|
},
|