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 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: 72
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: 2cc5159af691557ba07c0027746413516f4185251dbd6f91980b134ecd8da494
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: 141
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: 2cc5159af691557ba07c0027746413516f4185251dbd6f91980b134ecd8da494
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: 170
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: 2cc5159af691557ba07c0027746413516f4185251dbd6f91980b134ecd8da494
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: 23
8
+ line: 24
9
9
  scope:
10
10
  include:
11
11
  - "**/*.{ts,tsx,js,jsx,mts,mjs,cts,cjs}"
@@ -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: 167
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: 2cc5159af691557ba07c0027746413516f4185251dbd6f91980b134ecd8da494
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: 47
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: 6076596823eef4018e5d7215fac7707b71ec10fc5858998b9fce47b80c9743c6
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: 48
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: 6076596823eef4018e5d7215fac7707b71ec10fc5858998b9fce47b80c9743c6
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: 53
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: 6076596823eef4018e5d7215fac7707b71ec10fc5858998b9fce47b80c9743c6
29
+ sourceHash: f887d32c9ce70d60359408769cbb6c338c609e534eaedb03c650e38e62d21257
30
30
  handWritten:
31
31
  - mechanical
32
32
  - fix