@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.
@@ -1,28 +1,29 @@
1
- ---
2
- name: lint-companion
3
- description: Load before the first fix, check or test, and when a diagnostic survives a fix.
4
- ---
1
+ #!/usr/bin/env node
2
+ // src/main.cli.ts
3
+ process.stdout.write(`# Lint tactics
5
4
 
6
- # Lint companion
5
+ When \`vp run fix\` leaves a diagnostic, apply these before changing the design.
7
6
 
8
- **Converge.** Run Verify as written; let autofix handle mechanical rewrites and batch the remaining diagnostics. Use these examples when the corresponding diagnostic fires.
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
- ```diff
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
- ```diff
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.1246",
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/install.js"
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"