@timmo001/oxlint-rules 0.1.3 → 0.2.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
@@ -2,7 +2,8 @@
2
2
 
3
3
  Shared Oxlint plugins and configs built around the unchanged
4
4
  [`dmmulroy/anti-slop`](https://github.com/dmmulroy/anti-slop) rules, with
5
- separately owned Effect rules under the `timmo-effect` namespace.
5
+ locally owned generic rules under `timmo` and Effect rules under
6
+ `timmo-effect`.
6
7
 
7
8
  Oxlint's JavaScript plugin API is alpha. Consumers must keep `oxlint` and
8
9
  `@oxlint/plugins` on the exact peer versions declared by this package.
@@ -49,9 +50,10 @@ Copy a reviewed snapshot when a repository should own the rule source:
49
50
  npx --yes @timmo001/oxlint-rules copy tools/oxlint/timmo-rules
50
51
  ```
51
52
 
52
- The command prints the three local plugin entry points. It excludes tests and
53
- repository metadata, and refuses to replace an existing destination unless
54
- `--force` is passed.
53
+ The command prints every copied plugin entry point and the rule settings from
54
+ the package configs to merge into the target Oxlint config. Effect settings
55
+ remain opt-in. It excludes tests and repository metadata, and refuses to
56
+ replace an existing destination unless `--force` is passed.
55
57
 
56
58
  ## Rules
57
59
 
@@ -73,6 +75,12 @@ repository metadata, and refuses to replace an existing destination unless
73
75
  - `no-widen-then-assert`
74
76
  - `require-safety-comment-for-type-assertion`
75
77
 
78
+ ### `timmo`
79
+
80
+ - `prefer-event-parameter-type`: reports assertions on a handler parameter's
81
+ `target` or `currentTarget`. Express the target type in the function signature
82
+ instead so every use sees the same contract.
83
+
76
84
  ### `anti-slop-effect`
77
85
 
78
86
  - `no-service-constructor-imports`