@shivaedev/quality 0.33.0 → 0.33.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/CHANGELOG.md +6 -0
- package/README.md +1 -1
- package/biome/declarations.json +5 -0
- package/biome/preset.json +10 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.33.1 - 2026-10-21
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
|
|
7
|
+
- The Biome preset lets numbered migration files in `src/server/migrations/`, including in nested apps, default-export their migration Effect, so applications drop their `noDefaultExport` exception for Effect's migration loader. Other files still may not default-export.
|
|
8
|
+
|
|
3
9
|
## 0.33.0 - 2026-10-21
|
|
4
10
|
|
|
5
11
|
### Breaking
|
package/README.md
CHANGED
|
@@ -78,7 +78,7 @@ When a config exists, its folder is the root for paths and hook scripts. Without
|
|
|
78
78
|
|
|
79
79
|
Quality discovers each app’s `components.json` and resolves `aliases.ui` through its TypeScript paths or package imports. That folder belongs to the shadcn CLI: source rules and Biome lint, formatting and fixes skip it by default. Neighbouring authored folders stay checked. This leaves TypeScript’s inputs unchanged, so type checking still covers the stock components.
|
|
80
80
|
|
|
81
|
-
Naming rules treat numbered migration files such as `src/server/migrations/0001_create_notes.ts` as tool-owned, including in nested apps. The file must sit directly in that folder and match `NNNN_snake_case.ts`: four digits, an underscore and a lowercase name starting with a letter. Files elsewhere, files with other names and subfolders remain checked.
|
|
81
|
+
Naming rules treat numbered migration files such as `src/server/migrations/0001_create_notes.ts` as tool-owned, including in nested apps. The file must sit directly in that folder and match `NNNN_snake_case.ts`: four digits, an underscore and a lowercase name starting with a letter. Files elsewhere, files with other names and subfolders remain checked. The Biome preset lets `.ts` files directly in that folder whose names start with four digits and an underscore default-export their migration Effect, because Effect's migration loader imports the default export; Biome globs cannot spell the rest of the pattern, so the naming rules still report a malformed name.
|
|
82
82
|
|
|
83
83
|
`defineConfig` checks the config's types. The CLI also validates it: a broken config, unknown rule id or invalid options fails before checks run. An explicit `--config` path must exist.
|
|
84
84
|
|
package/biome/declarations.json
CHANGED
|
@@ -19,6 +19,11 @@
|
|
|
19
19
|
"reason": "Tools load their config files through the default export.",
|
|
20
20
|
"rule": "lint/style/noDefaultExport"
|
|
21
21
|
},
|
|
22
|
+
{
|
|
23
|
+
"includes": ["**/src/server/migrations/{0,1,2,3,4,5,6,7,8,9}{0,1,2,3,4,5,6,7,8,9}{0,1,2,3,4,5,6,7,8,9}{0,1,2,3,4,5,6,7,8,9}_*.ts"],
|
|
24
|
+
"reason": "Effect's migration loader imports each numbered migration file through its default export.",
|
|
25
|
+
"rule": "lint/style/noDefaultExport"
|
|
26
|
+
},
|
|
22
27
|
{
|
|
23
28
|
"includes": ["**/*.test.*", "**/*.spec.*"],
|
|
24
29
|
"reason": "A test defines the helper and harness components it renders, and no test module is hot-reloaded, so the rule's fast-refresh boundary does not apply.",
|
package/biome/preset.json
CHANGED
|
@@ -637,6 +637,16 @@
|
|
|
637
637
|
}
|
|
638
638
|
}
|
|
639
639
|
},
|
|
640
|
+
{
|
|
641
|
+
"includes": ["**/src/server/migrations/{0,1,2,3,4,5,6,7,8,9}{0,1,2,3,4,5,6,7,8,9}{0,1,2,3,4,5,6,7,8,9}{0,1,2,3,4,5,6,7,8,9}_*.ts"],
|
|
642
|
+
"linter": {
|
|
643
|
+
"rules": {
|
|
644
|
+
"style": {
|
|
645
|
+
"noDefaultExport": "off"
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
},
|
|
640
650
|
{
|
|
641
651
|
"includes": ["**/*.test.*", "**/*.spec.*"],
|
|
642
652
|
"linter": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shivaedev/quality",
|
|
3
|
-
"version": "0.33.
|
|
3
|
+
"version": "0.33.1",
|
|
4
4
|
"description": "Repository quality gate with typed rules, a baseline of existing debt and a registry of reasoned exceptions",
|
|
5
5
|
"homepage": "https://github.com/ShivaeDev/platform/tree/main/packages/quality#readme",
|
|
6
6
|
"bugs": {
|