@koshikishi/linthtml-config
v1.0.2
Published
LintHTML shareable config
Downloads
14
Readme
@koshikishi/linthtml-config
The LintHTML shareable config designed for my personal projects.
Use it as is or as a foundation for your own configuration file.
Installation
Install the package and linthtml
in your project:
npm i -D @linthtml/linthtml @koshikishi/linthtml-config
Usage
Set your linthtml
config to:
{
"extends": "@koshikishi/linthtml-config"
}
Extending the config
Add a "rules"
key to your config, then add your overrides and additions there.
For example, to change the id-style
rule and specify a different format, turn off the tag-bans
rule and add the class-style
rule:
{
"extends": "@koshikishi/linthtml-config",
"rules": {
"class-style": [true, "bem"],
"id-style": [true, "underscore"],
"tag-bans": false
}
}
Integration with VS Code
- Install the LintHTML extension for VS Code.
- Install
linthtml
and this config in your project following the Installation section. - Add a LintHTML configuration file (
.linthtmlrc.*
) and extend it with this shareable config following the Usage section.