@2digits/oxlint-plugin 0.3.3 → 0.3.5
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 +2 -2
- package/dist/index.d.mts +0 -6
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -179,7 +179,7 @@ The exported `PaddingLineOption` type describes each configuration entry. No opt
|
|
|
179
179
|
|
|
180
180
|
### Other fixes
|
|
181
181
|
|
|
182
|
-
Run `
|
|
182
|
+
Run `vpr lint:oxlint:fix` from the repository root to apply fixes from `consistent-schema-pipe`, `prefer-effect-duration`, `no-empty-effect-callback`,
|
|
183
183
|
`no-effect-alchemy-barrel-imports`, `prefer-effect-alchemy-namespace-imports`,
|
|
184
184
|
`alchemy-no-v1-worker-properties`, and `alchemy-no-deprecated-docker-constraints`.
|
|
185
185
|
Fixes skip ambiguous bindings, conflicting properties, and unsupported import references.
|
|
@@ -197,7 +197,7 @@ policy for handwritten imports.
|
|
|
197
197
|
`defineEffectRule`.
|
|
198
198
|
2. Register it in `src/rules/index.ts`. `src/index.ts` automatically includes it in `recommendedRules`.
|
|
199
199
|
3. Add a matching test file under `test/rules` with valid and invalid `RuleTester` cases.
|
|
200
|
-
4. Run `
|
|
200
|
+
4. Run `vpr test` and `vpr build` in this package, then `vpr check` from the repository root.
|
|
201
201
|
|
|
202
202
|
`defineEffectRule` resolves namespace and named imports from `effect`, `@effect/*`, and `alchemy/*` entrypoints, so rules
|
|
203
203
|
should match canonical API paths instead of hard-coding local import names.
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Plugin } from "@oxlint/plugins";
|
|
2
2
|
import * as Arr from "effect/Array";
|
|
3
|
-
//#region src/rules/index.d.ts
|
|
4
3
|
export declare const rules: {
|
|
5
4
|
readonly 'alchemy-no-cloudflare-init-finalizer': import("effect-oxlint").OxlintRule;
|
|
6
5
|
readonly 'alchemy-no-deprecated-docker-constraints': import("effect-oxlint").OxlintRule;
|
|
@@ -61,8 +60,6 @@ export declare const rules: {
|
|
|
61
60
|
readonly 'require-try-promise-abort-signal': import("effect-oxlint").OxlintRule;
|
|
62
61
|
readonly 'throw-in-effect-gen': import("effect-oxlint").OxlintRule;
|
|
63
62
|
};
|
|
64
|
-
//#endregion
|
|
65
|
-
//#region src/rules/padding-line-between-statements.d.ts
|
|
66
63
|
type PaddingType = 'any' | 'never' | 'always';
|
|
67
64
|
type LineMode = 'any' | 'singleline' | 'multiline';
|
|
68
65
|
interface SelectorOption {
|
|
@@ -82,10 +79,7 @@ interface PaddingLineOption {
|
|
|
82
79
|
readonly prev: StatementOption;
|
|
83
80
|
readonly next: StatementOption;
|
|
84
81
|
}
|
|
85
|
-
//#endregion
|
|
86
|
-
//#region src/index.d.ts
|
|
87
82
|
export type RuleName = keyof typeof rules;
|
|
88
83
|
export declare const recommendedRules: Record<`2digits/${string}`, "error">;
|
|
89
84
|
declare const plugin: Plugin;
|
|
90
|
-
//#endregion
|
|
91
85
|
export { type PaddingLineOption, plugin as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@2digits/oxlint-plugin",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.5",
|
|
4
4
|
"description": "Custom Oxlint rules for 2digits projects.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"2digits",
|
|
@@ -29,19 +29,19 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@oxlint/plugins": "1.89.0",
|
|
32
|
-
"effect": "4.0.
|
|
32
|
+
"effect": "4.0.6",
|
|
33
33
|
"effect-oxlint": "0.4.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@2digits/tsconfig": "1.0.
|
|
36
|
+
"@2digits/tsconfig": "1.0.5",
|
|
37
37
|
"@arethetypeswrong/core": "0.18.5",
|
|
38
|
-
"@effect/platform-node": "4.0.
|
|
39
|
-
"@effect/vitest": "4.0.
|
|
38
|
+
"@effect/platform-node": "4.0.6",
|
|
39
|
+
"@effect/vitest": "4.0.6",
|
|
40
40
|
"dedent": "1.7.2",
|
|
41
41
|
"oxlint": "1.89.0",
|
|
42
42
|
"publint": "0.3.25",
|
|
43
|
-
"typescript": "7.0
|
|
44
|
-
"vite-plus": "1.
|
|
43
|
+
"typescript": "7.1.0-beta",
|
|
44
|
+
"vite-plus": "1.4.0",
|
|
45
45
|
"vitest": "5.0.5"
|
|
46
46
|
},
|
|
47
47
|
"public": true,
|