@koshikishi/linthtml-config

1.0.2 • Public • Published

@koshikishi/linthtml-config

NPM Version GitHub License Check Workflow Status

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

  1. Install the LintHTML extension for VS Code.
  2. Install linthtml and this config in your project following the Installation section.
  3. Add a LintHTML configuration file (.linthtmlrc.*) and extend it with this shareable config following the Usage section.

Useful links

Package Sidebar

Install

npm i @koshikishi/linthtml-config

Weekly Downloads

45

Version

1.0.2

License

MIT

Unpacked Size

5.91 kB

Total Files

4

Last publish

Collaborators

  • koshikishi