@deslop/coding-standards 0.1.1246 → 0.1.1248
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 +4 -2
- package/dist/lint.js +5495 -277
- package/{skills/lint-companion/SKILL.md → dist/main.cli.js} +11 -10
- package/package.json +5 -4
- package/dist/Boolean-C8Zb2yak.mjs +0 -7173
- package/dist/install.js +0 -27689
- package/skills/pull-requests/SKILL.md +0 -65
- package/skills/review/SKILL.md +0 -24
- /package/dist/{install.d.ts → main.cli.d.ts} +0 -0
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
---
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// src/main.cli.ts
|
|
3
|
+
process.stdout.write(`# Lint tactics
|
|
5
4
|
|
|
6
|
-
|
|
5
|
+
When \`vp run fix\` leaves a diagnostic, apply these before changing the design.
|
|
7
6
|
|
|
8
|
-
**Converge.**
|
|
7
|
+
**Converge.** Let autofix handle mechanical rewrites; batch the remaining diagnostics. Use these examples when the corresponding diagnostic fires.
|
|
9
8
|
|
|
10
9
|
**Inline safely.** Preserve evaluation order and receiver binding:
|
|
11
10
|
|
|
12
|
-
|
|
11
|
+
\`\`\`diff
|
|
13
12
|
-const value = store.get(key)
|
|
14
13
|
-return value
|
|
15
14
|
+return store.get(key)
|
|
16
|
-
|
|
15
|
+
\`\`\`
|
|
17
16
|
|
|
18
17
|
**Order, not architecture.** A use-before-definition diagnostic needs the dependency moved, not a new module or a mutable placeholder:
|
|
19
18
|
|
|
20
|
-
|
|
19
|
+
\`\`\`diff
|
|
21
20
|
-export function total(amount: number) { return fee(amount) + amount }
|
|
22
21
|
export function fee(amount: number) { return amount * 0.2 }
|
|
23
22
|
+export function total(amount: number) { return fee(amount) + amount }
|
|
24
|
-
|
|
23
|
+
\`\`\`
|
|
25
24
|
|
|
26
25
|
**Fix the cause.** If a diagnostic survives, inspect the applied diff and the rule's premise before changing the design. Delete a whole unused declaration, not just its header. Preserve resource lifetime.
|
|
27
26
|
|
|
28
27
|
**No camouflage.** No casts, wrappers, spreads, suppressions or file splits merely to pass. Use documented exceptions with their required reason. If the intended form is rejected, show it beside a genuinely invalid counterexample before changing policy.
|
|
28
|
+
`);
|
|
29
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deslop/coding-standards",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1248",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/MP281X/deslop.git",
|
|
7
7
|
"directory": "tools/coding-standards"
|
|
8
8
|
},
|
|
9
9
|
"bin": {
|
|
10
|
-
"deslop-coding-standards": "dist/
|
|
10
|
+
"deslop-coding-standards": "dist/main.cli.js"
|
|
11
11
|
},
|
|
12
12
|
"files": [
|
|
13
13
|
"dist",
|
|
14
|
-
"skills",
|
|
15
14
|
"src/css-properties.d.ts",
|
|
16
15
|
"tsconfig.json"
|
|
17
16
|
],
|
|
@@ -29,12 +28,14 @@
|
|
|
29
28
|
"access": "public"
|
|
30
29
|
},
|
|
31
30
|
"dependencies": {
|
|
32
|
-
"@effect/platform-node": "latest",
|
|
33
31
|
"@shadcn/lint": "latest",
|
|
34
32
|
"@typeonce/oxlint-plugin-effect-machine": "latest",
|
|
35
33
|
"effect": "latest",
|
|
36
34
|
"oxlint-plugin-react-doctor": "latest"
|
|
37
35
|
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@effect/platform-node": "latest"
|
|
38
|
+
},
|
|
38
39
|
"peerDependencies": {
|
|
39
40
|
"@effect/tsgo": ">=0.67",
|
|
40
41
|
"vite-plus": "^1.3"
|