TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Stylelint – A modern linter for CSS

213 点作者 tilt超过 6 年前

7 条评论

fxfan超过 6 年前
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 未加载
buro9超过 6 年前
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 未加载
nkingsy超过 6 年前
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.
antoniuschan99超过 6 年前
Does this help with Dead Code Elimination?
评论 #19081874 未加载
dlbucci超过 6 年前
Any support for Stylus? I see it supports SugarSS, which I had not heard of, and that looks sort of close...
评论 #19106528 未加载
评论 #19077869 未加载
elbrian超过 6 年前
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 未加载
malvosenior超过 6 年前
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 未加载