@konvert7/klint 1.6.0 → 1.7.1
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/README.md +1 -1
- package/klint.schema.json +1 -1
- package/klint.schema.yaml +1 -1
- package/package.json +38 -21
package/README.md
CHANGED
|
@@ -261,7 +261,7 @@ arch:
|
|
|
261
261
|
|
|
262
262
|
The rule ids in the output stay `sonar/…`, for example `sonar/prefer-at`.
|
|
263
263
|
|
|
264
|
-
**v1 still works.** The flat map under `rules` (with `sonar/` prefixes) and `plugins: [sonar]` are still read. A v1 config gets one `klint/config` warning. `klint migrate` or `klint --fix` upgrades it in place and keeps comments, blank lines and key order. It refuses, naming the line, when it cannot do that safely: YAML anchors, aliases, tags, a flow-map `rules`, duplicate keys, or a config that mixes v1 and v2 keys. A mixed config is read as v2 and the v1 entries are ignored, with one warning.
|
|
264
|
+
**v1 still works.** The flat map under `rules` (with `sonar/` prefixes) and `plugins: [sonar]` are still read. A v1 config gets one `klint/config` warning. `klint migrate` or `klint --fix` upgrades it in place and keeps comments, blank lines and key order. It refuses, naming the line, when it cannot do that safely: YAML anchors, aliases, tags, a flow-map `rules`, duplicate keys, or a config that mixes v1 and v2 keys. A mixed config is read as v2 and the v1 entries are ignored, with one warning. `no-date-equality` and `no-floating-promise` move to `rules.experimental`. A v1 config ignores them, so after the migration they run for the first time; `klint migrate` prints how many findings each one has.
|
|
265
265
|
|
|
266
266
|
`arch` declares architecture constraints without writing a custom rule.
|
|
267
267
|
|
package/klint.schema.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://raw.githubusercontent.com/konvert7/klint/refs/tags/v1.
|
|
2
|
+
"$id": "https://raw.githubusercontent.com/konvert7/klint/refs/tags/v1.7.1/klint.schema.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"additionalProperties": false,
|
|
5
5
|
"description": "klint configuration. Lives at klint.yaml (or klint.config.json) next to biome.json and knip.json.",
|
package/klint.schema.yaml
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
$id: https://raw.githubusercontent.com/konvert7/klint/refs/tags/v1.
|
|
1
|
+
$id: https://raw.githubusercontent.com/konvert7/klint/refs/tags/v1.7.1/klint.schema.json
|
|
2
2
|
$schema: http://json-schema.org/draft-07/schema#
|
|
3
3
|
additionalProperties: false
|
|
4
4
|
description: klint configuration. Lives at klint.yaml (or klint.config.json) next to biome.json and knip.json.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@konvert7/klint",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.1",
|
|
4
4
|
"description": "Architecture-as-Code linter for TypeScript. Enforce layer boundaries, import rules, and singleton patterns in YAML.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -46,6 +46,12 @@
|
|
|
46
46
|
"knip": "knip-bun",
|
|
47
47
|
"klint": "cargo run --quiet -p klint-rs --",
|
|
48
48
|
"jscpd": "jscpd --noTips",
|
|
49
|
+
"madge": "madge --circular --extensions ts --ts-config tsconfig.json tools tests .agents/hooks",
|
|
50
|
+
"lf": "bun tools/check-lf.ts",
|
|
51
|
+
"lf:fix": "bun tools/check-lf.ts --fix",
|
|
52
|
+
"exact-versions": "bun tools/check-exact-versions.ts",
|
|
53
|
+
"lock:check": "bun tools/check-lock.ts",
|
|
54
|
+
"secretlint": "secretlint \"**/*\"",
|
|
49
55
|
"schema": "cargo run --quiet -p klint-rs --example generate_schema -- $npm_package_version",
|
|
50
56
|
"lint-staged": "lint-staged",
|
|
51
57
|
"prepare": "bun .husky/install.mjs"
|
|
@@ -53,35 +59,41 @@
|
|
|
53
59
|
"lint-staged": {
|
|
54
60
|
"*.ts": [
|
|
55
61
|
"bun run check"
|
|
62
|
+
],
|
|
63
|
+
"{package.json,bun.lock,bunfig.toml,.npmrc,Cargo.toml,Cargo.lock}": [
|
|
64
|
+
"bun run lock:check"
|
|
56
65
|
]
|
|
57
66
|
},
|
|
58
67
|
"optionalDependencies": {
|
|
59
|
-
"@konvert7/klint-darwin-arm64": "1.
|
|
60
|
-
"@konvert7/klint-darwin-x64": "1.
|
|
61
|
-
"@konvert7/klint-linux-arm64": "1.
|
|
62
|
-
"@konvert7/klint-linux-x64": "1.
|
|
63
|
-
"@konvert7/klint-linux-x64-musl": "1.
|
|
64
|
-
"@konvert7/klint-win32-x64": "1.
|
|
68
|
+
"@konvert7/klint-darwin-arm64": "1.7.1",
|
|
69
|
+
"@konvert7/klint-darwin-x64": "1.7.1",
|
|
70
|
+
"@konvert7/klint-linux-arm64": "1.7.1",
|
|
71
|
+
"@konvert7/klint-linux-x64": "1.7.1",
|
|
72
|
+
"@konvert7/klint-linux-x64-musl": "1.7.1",
|
|
73
|
+
"@konvert7/klint-win32-x64": "1.7.1"
|
|
65
74
|
},
|
|
66
75
|
"devDependencies": {
|
|
67
76
|
"@biomejs/biome": "2.6.5",
|
|
68
|
-
"@commitlint/cli": "
|
|
69
|
-
"@commitlint/config-conventional": "
|
|
70
|
-
"@
|
|
71
|
-
"@semantic-release/
|
|
72
|
-
"@semantic-release/
|
|
73
|
-
"@
|
|
74
|
-
"@types/
|
|
77
|
+
"@commitlint/cli": "20.5.3",
|
|
78
|
+
"@commitlint/config-conventional": "20.5.3",
|
|
79
|
+
"@secretlint/secretlint-rule-preset-recommend": "13.1.0",
|
|
80
|
+
"@semantic-release/changelog": "6.0.3",
|
|
81
|
+
"@semantic-release/git": "10.0.1",
|
|
82
|
+
"@semantic-release/github": "12.0.8",
|
|
83
|
+
"@types/bun": "1.3.14",
|
|
84
|
+
"@types/node": "25.8.0",
|
|
75
85
|
"@typescript-eslint/parser": "8.72.2",
|
|
76
86
|
"eslint": "9.39.5",
|
|
77
87
|
"eslint-plugin-sonarjs": "3.0.5",
|
|
78
|
-
"husky": "
|
|
88
|
+
"husky": "9.1.7",
|
|
79
89
|
"jscpd": "4.2.3",
|
|
80
|
-
"knip": "
|
|
81
|
-
"lint-staged": "
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
90
|
+
"knip": "6.14.1",
|
|
91
|
+
"lint-staged": "15.5.2",
|
|
92
|
+
"madge": "8.0.0",
|
|
93
|
+
"secretlint": "13.1.0",
|
|
94
|
+
"semantic-release": "25.0.3",
|
|
95
|
+
"typescript": "5.9.3",
|
|
96
|
+
"yaml": "2.9.0"
|
|
85
97
|
},
|
|
86
98
|
"directories": {
|
|
87
99
|
"test": "tests"
|
|
@@ -90,5 +102,10 @@
|
|
|
90
102
|
"bugs": {
|
|
91
103
|
"url": "https://github.com/konvert7/klint/issues"
|
|
92
104
|
},
|
|
93
|
-
"homepage": "https://
|
|
105
|
+
"homepage": "https://klint.dev",
|
|
106
|
+
"overrides": {
|
|
107
|
+
"eslint-plugin-sonarjs": {
|
|
108
|
+
"minimatch": "9.0.7"
|
|
109
|
+
}
|
|
110
|
+
}
|
|
94
111
|
}
|