@sarj/eslint-plugin 9.10.0 → 9.12.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 +15 -0
- package/dist/index.cjs +475 -338
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -2
- package/dist/index.d.ts +8 -2
- package/dist/index.js +470 -333
- package/dist/index.js.map +1 -1
- package/package.json +9 -2
package/README.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @sarj/eslint-plugin
|
|
2
2
|
|
|
3
|
+
## New in 9.11.0 — disabled test assertions
|
|
4
|
+
|
|
5
|
+
`no-comment-cruft` now recognizes commented-out `expect(...)` chains and
|
|
6
|
+
`assert(...)` calls. A disabled assertion leaves a collected test passing while
|
|
7
|
+
verifying nothing. JSDoc and assertion examples introduced by prose remain
|
|
8
|
+
exempt, as do active assertions.
|
|
9
|
+
|
|
3
10
|
## New in 9.9.0 — static Next.js matchers
|
|
4
11
|
|
|
5
12
|
`require-static-next-matcher` rejects runtime expressions in exported
|
|
@@ -123,9 +130,17 @@ platform too.
|
|
|
123
130
|
|---|---|---|
|
|
124
131
|
| `no-hand-rolled-spinner` | Intrinsic elements styled as Tailwind border-ring loading spinners outside the design system. | error / error |
|
|
125
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 |
|
|
126
134
|
| `require-static-next-matcher` | Dynamic values in exported Next.js middleware and proxy matcher configuration. | error / error |
|
|
127
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 |
|
|
128
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
|
+
|
|
129
144
|
## New in 2.14.0 — `no-tautological-expect`
|
|
130
145
|
|
|
131
146
|
The TS half of SARJ057. An `expect(...)` whose operands are all literals has
|