HTML绒毛和HTML提示有什么区别?

发布于 2025-01-17 19:16:40 字数 167 浏览 3 评论 0原文

HTML Lint 和 HTML Hint Sublime 包之间有什么区别?

两者都在 SublimeLinter 中工作,并且都在我的 HTML 代码中显示错误或警告。那么有区别吗?

更新 经过进一步挖掘,Lint 和 Hint 似乎是同一件事的不同词:检查/验证/linting 代码。

What is the difference between HTML Lint and HTML Hint Sublime packages?

Both work within SublimeLinter and both appear to show errors or warnings in my HTML code. So is there a difference?

UPDATE
From doing a bit more digging, it appears that both Lint and Hint are different words for the same thing: checking/validating/linting code.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

伴梦长久 2025-01-24 19:16:40

它们都是 HTML 的 lint 包。

包需要唯一的名称。

  • 它们均于 2014 年(约 8 年前)出版。
  • HTMLHint 比 htmllint 早几个月出现,
  • 我转向了 HTMLHint,因为它们似乎正在积极开发。 (上次发布是 3 个月,而 htmllint 是 3 年)
  • 我确实怀念 htmllint 的能力 定义标签禁令

注意:虽然我不推荐它,但可以同时运行两者。
在 package.json 中

    "scripts": {
    ...
     "lint": "npm-run-all --parallel lint:ts lint:scss lint:html lint:html-tagban",
        "lint:html": "npx htmlhint \"**/*.html\"",
        "lint:html-tagban": "npx htmllint \"**/*.html\"",
        "lint:scss": "npx stylelint \"**/*.scss\" --cache",
        "lint:ts": "npx eslint \"**/*.ts\"",
}

They are both lint packages for HTML.

Packages require unique names.

  • They are both published in 2014 (~8 years ago).
  • HTMLHint came out a few months before htmllint
  • I switched over to HTMLHint as they seem to be actively developed. (Last publish is 3 months vs htmllint's 3 years)
  • I do miss htmllint's ability to define tag bans

Note: While I don't recommend it, it is possible to run both.
In package.json

    "scripts": {
    ...
     "lint": "npm-run-all --parallel lint:ts lint:scss lint:html lint:html-tagban",
        "lint:html": "npx htmlhint \"**/*.html\"",
        "lint:html-tagban": "npx htmllint \"**/*.html\"",
        "lint:scss": "npx stylelint \"**/*.scss\" --cache",
        "lint:ts": "npx eslint \"**/*.ts\"",
}

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文