@konvert7/klint 1.3.0 → 1.3.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 +2 -1
- package/klint.schema.json +1 -1
- package/klint.schema.yaml +1 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -508,7 +508,7 @@ An ignored line still counts in the density denominator — it is a physical lin
|
|
|
508
508
|
|
|
509
509
|
### Language Support
|
|
510
510
|
|
|
511
|
-
klint scans TypeScript/JavaScript, Python, Swift, Rust, and C#. Every architecture rule is enforced from the same `klint.yaml`, but what a rule can *see* depends on what the language actually has.
|
|
511
|
+
klint scans TypeScript/JavaScript (`.ts`, `.tsx`, `.mts`, `.cts`, `.js`, `.jsx`, `.mjs`, `.cjs`), Python, Swift, Rust, and C#. Every architecture rule is enforced from the same `klint.yaml`, but what a rule can *see* depends on what the language actually has.
|
|
512
512
|
|
|
513
513
|
| | TypeScript / JavaScript | Python | Swift | Rust | C# |
|
|
514
514
|
|---|---|---|---|---|---|
|
|
@@ -834,6 +834,7 @@ It adds nothing for `try` itself, `return`, `throw`, recursion, Rust `?`, Python
|
|
|
834
834
|
- `??` counts as a boolean operator.
|
|
835
835
|
- A logical operator is scored unless its direct parent is the same operator, so `a && (b && c)` is 2, not 1.
|
|
836
836
|
- Recursion adds nothing.
|
|
837
|
+
- Biome 2.6.5 lowers the nesting level of the code after a plain `else` (an unbalanced decrement), so it can score such functions lower; klint keeps the nesting.
|
|
837
838
|
- A nested function (closure, lambda, arrow, local function) is scored and reported on its own. It starts at its enclosing nesting level plus one and does not add to the outer function.
|
|
838
839
|
|
|
839
840
|
**What counts as a function.** TypeScript/JavaScript: `function` declarations and expressions, arrow functions, methods (including getters and setters), generator functions. Python: `def` and `lambda`. Swift: `func`, `init`, `deinit`, closures, computed getters and setters. Rust: `fn` items and closures. C#: methods, constructors, destructors, local functions, lambdas, anonymous methods, property and indexer accessors, operators and conversion operators.
|
package/klint.schema.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://raw.githubusercontent.com/konvert7/klint/refs/tags/v1.3.
|
|
2
|
+
"$id": "https://raw.githubusercontent.com/konvert7/klint/refs/tags/v1.3.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.3.
|
|
1
|
+
$id: https://raw.githubusercontent.com/konvert7/klint/refs/tags/v1.3.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.
|
|
3
|
+
"version": "1.3.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": {
|
|
@@ -56,12 +56,12 @@
|
|
|
56
56
|
]
|
|
57
57
|
},
|
|
58
58
|
"optionalDependencies": {
|
|
59
|
-
"@konvert7/klint-darwin-arm64": "1.3.
|
|
60
|
-
"@konvert7/klint-darwin-x64": "1.3.
|
|
61
|
-
"@konvert7/klint-linux-arm64": "1.3.
|
|
62
|
-
"@konvert7/klint-linux-x64": "1.3.
|
|
63
|
-
"@konvert7/klint-linux-x64-musl": "1.3.
|
|
64
|
-
"@konvert7/klint-win32-x64": "1.3.
|
|
59
|
+
"@konvert7/klint-darwin-arm64": "1.3.1",
|
|
60
|
+
"@konvert7/klint-darwin-x64": "1.3.1",
|
|
61
|
+
"@konvert7/klint-linux-arm64": "1.3.1",
|
|
62
|
+
"@konvert7/klint-linux-x64": "1.3.1",
|
|
63
|
+
"@konvert7/klint-linux-x64-musl": "1.3.1",
|
|
64
|
+
"@konvert7/klint-win32-x64": "1.3.1"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@biomejs/biome": "2.6.5",
|