@alint-js/plugin-js 0.0.34 → 0.0.36

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.
Files changed (2) hide show
  1. package/dist/index.mjs +3 -0
  2. package/package.json +3 -3
package/dist/index.mjs CHANGED
@@ -2680,6 +2680,7 @@ Do not report:
2680
2680
  - functions with meaningful error handling, logging, metrics, tracing, caching, retries, resource ownership, cleanup, async orchestration, or dependency injection
2681
2681
  - public SDK or framework callbacks whose required shape makes the wrapper useful
2682
2682
  - test helpers, fixture builders, mocks, or factories whose purpose is local test readability
2683
+ - test workspace setup helpers, fixture-copy helpers, and local lint invocation helpers in test files when they make the test scenario easier to scan
2683
2684
  - overloaded functions, generic helpers, or type guards when the type-level contract is the real API and callers benefit from the named abstraction
2684
2685
 
2685
2686
  Use an aggressive but fair standard:
@@ -2688,6 +2689,8 @@ Use an aggressive but fair standard:
2688
2689
  - If the function name communicates a stable domain concept that is not obvious from the body, do not report it.
2689
2690
  - If uncertain whether the function has a meaningful boundary, return no finding.
2690
2691
 
2692
+ When reporting a vacuous function, make the suggestion practical but do not invent a migration the file does not support. If the body can clearly be inlined without hurting readability, suggest removing the helper and inlining it at the call sites. Otherwise, describe the kind of real boundary the helper would need to own to justify keeping it.
2693
+
2691
2694
  Return warnings only.
2692
2695
  `.trim();
2693
2696
  //#endregion
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@alint-js/plugin-js",
3
3
  "type": "module",
4
- "version": "0.0.34",
4
+ "version": "0.0.36",
5
5
  "exports": {
6
6
  ".": {
7
7
  "types": "./dist/index.d.mts",
@@ -16,8 +16,8 @@
16
16
  "@valibot/to-json-schema": "^1.7.1",
17
17
  "apeira": "^0.0.7",
18
18
  "valibot": "^1.4.2",
19
- "@alint-js/core": "0.0.34",
20
- "@alint-js/plugin": "0.0.34"
19
+ "@alint-js/plugin": "0.0.36",
20
+ "@alint-js/core": "0.0.36"
21
21
  },
22
22
  "scripts": {
23
23
  "build": "tsdown",