@trackunit/eslint-plugin-trackunit 0.6.101 → 0.6.102
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.102 (2026-08-13)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- **react-components:** export non-hook localStorage accessors ([31ad79ac14d](https://github.com/Trackunit/manager/commit/31ad79ac14d))
|
|
6
|
+
|
|
7
|
+
### 🧱 Updated Dependencies
|
|
8
|
+
|
|
9
|
+
- Updated css-classname-utils to 0.0.8
|
|
10
|
+
- Updated shared-utils to 1.16.5
|
|
11
|
+
|
|
12
|
+
### ❤️ Thank You
|
|
13
|
+
|
|
14
|
+
- Cursor @cursoragent
|
|
15
|
+
- Mikkel Thorbjørn Andersen
|
|
16
|
+
|
|
1
17
|
## 0.6.101 (2026-08-12)
|
|
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.102",
|
|
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.8",
|
|
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",
|
|
@@ -43,6 +43,7 @@ const storageHookImplementationFiles = [
|
|
|
43
43
|
"libs/react/components/src/hooks/localStorage/useLocalStorageReducer.ts",
|
|
44
44
|
"libs/react/components/src/hooks/localStorage/useSessionStorage.ts",
|
|
45
45
|
"libs/react/components/src/hooks/localStorage/useSessionStorageReducer.ts",
|
|
46
|
+
"libs/shared/utils/src/localStorage/localStorageAccessors.ts",
|
|
46
47
|
];
|
|
47
48
|
exports.noDirectStoragePropertyExceptionOverrides = {
|
|
48
49
|
basePath: (0, utils_1.findMonorepoRoot)(),
|
|
@@ -179,6 +179,7 @@ export declare const base: (import("eslint").Linter.FlatConfig<import("eslint").
|
|
|
179
179
|
"no-console": string;
|
|
180
180
|
"no-var": string;
|
|
181
181
|
"prefer-const": string;
|
|
182
|
+
"prefer-template": string;
|
|
182
183
|
"no-template-curly-in-string": string;
|
|
183
184
|
eqeqeq: string[];
|
|
184
185
|
"no-undef-init": string;
|
|
@@ -86,14 +86,14 @@ const addImportSpecifiers = (options) => {
|
|
|
86
86
|
const lastImport = sourceCode.ast.body.find((node) => node.type === utils_1.AST_NODE_TYPES.ImportDeclaration);
|
|
87
87
|
if (lastImport) {
|
|
88
88
|
// Add after existing imports with leading newline
|
|
89
|
-
const importStatement =
|
|
89
|
+
const importStatement = `\n${buildImportStatement(sourceCode, packageName, specifiers, lastImport)}`;
|
|
90
90
|
fixes.push(fixer.insertTextAfter(lastImport, importStatement));
|
|
91
91
|
}
|
|
92
92
|
else {
|
|
93
93
|
// No imports exist - add at the beginning with trailing newlines
|
|
94
94
|
const firstNode = sourceCode.ast.body[0];
|
|
95
95
|
if (firstNode) {
|
|
96
|
-
const importStatement = buildImportStatement(sourceCode, packageName, specifiers)
|
|
96
|
+
const importStatement = `${buildImportStatement(sourceCode, packageName, specifiers)}\n\n`;
|
|
97
97
|
fixes.push(fixer.insertTextBefore(firstNode, importStatement));
|
|
98
98
|
}
|
|
99
99
|
}
|