@koshikishi/linthtml-config
v3.0.1
Published
LintHTML shareable config
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.
Prerequisites
This package requires:
- Node.js >= 24
@linthtml/linthtml>= 0.10.0
Installation
Install the package and linthtml in your project:
npm i -D @linthtml/linthtml @koshikishi/linthtml-configUsage
Set your linthtml config to:
export default {
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:
export default {
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 (
linthtml.config.js) and extend it with this shareable config following the Usage section.
