@opsydyn/oxlint-effect 0.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 +87 -0
- package/dist/index.d.mts +13 -0
- package/dist/index.mjs +1106 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +78 -0
package/README.md
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# linteffect Oxlint plugin
|
|
2
|
+
|
|
3
|
+
Oxlint plugin rules for Effect TypeScript code-shape constraints.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
bun add -d oxlint @opsydyn/oxlint-effect
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Configure
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
import { defineConfig } from "oxlint";
|
|
15
|
+
import { recommended } from "@opsydyn/oxlint-effect";
|
|
16
|
+
|
|
17
|
+
export default defineConfig({
|
|
18
|
+
plugins: ["typescript"],
|
|
19
|
+
jsPlugins: recommended.jsPlugins,
|
|
20
|
+
rules: recommended.rules,
|
|
21
|
+
});
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
For local development inside this repository, point `jsPlugins` at the TypeScript source:
|
|
25
|
+
|
|
26
|
+
```ts
|
|
27
|
+
import { defineConfig } from "oxlint";
|
|
28
|
+
import { allRules } from "./src/index";
|
|
29
|
+
|
|
30
|
+
export default defineConfig({
|
|
31
|
+
plugins: ["typescript"],
|
|
32
|
+
jsPlugins: [{ name: "linteffect", specifier: "./src/index.ts" }],
|
|
33
|
+
rules: allRules,
|
|
34
|
+
});
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Initial Rules
|
|
38
|
+
|
|
39
|
+
- `linteffect/no-react-state`
|
|
40
|
+
- `linteffect/no-if-statement`
|
|
41
|
+
- `linteffect/no-switch-statement`
|
|
42
|
+
- `linteffect/no-effect-as`
|
|
43
|
+
- `linteffect/no-effect-do`
|
|
44
|
+
- `linteffect/no-effect-bind`
|
|
45
|
+
- `linteffect/no-runtime-runfork`
|
|
46
|
+
- `linteffect/no-effect-async`
|
|
47
|
+
- `linteffect/prevent-dynamic-imports`
|
|
48
|
+
- `linteffect/no-nested-effect-call`
|
|
49
|
+
- `linteffect/no-effect-ladder`
|
|
50
|
+
- `linteffect/no-flatmap-ladder`
|
|
51
|
+
- `linteffect/no-pipe-ladder`
|
|
52
|
+
- `linteffect/no-call-tower`
|
|
53
|
+
- `linteffect/no-effect-orElse-ladder`
|
|
54
|
+
- `linteffect/no-ternary`
|
|
55
|
+
- `linteffect/no-return-null`
|
|
56
|
+
- `linteffect/no-option-as`
|
|
57
|
+
- `linteffect/no-effect-never`
|
|
58
|
+
- `linteffect/no-arrow-ladder`
|
|
59
|
+
- `linteffect/no-branch-in-object`
|
|
60
|
+
- `linteffect/no-iife-wrapper`
|
|
61
|
+
- `linteffect/no-return-in-arrow`
|
|
62
|
+
- `linteffect/no-return-in-callback`
|
|
63
|
+
- `linteffect/no-effect-fn-generator`
|
|
64
|
+
- `linteffect/no-effect-sync-console`
|
|
65
|
+
- `linteffect/no-nested-effect-gen`
|
|
66
|
+
- `linteffect/no-match-void-branch`
|
|
67
|
+
- `linteffect/no-match-effect-branch`
|
|
68
|
+
- `linteffect/warn-effect-sync-wrapper`
|
|
69
|
+
- `linteffect/no-effect-side-effect-wrapper`
|
|
70
|
+
- `linteffect/no-effect-all-step-sequencing`
|
|
71
|
+
- `linteffect/no-try-catch`
|
|
72
|
+
- `linteffect/no-effect-wrapper-alias`
|
|
73
|
+
- `linteffect/no-manual-effect-channels`
|
|
74
|
+
- `linteffect/no-wrapgraphql-catchall`
|
|
75
|
+
- `linteffect/no-render-side-effects`
|
|
76
|
+
- `linteffect/no-atom-registry-effect-sync`
|
|
77
|
+
- `linteffect/no-family-collection-read`
|
|
78
|
+
- `linteffect/no-inline-runtime-provide`
|
|
79
|
+
- `linteffect/no-naked-object-state-update`
|
|
80
|
+
- `linteffect/no-effect-succeed-variable`
|
|
81
|
+
- `linteffect/no-effect-type-alias`
|
|
82
|
+
- `linteffect/no-model-overlay-cast`
|
|
83
|
+
- `linteffect/no-unknown-boolean-coercion-helper`
|
|
84
|
+
- `linteffect/no-fromnullable-nullish-coalesce`
|
|
85
|
+
- `linteffect/no-option-boolean-normalization`
|
|
86
|
+
- `linteffect/no-string-sentinel-return`
|
|
87
|
+
- `linteffect/no-string-sentinel-const`
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region src/index.d.ts
|
|
2
|
+
declare const allRules: Record<`linteffect/${string}`, "error">;
|
|
3
|
+
declare const recommended: {
|
|
4
|
+
readonly jsPlugins: readonly [{
|
|
5
|
+
readonly name: "linteffect";
|
|
6
|
+
readonly specifier: "@opsydyn/oxlint-effect";
|
|
7
|
+
}];
|
|
8
|
+
readonly rules: Record<`linteffect/${string}`, "error">;
|
|
9
|
+
};
|
|
10
|
+
declare const _default: import("@oxlint/plugins").Plugin;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { allRules, _default as default, recommended };
|
|
13
|
+
//# sourceMappingURL=index.d.mts.map
|