TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Stylelint – A modern linter for CSS

213 pointsby tiltover 6 years ago

7 comments

fxfanover 6 years ago
Something else that I recently came across- <a href="https:&#x2F;&#x2F;japgolly.github.io&#x2F;scalacss&#x2F;book&#x2F;quickstart&#x2F;standalone.html" rel="nofollow">https:&#x2F;&#x2F;japgolly.github.io&#x2F;scalacss&#x2F;book&#x2F;quickstart&#x2F;standalo...</a><p>Typesafe css, so you wouldn&#x27;t spell px as xp.<p>Stylelint isn&#x27;t just a linter- it&#x27;s also a checker. And looks like it does both jobs well. scala-css does the checker job very well, maybe better if it understands the fields (I don&#x27;t know if it does).
评论 #19076990 未加载
buro9over 6 years ago
This is nice, and I tried it out... and it&#x27;s led to a general CSS question.<p><pre><code> #ff9f </code></pre> Is that valid? What colour is that?!
评论 #19076844 未加载
评论 #19076825 未加载
评论 #19076808 未加载
评论 #19077377 未加载
评论 #19076842 未加载
评论 #19076809 未加载
nkingsyover 6 years ago
Much love for Stylelint. My last company had some unique style guide rules, and I was able to encode all of them in Stylelint with only a few custom rules. The custom rules were very easy to write and plug in, and everything auto-fixes. Absolutely eliminated a large chunk of developer time wasted in code reviewing the wrong things.
antoniuschan99over 6 years ago
Does this help with Dead Code Elimination?
评论 #19081874 未加载
dlbucciover 6 years ago
Any support for Stylus? I see it supports SugarSS, which I had not heard of, and that looks sort of close...
评论 #19106528 未加载
评论 #19077869 未加载
elbrianover 6 years ago
I&#x27;m a little confused -- did something happen with&#x2F;to stylelint? Why is it at the top of HN right now?
评论 #19076836 未加载
评论 #19077046 未加载
评论 #19077204 未加载
malvoseniorover 6 years ago
This is neat, but:<p>`npm install stylelint --save-dev`<p>I really wish people wouldn&#x27;t write cli tools in Javascript. Npm is a disaster and will pollute my system with all kinds of dependency libraries if I run the above command. It would be great to see more tools like this written in Go, Rust or something else that compiles to a static binary.
评论 #19077167 未加载
评论 #19077164 未加载
评论 #19077348 未加载
评论 #19076818 未加载
评论 #19076872 未加载
评论 #19077086 未加载
评论 #19077582 未加载
评论 #19077764 未加载