@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 +12 -4
- package/dist/cli.js +2120 -0
- package/dist/configs/effect.js +2076 -20
- package/dist/configs/recommended.js +1912 -16
- package/dist/generic/index.js +70 -0
- package/package.json +8 -4
- package/skills/add-oxlint-rule/SKILL.md +4 -2
- package/skills/install-timmo-oxlint-rules/SKILL.md +8 -6
- package/src/generic/index.ts +12 -0
- package/src/generic/rules/prefer-event-parameter-type.ts +83 -0
- package/src/cli.ts +0 -35
- package/src/configs/effect.ts +0 -20
- package/src/configs/recommended.ts +0 -29
- package/src/install/copy.ts +0 -77
- package/src/jsr/effect-config.ts +0 -7
- package/src/jsr/effect.ts +0 -7
- package/src/jsr/recommended.ts +0 -7
- package/src/jsr/upstream-anti-slop.ts +0 -7
- package/src/jsr/upstream-effect.ts +0 -7
- package/src/upstream/anti-slop.ts +0 -1
- package/src/upstream/effect.ts +0 -1
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
|
-
|
|
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
|
|
53
|
-
|
|
54
|
-
|
|
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`
|