Your app looks AI-generated. Vincent Van Gogh noticed. An agent skill that finds and fixes AI-looking UI and UX in mobile apps, web apps, and websites.
JavaScript accessibilityagent-skillsagent-skills-toolsagentsagentskillsai-slopclaudeclaude-codeclaude-skillsexpoflutterfrontendionicjetpack-composemobilereact-nativeswiftuiuiuxvibe-coding
docs: document the CSS block-comment form of unslop-anything-ignore (#82)
S Niwase85954b07226
diff --git a/README.md b/README.mdindex 626d82a..1112873 100644--- a/README.md+++ b/README.md@@ -145,7 +145,7 @@ On the web it adds clickable divs, removed focus rings, disabled zoom, images wiIt reads the nearest `package.json` to tell a phone app from a website, so hover is a problem in your Expo app and fine on your Next.js site. `--platform web`, `--platform mobile`, or `--platform universal` settles it when it guesses wrong. Use `universal` when the project ships to both phone and web so both rule sets apply.-Exit code `2` means findings, so it can gate a pull request. Silence one line with `// unslop-anything-ignore <rule-id>` (`<!-- unslop-anything-ignore <rule-id> -->` in XML), or a whole rule in `.unslop-anything/config.json`:+Exit code `2` means findings, so it can gate a pull request. Silence one line with `// unslop-anything-ignore <rule-id>` (`<!-- unslop-anything-ignore <rule-id> -->` in XML, `/* unslop-anything-ignore <rule-id> */` in CSS), or a whole rule in `.unslop-anything/config.json`:```json{ "ignoreRules": ["status-dot"], "ignorePaths": ["src/legacy/"] }diff --git a/skills/unslop-anything/reference/tells.md b/skills/unslop-anything/reference/tells.mdindex 10300ed..df9d90d 100644--- a/skills/unslop-anything/reference/tells.md+++ b/skills/unslop-anything/reference/tells.md@@ -116,4 +116,4 @@ You can only suspect these from code. See [performance.md](performance.md).- A hit is a lead. Open the file and confirm it is real in this product before you report it.- No hit means nothing. Most of sections 1, 2, and 6 cannot be seen in code at all.-- Silence a confirmed false positive with `// unslop-anything-ignore <rule-id>` on that line or the line above. In XML and HTML files, where `//` is not a comment, use `<!-- unslop-anything-ignore <rule-id> -->` instead. Or list the rule under `ignoreRules` in `.unslop-anything/config.json` when the chart accepts it project-wide.+- Silence a confirmed false positive with `// unslop-anything-ignore <rule-id>` on that line or the line above. In XML and HTML files, where `//` is not a comment, use `<!-- unslop-anything-ignore <rule-id> -->` instead. In CSS, where `//` is not a comment either (the line would merge into the next selector and the browser would drop that rule), use `/* unslop-anything-ignore <rule-id> */`. Or list the rule under `ignoreRules` in `.unslop-anything/config.json` when the chart accepts it project-wide.diff --git a/test/detect.test.js b/test/detect.test.jsindex 4bf4340..6c96332 100644--- a/test/detect.test.js+++ b/test/detect.test.js@@ -91,6 +91,13 @@ test("inline ignore comments silence a line", () => {assert.deepStrictEqual(scanSource(src, "a.ts").map((f) => f.line), [4]);});+test("a CSS block comment silences a line, since // is not a CSS comment", () => {+ const css = ".a:focus { outline: none; }\n";+ assert.deepStrictEqual(scanSource(css, "a.css").map((f) => f.rule), ["focus-removed"]);+ assert.deepStrictEqual(scanSource(`/* unslop-anything-ignore focus-removed */\n${css}`, "a.css"), []);+ assert.deepStrictEqual(scanSource(`.a:focus { outline: none; } /* unslop-anything-ignore focus-removed */\n`, "a.css"), []);+});+test("ignore comments from before the rename still work", () => {const src = '// unslopovich-ignore oops-error\nconst a = "Oops";\nconst b = "Oops"; // unslopovich-ignore\nconst c = "Oops";\n';assert.deepStrictEqual(scanSource(src, "a.ts").map((f) => f.line), [4]);