Skip to content

Commit 84b5a86

Browse files
committed
chore: format verify-rule skill with oxfmt
1 parent 665f188 commit 84b5a86

1 file changed

Lines changed: 16 additions & 9 deletions

File tree

.claude/skills/verify-rule/SKILL.md

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ digraph verify {
4646

4747
Read these files for the given `<rule-id>`:
4848

49-
| File | Purpose |
50-
|---|---|
51-
| `src/rules/<rule-id>.ts` | Rule logic, checked properties, default values |
52-
| `src/rules/__tests__/<rule-id>.test.ts` | Unit test cases and assertions |
53-
| `examples/test.html` (grep for `data-rule="<rule-id>"`) | Browser test cases |
54-
| `docs/rules/<rule-id>.md` | Rule documentation (if exists) |
49+
| File | Purpose |
50+
| ------------------------------------------------------- | ---------------------------------------------- |
51+
| `src/rules/<rule-id>.ts` | Rule logic, checked properties, default values |
52+
| `src/rules/__tests__/<rule-id>.test.ts` | Unit test cases and assertions |
53+
| `examples/test.html` (grep for `data-rule="<rule-id>"`) | Browser test cases |
54+
| `docs/rules/<rule-id>.md` | Rule documentation (if exists) |
5555

5656
### Step 2 — Cross-Check Coverage
5757

@@ -103,8 +103,12 @@ test('verify <RULE_ID> cases in detail', async ({ page }) => {
103103
}
104104

105105
const status = expectWarn
106-
? matching.length > 0 ? 'PASS' : 'FAIL'
107-
: matching.length === 0 ? 'PASS' : 'FAIL';
106+
? matching.length > 0
107+
? 'PASS'
108+
: 'FAIL'
109+
: matching.length === 0
110+
? 'PASS'
111+
: 'FAIL';
108112

109113
console.log(`${status} | ${label}`);
110114
console.log(` Computed: ${JSON.stringify(relevantStyles)}`);
@@ -116,7 +120,9 @@ test('verify <RULE_ID> cases in detail', async ({ page }) => {
116120
// Log unexpected warnings from OTHER rules
117121
const others = warnings.filter((w) => w.ruleId !== '<RULE_ID>');
118122
if (others.length > 0) {
119-
console.log(` Other rules fired: ${others.map((w) => `${w.ruleId}:${w.property}`).join(', ')}`);
123+
console.log(
124+
` Other rules fired: ${others.map((w) => `${w.ruleId}:${w.property}`).join(', ')}`,
125+
);
120126
}
121127
console.log('');
122128

@@ -132,6 +138,7 @@ test('verify <RULE_ID> cases in detail', async ({ page }) => {
132138
Replace `<RULE_ID>` with the actual rule ID. Filter `relevantStyles` to only the properties declared in the rule's `requiredProperties` for readability.
133139

134140
Run:
141+
135142
```bash
136143
pnpm playwright test e2e/integration/verify-<rule-id>.test.ts
137144
```

0 commit comments

Comments
 (0)