taste-lint 0.5.0 → 0.6.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 +6 -0
- package/data/rules/engineering/engineering-catch-rethrow.yaml +2 -2
- package/data/rules/engineering/engineering-dead-branch.yaml +2 -2
- package/data/rules/engineering/engineering-debug-log-in-ui.yaml +2 -2
- package/data/rules/engineering/engineering-restating-comment.yaml +1 -1
- package/data/rules/engineering/engineering-template-residue.yaml +2 -2
- package/data/rules/engineering/engineering-test-focused.yaml +2 -2
- package/data/rules/engineering/engineering-test-self-comparison.yaml +2 -2
- package/data/rules/engineering/engineering-test-skipped.yaml +2 -2
- package/dist/cli.js +1829 -1308
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +213 -26
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -38,6 +38,12 @@ npm run taste
|
|
|
38
38
|
|
|
39
39
|
Checks bill your key and cache between runs. `--dry-run` previews the cost first.
|
|
40
40
|
|
|
41
|
+
To block commits on the mechanical checks, add a pre-commit hook with lefthook, husky or lint-staged:
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
npx taste-lint init --hook lefthook
|
|
45
|
+
```
|
|
46
|
+
|
|
41
47
|
## What it checks
|
|
42
48
|
|
|
43
49
|
- **Motion:** `transition-all` and `transition: all`, ease-in, linear easing, transitions over 300ms, entrances from scale zero, `framer-motion` imports.
|
|
@@ -5,7 +5,7 @@ categoryId: code-quality
|
|
|
5
5
|
source:
|
|
6
6
|
repo: mblode/agent-skills
|
|
7
7
|
path: skills/tidy/references/ai-slop-patterns.md
|
|
8
|
-
line:
|
|
8
|
+
line: 86
|
|
9
9
|
scope:
|
|
10
10
|
include:
|
|
11
11
|
- "**/*.{ts,tsx,js,jsx,mts,mjs,cts,cjs}"
|
|
@@ -35,7 +35,7 @@ review:
|
|
|
35
35
|
exceptions: A catch that also runs a finally-like side effect before the throw.
|
|
36
36
|
evidence: The full try and catch block.
|
|
37
37
|
verification: Delete the try and catch and run the tests.
|
|
38
|
-
sourceHash:
|
|
38
|
+
sourceHash: 2caa14d4d3875ab1b8d2041551a62e79e7cb2af5e1594c553767240e39205c9b
|
|
39
39
|
handWritten:
|
|
40
40
|
- mechanical
|
|
41
41
|
- fix
|
|
@@ -5,7 +5,7 @@ categoryId: dead-code
|
|
|
5
5
|
source:
|
|
6
6
|
repo: mblode/agent-skills
|
|
7
7
|
path: skills/tidy/references/ai-slop-patterns.md
|
|
8
|
-
line:
|
|
8
|
+
line: 155
|
|
9
9
|
scope:
|
|
10
10
|
include:
|
|
11
11
|
- "**/*.{ts,tsx,js,jsx,mts,mjs,cts,cjs}"
|
|
@@ -35,7 +35,7 @@ review:
|
|
|
35
35
|
exceptions: A deliberate debug toggle documented in place, or generated code.
|
|
36
36
|
evidence: The branch body and anything reachable only from it.
|
|
37
37
|
verification: Delete the branch and run the type check and tests.
|
|
38
|
-
sourceHash:
|
|
38
|
+
sourceHash: 2caa14d4d3875ab1b8d2041551a62e79e7cb2af5e1594c553767240e39205c9b
|
|
39
39
|
handWritten:
|
|
40
40
|
- mechanical
|
|
41
41
|
- fix
|
|
@@ -5,7 +5,7 @@ categoryId: code-quality
|
|
|
5
5
|
source:
|
|
6
6
|
repo: mblode/agent-skills
|
|
7
7
|
path: skills/tidy/references/ai-slop-patterns.md
|
|
8
|
-
line:
|
|
8
|
+
line: 184
|
|
9
9
|
scope:
|
|
10
10
|
include:
|
|
11
11
|
- "**/*.{tsx,jsx}"
|
|
@@ -35,7 +35,7 @@ review:
|
|
|
35
35
|
exceptions: Development-only branches, error boundaries that log on purpose, and storybook files.
|
|
36
36
|
evidence: Whether the call is guarded by an environment check.
|
|
37
37
|
verification: Delete it and check the console in the browser.
|
|
38
|
-
sourceHash:
|
|
38
|
+
sourceHash: 2caa14d4d3875ab1b8d2041551a62e79e7cb2af5e1594c553767240e39205c9b
|
|
39
39
|
handWritten:
|
|
40
40
|
- mechanical
|
|
41
41
|
- fix
|
|
@@ -5,7 +5,7 @@ categoryId: code-quality
|
|
|
5
5
|
source:
|
|
6
6
|
repo: mblode/agent-skills
|
|
7
7
|
path: skills/tidy/references/ai-slop-patterns.md
|
|
8
|
-
line:
|
|
8
|
+
line: 181
|
|
9
9
|
scope:
|
|
10
10
|
include:
|
|
11
11
|
- "**/*.{ts,tsx,js,jsx,mts,mjs,cts,cjs}"
|
|
@@ -36,7 +36,7 @@ review:
|
|
|
36
36
|
exceptions: Examples and scaffolds meant to be filled in by users.
|
|
37
37
|
evidence: Whether the placeholder has an implementation elsewhere.
|
|
38
38
|
verification: Implement or delete it, then run the tests.
|
|
39
|
-
sourceHash:
|
|
39
|
+
sourceHash: 2caa14d4d3875ab1b8d2041551a62e79e7cb2af5e1594c553767240e39205c9b
|
|
40
40
|
handWritten:
|
|
41
41
|
- mechanical
|
|
42
42
|
- fix
|
|
@@ -5,7 +5,7 @@ categoryId: test-value
|
|
|
5
5
|
source:
|
|
6
6
|
repo: mblode/agent-skills
|
|
7
7
|
path: skills/test-audit/SKILL.md
|
|
8
|
-
line:
|
|
8
|
+
line: 33
|
|
9
9
|
scope:
|
|
10
10
|
include:
|
|
11
11
|
- "**/*.{test,spec}.{ts,tsx,js,jsx,mts,mjs,cts,cjs}"
|
|
@@ -26,7 +26,7 @@ review:
|
|
|
26
26
|
exceptions: Local scratch files that are gitignored.
|
|
27
27
|
evidence: The focused call and which tests it silences.
|
|
28
28
|
verification: Remove .only and run the whole file; every test should run.
|
|
29
|
-
sourceHash:
|
|
29
|
+
sourceHash: f887d32c9ce70d60359408769cbb6c338c609e534eaedb03c650e38e62d21257
|
|
30
30
|
handWritten:
|
|
31
31
|
- mechanical
|
|
32
32
|
- fix
|
|
@@ -5,7 +5,7 @@ categoryId: test-value
|
|
|
5
5
|
source:
|
|
6
6
|
repo: mblode/agent-skills
|
|
7
7
|
path: skills/test-audit/SKILL.md
|
|
8
|
-
line:
|
|
8
|
+
line: 34
|
|
9
9
|
scope:
|
|
10
10
|
include:
|
|
11
11
|
- "**/*.{test,spec}.{ts,tsx,js,jsx,mts,mjs,cts,cjs}"
|
|
@@ -26,7 +26,7 @@ review:
|
|
|
26
26
|
exceptions: Tests of equality semantics themselves, such as Object.is or a custom equals.
|
|
27
27
|
evidence: The assertion and what behaviour it was meant to check.
|
|
28
28
|
verification: Replace the expected value with an independent literal and confirm the test fails when the code breaks.
|
|
29
|
-
sourceHash:
|
|
29
|
+
sourceHash: f887d32c9ce70d60359408769cbb6c338c609e534eaedb03c650e38e62d21257
|
|
30
30
|
handWritten:
|
|
31
31
|
- mechanical
|
|
32
32
|
- fix
|
|
@@ -5,7 +5,7 @@ categoryId: test-value
|
|
|
5
5
|
source:
|
|
6
6
|
repo: mblode/agent-skills
|
|
7
7
|
path: skills/test-audit/SKILL.md
|
|
8
|
-
line:
|
|
8
|
+
line: 39
|
|
9
9
|
scope:
|
|
10
10
|
include:
|
|
11
11
|
- "**/*.{test,spec}.{ts,tsx,js,jsx,mts,mjs,cts,cjs}"
|
|
@@ -26,7 +26,7 @@ review:
|
|
|
26
26
|
exceptions: A skip gated on platform or environment with a stated reason, and todo entries tracked in an issue.
|
|
27
27
|
evidence: Why it was skipped (history, a linked issue) and whether the behaviour is covered elsewhere.
|
|
28
28
|
verification: Re-enable and run it, or delete it and confirm another test covers the behaviour.
|
|
29
|
-
sourceHash:
|
|
29
|
+
sourceHash: f887d32c9ce70d60359408769cbb6c338c609e534eaedb03c650e38e62d21257
|
|
30
30
|
handWritten:
|
|
31
31
|
- mechanical
|
|
32
32
|
- fix
|