https://github.com/linthtml/linthtml-config-recommended
Recommended shareable config for linthtml
https://github.com/linthtml/linthtml-config-recommended
Last synced: 2 months ago
JSON representation
Recommended shareable config for linthtml
- Host: GitHub
- URL: https://github.com/linthtml/linthtml-config-recommended
- Owner: linthtml
- License: isc
- Created: 2020-11-25T10:42:00.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2025-03-20T14:41:15.000Z (over 1 year ago)
- Last Synced: 2025-10-30T07:42:20.772Z (8 months ago)
- Language: JavaScript
- Size: 173 KB
- Stars: 2
- Watchers: 0
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# linthtml-config-recommended
Recommended shareable config for [linthtml](https://github.com/linthtml/linthtml).
It turns on some of the [rules](https://github.com/linthtml/linthtml/blob/develop/docs/rules.md) within [linthtml](https://github.com/linthtml/linthtml)..
Use it as is or as a foundation for your own config.
## Installation
```bash
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:
```json
{
"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:
```json
{
"extends": "stylelint-config-recommended",
"rules": {
"line-max-len": [
true,
120
],
"tag-close": "off",
"attr-order": [
true,
[
"id", "class"
]
]
}
}
```