@geonosis/oxlint-plugin-biological-architecture 1.3.0 → 2.0.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 +1 -1
- package/corpus/.oxlintrc.json +97 -5
- package/corpus/domains/document/workflows/bad-per-kind-workflow.ts +5 -0
- package/corpus/domains/document/workflows/good-minted-workflow.ts +8 -0
- package/corpus/engine/bad-durable-free-read.ts +20 -0
- package/corpus/engine/bad-no-retry.ts +8 -0
- package/corpus/engine/good-durable-other-spelling.ts +10 -0
- package/corpus/engine/good-durable-read-is-a-step.ts +18 -0
- package/corpus/engine/good-durable-read-through-helper.ts +20 -0
- package/corpus/engine/good-inline-free-read.ts +7 -0
- package/corpus/engine/good-retry-budget.ts +9 -0
- package/corpus/floors/domains/alpha/src/good-downhill.ts +3 -0
- package/corpus/floors/domains/alpha/src/index.ts +1 -0
- package/corpus/floors/domains/alpha/src/reaches-own-ui.ts +3 -0
- package/corpus/floors/domains/alpha/src/reaches-sideways-type.ts +3 -0
- package/corpus/floors/domains/alpha/src/reaches-sideways.ts +3 -0
- package/corpus/floors/domains/alpha/src/ui/panel.ts +3 -0
- package/corpus/floors/domains/beta/src/index.ts +3 -0
- package/corpus/floors/foundations/above/src/good-downhill.ts +3 -0
- package/corpus/floors/foundations/base/src/good-downhill.ts +3 -0
- package/corpus/floors/foundations/base/src/index.ts +1 -0
- package/corpus/floors/foundations/base/src/reaches-sideways.ts +3 -0
- package/corpus/floors/foundations/base/src/reaches-up.ts +3 -0
- package/corpus/floors/packages/method/src/own.ts +1 -0
- package/corpus/floors/packages/method/src/reaches-up.ts +3 -0
- package/corpus/floors.oxlintrc.json +86 -0
- package/corpus/manifest.json +4 -0
- package/corpus/subpaths/bad-root-barrel.ts +5 -0
- package/corpus/subpaths/good-spans-two-subpaths.ts +5 -0
- package/corpus/subpaths/good-subpath.ts +4 -0
- package/corpus/subpaths/good-type-only.ts +4 -0
- package/corpus/time/bad-boundary-type.ts +3 -0
- package/corpus/time/bad-second-door.ts +6 -0
- package/corpus/time/door.ts +15 -0
- package/corpus/time/generated/from-openapi.ts +1 -0
- package/corpus/time/good-boundary-primitive.ts +3 -0
- package/corpus/todos/bad-unplanned.ts +2 -0
- package/corpus/todos/good-planned.ts +2 -0
- package/corpus/todos/good-string-not-a-comment.ts +2 -0
- package/corpus/workers/good-with-cells.ts +7 -0
- package/corpus/workers/good-with-connection.ts +7 -0
- package/corpus/workflows/bad-unscoped-host.ts +7 -0
- package/corpus/workflows/good-host-config-elsewhere.ts +6 -0
- package/corpus/workflows/good-scoped-entrypoint.ts +17 -0
- package/corpus/workflows/good-scoped-host.ts +11 -0
- package/dist/{chunk-UVENNNFM.js → chunk-LTDP2733.js} +36 -3
- package/dist/index.d.ts +17 -2
- package/dist/index.js +1115 -370
- package/dist/presets.d.ts +31 -2
- package/dist/presets.js +5 -1
- package/package.json +2 -2
- /package/corpus/{packages/workflows/src → domains/document/workflows}/bad-per-kind-saga.ts +0 -0
- /package/corpus/{apps/api/src → workers}/bad-unscoped-worker.ts +0 -0
package/dist/presets.d.ts
CHANGED
|
@@ -1,7 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* #197: the preset was named after `sagaflow-js`, which the org engine replaced. A config naming
|
|
3
|
+
* the old name resolves to the same rules for one release — a rename that breaks every consumer's
|
|
4
|
+
* config the day it ships is a rename nobody adopts — and the reading says so ONCE per process,
|
|
5
|
+
* whatever door read it and however many rules it resolved.
|
|
6
|
+
*/
|
|
7
|
+
declare const RENAMED_TO: Record<string, string>;
|
|
1
8
|
type Preset = {
|
|
2
9
|
/** Rule ids that belong to this preset but are not ours — enabled alongside, never instead. */
|
|
3
10
|
rules: Record<string, string>;
|
|
4
11
|
};
|
|
12
|
+
/**
|
|
13
|
+
* The engine a rule PRESUMES, and the packages a manifest proves it with.
|
|
14
|
+
*
|
|
15
|
+
* A rule that presumes an engine can sit at "error" over a tree that has none, with zero possible
|
|
16
|
+
* findings, and read exactly like compliance — during.day ran three of these over sagaflow trees
|
|
17
|
+
* (#159). It is written down ONCE, here beside the presets that already knew it, and projected onto
|
|
18
|
+
* the rules so `geonosis-doctor` can ask a workspace's manifest without carrying a second list.
|
|
19
|
+
*
|
|
20
|
+
* The two step rules that appear in `backend-workflows` as well are deliberately NOT here: 026-W2
|
|
21
|
+
* measured them reaching both engines' spellings, and a rule that reaches both presumes neither.
|
|
22
|
+
*/
|
|
23
|
+
declare const PRESUMED_ENGINES: readonly {
|
|
24
|
+
engine: string;
|
|
25
|
+
packages: readonly string[];
|
|
26
|
+
rules: readonly string[];
|
|
27
|
+
}[];
|
|
5
28
|
declare const PRESETS: {
|
|
6
29
|
'backend-d1': {
|
|
7
30
|
rules: Record<string, "error">;
|
|
@@ -10,7 +33,7 @@ declare const PRESETS: {
|
|
|
10
33
|
rules: Record<string, "error">;
|
|
11
34
|
};
|
|
12
35
|
'backend-sagaflow-cf': {
|
|
13
|
-
rules: Record<string, "error">;
|
|
36
|
+
readonly rules: Record<string, "error">;
|
|
14
37
|
};
|
|
15
38
|
'backend-trpc': {
|
|
16
39
|
rules: Record<string, "error">;
|
|
@@ -18,6 +41,9 @@ declare const PRESETS: {
|
|
|
18
41
|
'backend-workflows': {
|
|
19
42
|
rules: Record<string, "error">;
|
|
20
43
|
};
|
|
44
|
+
'backend-workflows-cf': {
|
|
45
|
+
rules: Record<string, "error">;
|
|
46
|
+
};
|
|
21
47
|
'comment-ceiling': Preset;
|
|
22
48
|
frontend: {
|
|
23
49
|
rules: Record<string, "error">;
|
|
@@ -25,6 +51,9 @@ declare const PRESETS: {
|
|
|
25
51
|
integrations: {
|
|
26
52
|
rules: Record<string, "error">;
|
|
27
53
|
};
|
|
54
|
+
'package-subpaths': {
|
|
55
|
+
rules: Record<string, "error">;
|
|
56
|
+
};
|
|
28
57
|
recommended: {
|
|
29
58
|
rules: Record<string, "error">;
|
|
30
59
|
};
|
|
@@ -45,4 +74,4 @@ type PresetName = keyof typeof PRESETS;
|
|
|
45
74
|
/** The rule names a preset carries, stripped of the plugin namespace. */
|
|
46
75
|
declare const rulesOfPreset: (preset: PresetName) => string[];
|
|
47
76
|
|
|
48
|
-
export { PRESETS, type Preset, type PresetName, rulesOfPreset };
|
|
77
|
+
export { PRESETS, PRESUMED_ENGINES, type Preset, type PresetName, RENAMED_TO, rulesOfPreset };
|
package/dist/presets.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geonosis/oxlint-plugin-biological-architecture",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"types": "./dist/index.d.ts",
|
|
5
5
|
"description": "Biological tier architecture as lint — the union of the dielime and during.day rule sets, shipped as presets.",
|
|
6
6
|
"keywords": [
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"oxlint": ">=1.77"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@geonosis/lint-parity": "
|
|
46
|
+
"@geonosis/lint-parity": "2.0.0"
|
|
47
47
|
},
|
|
48
48
|
"engines": {
|
|
49
49
|
"node": ">=22"
|
|
File without changes
|
|
File without changes
|