@linthtml/linthtml-config-recommended

0.1.0 • Public • Published

linthtml-config-recommended

Recommended shareable config for linthtml. It turns on some of the rules within linthtml..

Use it as is or as a foundation for your own config.

Installation

npm install @linthtml/linthtml-config-recommended --save-dev

Usage

If you've installed linthtml-config-recommended locally within your project, just set your linthtml config to:

{
  "extends": "@linthtml/linthtml-config-recommended"
}

Extending the config

Simply add a "rules" key to your config, then add your overrides and additions there.

For example, to change the line-max-len rule and increase the limit, turn off the tag-close rule, and add the attr-order rule:

{
  "extends": "stylelint-config-recommended",
  "rules": {
    "line-max-len": [
      true,
      120
    ],
    "tag-close": "off",
    "attr-order": [
      true,
      [
        "id", "class"
      ]
    ]
  }
}

Dependents (1)

Package Sidebar

Install

npm i @linthtml/linthtml-config-recommended

Weekly Downloads

123

Version

0.1.0

License

ISC

Unpacked Size

4.58 kB

Total Files

4

Last publish

Collaborators

  • kamikillerto