Menu

tastelint: a linter that fails the build when your coding agent ships the purple-gradient landing page again
📰

tastelint: a linter that fails the build when your coding agent ships the purple-gradient landing page again

DEV Community: css·bayuh85·3 days ago
#Q9MZBE3y
#devtocss#devto#dev#tastelint#medium
Reading 0:00
15s threshold

Repo: 👉 github.com/bayuh85/tastelint (MIT, Python 3.10+, standard-library scanner, 37 offline tests)

The problem

Ask any coding agent for a landing page and you can draw the result before it finishes: a purple-to-blue gradient, Inter, a centered hero, "✨ Supercharge your workflow", a Get Started button, and three identical glass cards with an emoji on top and lorem ipsum underneath.

None of that is a bug. Type checks pass, tests pass, the page renders. It just looks like every other generated page, and nobody catches it until a human opens the preview and sighs.

ESLint and Stylelint check correctness. Nothing in the pipeline checks taste . So I wrote a linter for the habits themselves: name the pattern, point at file:line , give the page a score, and fail CI when the score is too low.

What tastelint does

tastelint scan walks HTML, CSS, SCSS, JSX/TSX, Vue, Svelte, MDX and Tailwind class strings with a deterministic rule engine.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.