1.0.2 • Published 2 years ago
@koshikishi/linthtml-config v1.0.2
@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-configUsage
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
linthtmland 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.