HTMLHint 配置文件
2024-10-07 03:36:40
HTMLHint 工具可以对 HTML 代码做静态代码检查,从而保证 HTML 代码的规范和质量。HTMLHint 工具内置 23 条规则,建议在 .htmlhintrc
配置文件中将规则尽可能都打开:
{
"tagname-lowercase": true,
"attr-lowercase": true,
"attr-value-double-quotes": true,
"attr-value-not-empty": true,
"attr-no-duplication": true,
"doctype-first": true,
"tag-pair": true,
"tag-self-close": true,
"spec-char-escape": true,
"id-unique": true,
"src-not-empty": true,
"title-require": true,
"alt-require": true,
"doctype-html5": true,
"id-class-value": "dash",
"style-disabled": true,
"inline-style-disabled": true,
"inline-script-disabled": true,
"space-tab-mixed-disabled": "space4",
"id-class-ad-disabled": true,
"href-abs-or-rel": false,
"attr-unsafe-chars": true,
"head-script-disabled": true
}
每个规则的具体含义,请见下一篇文章htmlhint 规则详解
最新文章
- 设计上如何避免EMC问题
- 快速学习C语言一: Hello World
- Effective Java 12 Consider implementing Comparable
- cocos基础教程(3)cocos3.x版本目录结构介绍
- Revit二次开发示例:DisableCommand
- hdu 1370 Biorhythms
- The Most Wanted Letter
- BZOJ 1052 HAOI2007 覆盖问题 二分法答案+DFS
- 【JAVAWEB学习笔记】02_HTML&;CSS
- OSSEC初探
- 作为一个零基础的新手,如何系统的自学Java和JavaEE开发技术?
- TableExistsException: hbase:namespace
- liunx驱动----按键中断
- 【翻译】WPF4.5新特性(MSDN的翻译读不太懂)
- Azure 认知服务 (1) 概述
- AVFoundation-视频录制以及拍照
- php之复制文件——php经典实例
- 如何查看ESXi的网卡的MAC地址?
- Program Size: data=9.0 xdata=0 code=47
- thinkpadT480安装archlinux
热门文章
- 2019-2020Nowcoder Girl初赛题解
- Codeforces 1190B. Tokitsukaze, CSL and Stone Game
- Erasing Substrings CodeForces - 938F (字符串dp)
- Vue实例:vue2.0+ElementUI框架开发pc项目
- 关于fastJson的几个问题
- symfony3 使用命令行工具生成Entity实体所踩的坑
- 2019.9.27PHP基础
- JMeter元件之Test Fragment
- autocomplete用法
- Reservoir Computing: Harnessing a Universal Dynamical System