@sarj/eslint-plugin 9.11.0 → 9.13.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 +8 -0
- package/dist/index.cjs +617 -345
- package/dist/index.d.cts +16 -2
- package/dist/index.d.ts +16 -2
- package/dist/index.js +612 -340
- package/package.json +10 -2
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
package/README.md
CHANGED
|
@@ -130,9 +130,17 @@ platform too.
|
|
|
130
130
|
|---|---|---|
|
|
131
131
|
| `no-hand-rolled-spinner` | Intrinsic elements styled as Tailwind border-ring loading spinners outside the design system. | error / error |
|
|
132
132
|
| `prefer-input-group-search` | Search icons and shared Input controls composed without the shared InputGroup primitive. | error / error |
|
|
133
|
+
| `prefer-shadcn-primitives` | Deterministically visible raw JSX controls used instead of shared shadcn primitives. Unknown and hidden input types are excluded. | application profile: warn |
|
|
133
134
|
| `require-static-next-matcher` | Dynamic values in exported Next.js middleware and proxy matcher configuration. | error / error |
|
|
134
135
|
| `no-hand-rolled-sleep` | `new Promise((r) => setTimeout(r, ms))` in any spelling, and an uncleared `Promise.race`/`Promise.any` timeout arm. Options: `checkClientModules` (default `false`), `allowIn`. | warn / error |
|
|
135
136
|
|
|
137
|
+
`prefer-shadcn-primitives` is application-only because generic plugin consumers
|
|
138
|
+
may use another design system or intentionally expose native controls. It starts
|
|
139
|
+
at warning with 53 measured adoption findings across four application-profile
|
|
140
|
+
consumers; two additional consumers are clean. Promote it only after those
|
|
141
|
+
findings are removed, and keep it disabled inside `components/ui` and
|
|
142
|
+
`components/design-system`, where shared primitives must wrap native elements.
|
|
143
|
+
|
|
136
144
|
## New in 2.14.0 — `no-tautological-expect`
|
|
137
145
|
|
|
138
146
|
The TS half of SARJ057. An `expect(...)` whose operands are all literals has
|