@webority/repo-checks 0.120.1 → 0.122.0
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 -2
- package/dist/repo-checks.js +34 -34
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -30,7 +30,7 @@ The `missing-export:<file>` check runs the Biome installed beside the app or in
|
|
|
30
30
|
| `lockstep:<set>` | Packages that publish together at one version are pinned at different versions |
|
|
31
31
|
| `pnpm:*` | A committed `package-lock.json` or `yarn.lock`, no `pnpm-lock.yaml`, no `devEngines.packageManager` of `{ "name": "pnpm", "version": "<x.y.z>", "onFail": "error" }` (a plain `npm install` fails, and pnpm refuses any other version), a leftover `packageManager` field (pnpm ignores it beside devEngines), or a `pnpm-workspace.yaml` without `engineStrict: true` and `strictPeerDependencies: true` |
|
|
32
32
|
| `biome:*` | No Biome config, a config that does not extend `@webority/biome-config/biome.jsonc`, a `formatter.lineEnding` or root `linter.rules`, or (mobile) no `__DEV__` global, either top-level or in an override whose `includes` cover the app folder |
|
|
33
|
-
| `catalogue-copy:<file>` | A
|
|
33
|
+
| `catalogue-copy:<file>` | A `.jsx` or `.tsx` file anywhere under `src/` of a web app, or of a workspace package that depends on `@webority/ui-react`, named like a `@webority/ui-react` export |
|
|
34
34
|
| `engines-node-floor:package.json` | `engines.node` is missing or is not `>=24.15 <25` |
|
|
35
35
|
| `engines-node-floor:.nvmrc` | No `.nvmrc` at or above the app, or it does not hold `24` |
|
|
36
36
|
| `android-release-signing` | `android/app/build.gradle` has no guard that throws a `GradleException` when a requested task name contains `release` and a signing setting or the upload key is missing |
|
|
@@ -52,7 +52,7 @@ The `missing-export:<file>` check runs the Biome installed beside the app or in
|
|
|
52
52
|
| `missing-canvas-key:<file>` | A list item (the first JSX tag in a `.map(` callback) with no `data-canvas` key on web or `testID` on a phone, and no spread. Counted per file. |
|
|
53
53
|
| `repeated-canvas-key:<file>` | A quoted `data-canvas` or `testID` value that a second tag in the same module repeats. Counted per file. |
|
|
54
54
|
| `raw-bootstrap:<file>` | A `.jsx`, `.tsx` or `.cshtml` file writes a raw Bootstrap component class (`btn`, `card`, `modal`, `table`, `badge`, `alert`, `form-control`, `form-select`, `form-check-input`, `pagination`, `nav-tabs`, `dropdown-menu`, `offcanvas`, `breadcrumb`, `progress`, `spinner-border`, `accordion`); the message names the library component. A modifier such as `btn-primary` alone is not counted. Counted per file. |
|
|
55
|
-
| `library-class-restyle:<file>` | A product `.scss` or `.css` selector names a class the library theme defines (a `wui-*` component class
|
|
55
|
+
| `library-class-restyle:<file>` | A product `.scss` or `.css` selector names a class the library theme defines (a `wui-*` component class, an `app-*` shell, navigation or tab class, or a Bootstrap component class the theme skins: `btn`, `card`, `modal`, `table`, `form-control`, `form-select`, `form-check`, `form-label`, `form-text`, `badge`, `alert`, `dropdown`, `nav-tabs`, `nav-pills`, `nav-link`, `pagination`, `page-item`, `page-link`, `offcanvas`, `accordion`, `breadcrumb`, `progress`, `spinner-border`, `list-group`, `input-group`, each also with a `-suffix`), including as an ancestor (`.my-page .wui-card-body`, `.app-shell.collapsed .app-sidebar .brand-logo`); use a library prop or token, or a product class. A token file that only sets custom properties names no class and is not counted. Counted per file. |
|
|
56
56
|
| `shadowed-library-name:<file>` | A `.jsx` or `.tsx` file imports a catalogue component from `@webority/ui-react` under another name and declares a component under the catalogue name (`import { AppButton as LibraryAppButton }` with `function AppButton`), so its call sites read as the library component. Use the library component and its props, or give the product component its own name. Counted per file. |
|
|
57
57
|
| `rename-wrapper:<file>` | A re-export of `@webority/ui-react`, a component whose body only returns one catalogue component, or a `_Name.cshtml` partial that is one `<app-*>` element: import the library name. Counted per file. |
|
|
58
58
|
| `single-use-component:<file>` | A file under `src/components/<feature>/` (not `layout/`), or a shared partial under `Pages/Shared/` or a `*.Web.Common` project, that fewer than two files use; move it next to the page that uses it. A layout is skipped: a `_…Layout.cshtml` file, or one that a `_ViewStart.cshtml` of the same project names with `Layout = "<name>"`, because areas find it by that name. A Razor file whose first line is `@* layering-allow single-use-component: <reason> *@` is skipped too; a mark with no reason is a finding. Counted per file. |
|