@sarj/eslint-plugin 4.2.0 → 5.1.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 CHANGED
@@ -96,6 +96,7 @@ the hit counts and the false-positive class every guard was built from.
96
96
  | `no-restated-comment` | A single-line comment whose every content word already appears on the statement below it. Defers to `no-comment-cruft` for the verb-led shape, so a comment is never reported twice. | warn / error |
97
97
  | `jsdoc-restates-signature` | A JSDoc block whose description and `@param`/`@returns` only re-spell the signature. Offers a delete SUGGESTION, never an auto-`--fix`. | warn / error |
98
98
  | `trailing-value-narration` | `staleTime: 5 * 60 * 1000, // 5 minutes` — the unit belongs in the name, where it cannot drift. | warn / error |
99
+ | `no-type-member-comment-wall` | An object type whose member comments mostly re-spell the members' own names and types — the VOLUME arm of the family, reported once for the type. | warn / error |
99
100
 
100
101
  ## New in 2.9.0
101
102
 
@@ -189,7 +190,7 @@ and every repo gets to name its own.
189
190
 
190
191
  | Rule | Option | Default | Effect |
191
192
  |---|---|---|---|
192
- | `no-raw-fetch-outside-clients` | `allow` | client/test path patterns | Files exempt from the "no bare `fetch`" rule |
193
+ | `no-raw-fetch-outside-clients` | `allow` | client / vendor-wrapper path patterns | Extra files exempt from the "no bare `fetch`" rule (test files are exempt unconditionally) |
193
194
  | `no-dynamic-sql` | `methods` | `["prepare", "exec", "query"]` | Statement-taking methods to inspect |
194
195
  | `no-storage-in-stateless-modules` | `modules` | `[]` (rule off) | Directories declared stateless |
195
196
  | `no-storage-in-stateless-modules` | `methods` | `["prepare", "put", "getWithMetadata"]` | Storage methods to flag |
@@ -198,7 +199,10 @@ and every repo gets to name its own.
198
199
 
199
200
  The path options on the first three rules are **regular-expression sources
200
201
  matched against the absolute filename**, not globs — so they can express both
201
- path separators. `allowIn` is the exception, on `no-hand-rolled-sleep` as on
202
+ path separators. Test files no longer need to appear there: the rule delegates
203
+ to the shared `isTestFile` predicate, so supplying `allow` replaces only the
204
+ production exemptions and cannot accidentally un-exempt a test tree.
205
+ `allowIn` is the exception, on `no-hand-rolled-sleep` as on
202
206
  `require-fetch-timeout`: it takes minimatch-ish **globs**, also matched against
203
207
  the absolute path, so anchor them with a `**/` prefix. Supplying an option
204
208
  **replaces** the default rather than extending it.
@@ -219,7 +223,7 @@ export default [
219
223
  // This repo keeps its HTTP layer in `lib/api/`, not `clients/`.
220
224
  "@sarj/no-raw-fetch-outside-clients": [
221
225
  "error",
222
- { allow: ["[\\\\/]lib[\\\\/]api[\\\\/]", "\\.test\\.", "\\.spec\\."] },
226
+ { allow: ["[\\\\/]lib[\\\\/]api[\\\\/]"] },
223
227
  ],
224
228
  // Declare which modules must stay stateless.
225
229
  "@sarj/no-storage-in-stateless-modules": [