Skip to content

Commit dcacca8

Browse files
committed
fix: sync plugin version, fix changelog URLs, remove duplicate dep
- Plugin meta.version now synced via release-it hook - Fix broken compare URLs in CHANGELOG (was missing repo URL) - Remove duplicate @typescript-eslint/utils from devDependencies - Add author field to package.json
1 parent 93efd15 commit dcacca8

File tree

4 files changed

+29
-16
lines changed

4 files changed

+29
-16
lines changed

.release-it.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,15 @@
2424
{ "type": "chore", "hidden": true }
2525
]
2626
},
27-
"infile": "CHANGELOG.md"
27+
"infile": "CHANGELOG.md",
28+
"header": "# Changelog\n\nAll notable changes to this project will be documented in this file."
2829
}
2930
},
3031
"hooks": {
3132
"before:init": ["npm run lint", "npm run typecheck", "npm test"],
32-
"after:bump": "npm run build"
33+
"after:bump": [
34+
"sed -i '' 's/PLUGIN_VERSION = \"[^\"]*\"/PLUGIN_VERSION = \"${version}\"/' src/index.ts",
35+
"npm run build"
36+
]
3337
}
3438
}

CHANGELOG.md

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,39 @@
11
# Changelog
22

3-
## [1.6.0](///compare/v1.5.0...v1.6.0) (2025-12-03)
3+
All notable changes to this project will be documented in this file.
4+
5+
## [1.6.0](https://github.com/sebastian-software/eslint-plugin-lingui-typescript/compare/v1.5.0...v1.6.0) (2025-12-03)
46

57
### Features
68

79
* **no-unlocalized-strings:** auto-ignore styling helper functions f1dc5ba
810
* **no-unlocalized-strings:** verify return type of styling helper functions 02acd46
911

10-
## [1.5.0](///compare/v1.4.0...v1.5.0) (2025-12-03)
12+
## [1.5.0](https://github.com/sebastian-software/eslint-plugin-lingui-typescript/compare/v1.4.0...v1.5.0) (2025-12-03)
1113

1214
### Features
1315

1416
* **no-unlocalized-strings:** support cn() in styling variable assignments 2741be6
1517

16-
## [1.4.0](///compare/v1.3.0...v1.4.0) (2025-12-03)
18+
## [1.4.0](https://github.com/sebastian-software/eslint-plugin-lingui-typescript/compare/v1.3.0...v1.4.0) (2025-12-03)
1719

1820
### Features
1921

2022
* **no-unlocalized-strings:** support camelCase styling variable names f0fb00c
2123

22-
## [1.3.0](///compare/v1.2.2...v1.3.0) (2025-12-03)
24+
## [1.3.0](https://github.com/sebastian-software/eslint-plugin-lingui-typescript/compare/v1.2.2...v1.3.0) (2025-12-03)
2325

2426
### Features
2527

2628
* **no-unlocalized-strings:** support nested classNames objects 20eb965
2729

28-
## [1.2.2](///compare/v1.2.1...v1.2.2) (2025-12-03)
30+
## [1.2.2](https://github.com/sebastian-software/eslint-plugin-lingui-typescript/compare/v1.2.1...v1.2.2) (2025-12-03)
2931

3032
### Features
3133

3234
* **no-unlocalized-strings:** support className utility functions eda6256
3335

34-
## [1.2.1](///compare/v1.2.0...v1.2.1) (2025-12-03)
36+
## [1.2.1](https://github.com/sebastian-software/eslint-plugin-lingui-typescript/compare/v1.2.0...v1.2.1) (2025-12-03)
3537

3638
### Features
3739

@@ -41,20 +43,20 @@
4143

4244
* **no-unlocalized-strings:** only ignore direct property values in styling constants 1f10da8
4345

44-
## [1.2.0](///compare/v1.1.1...v1.2.0) (2025-12-03)
46+
## [1.2.0](https://github.com/sebastian-software/eslint-plugin-lingui-typescript/compare/v1.1.1...v1.2.0) (2025-12-03)
4547

4648
### Features
4749

4850
* **no-unlocalized-strings:** auto-ignore camelCase styling properties 8a88bf8
4951
* **no-unlocalized-strings:** skip strings without any letters ceae7a1
5052

51-
## [1.1.1](///compare/v1.1.0...v1.1.1) (2025-12-03)
53+
## [1.1.1](https://github.com/sebastian-software/eslint-plugin-lingui-typescript/compare/v1.1.0...v1.1.1) (2025-12-03)
5254

5355
### Bug Fixes
5456

5557
* **rules:** check strings inside exported functions 547c27e
5658

57-
## [1.1.0](///compare/v1.0.1...v1.1.0) (2025-12-02)
59+
## [1.1.0](https://github.com/sebastian-software/eslint-plugin-lingui-typescript/compare/v1.0.1...v1.1.0) (2025-12-02)
5860

5961
### Features
6062

@@ -69,6 +71,10 @@
6971

7072
* Revert "test: name slow test for cleaner vitest output" bf6eede
7173

72-
## [1.0.1](///compare/v1.0.0...v1.0.1) (2025-12-02)
74+
## [1.0.1](https://github.com/sebastian-software/eslint-plugin-lingui-typescript/compare/v1.0.0...v1.0.1) (2025-12-02)
7375

74-
All notable changes to this project will be documented in this file.
76+
Initial stable release.
77+
78+
## 1.0.0 (2025-12-02)
79+
80+
Initial release with 8 rules for Lingui TypeScript projects.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"localization",
4646
"typescript"
4747
],
48-
"author": "",
48+
"author": "Sebastian Software GmbH <s.werner@sebastian-software.de> (https://www.sebastian-software.de)",
4949
"license": "MIT",
5050
"engines": {
5151
"node": ">=24"
@@ -72,7 +72,6 @@
7272
"@typescript-eslint/eslint-plugin": "^8.48.1",
7373
"@typescript-eslint/parser": "^8.48.1",
7474
"@typescript-eslint/rule-tester": "^8.48.1",
75-
"@typescript-eslint/utils": "^8.48.1",
7675
"eslint": "^9.39.1",
7776
"husky": "^9.1.7",
7877
"jiti": "^2.6.1",

src/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
*/
66

77
import { consistentPluralFormat } from "./rules/consistent-plural-format.js"
8+
9+
// Read version from package.json at build time
10+
// This is resolved by TypeScript with resolveJsonModule or by the bundler
11+
const PLUGIN_VERSION = "1.6.0" // Synced with package.json during release
812
import { noExpressionInMessage } from "./rules/no-expression-in-message.js"
913
import { noNestedMacros } from "./rules/no-nested-macros.js"
1014
import { noSingleTagToTranslate } from "./rules/no-single-tag-to-translate.js"
@@ -16,7 +20,7 @@ import { tCallInFunction } from "./rules/t-call-in-function.js"
1620
const plugin = {
1721
meta: {
1822
name: "eslint-plugin-lingui-typescript",
19-
version: "1.0.0"
23+
version: PLUGIN_VERSION
2024
},
2125
rules: {
2226
"consistent-plural-format": consistentPluralFormat,

0 commit comments

Comments
 (0)