Configuration
Config File
Place .rintenkirc.json in your project root:
json
{
"rules": {
"doctype": "error",
"no-consecutive-br": "warning",
"no-hard-code-id": "off"
},
"ignore": ["dist/**", "vendor/**"]
}Or specify a custom config path:
bash
npx rintenki --config custom.json "src/**/*.html"Severity Values
| Value | Description |
|---|---|
"error" | Report as error (exit code 1) |
"warning" / "warn" | Report as warning |
"off" / false | Disable the rule |
true | Use default severity |
Ignore Patterns
Use a .rintenkiignore file or the ignore field in config. node_modules is always excluded.
json
{
"ignore": ["dist/**", "vendor/**"]
}Inline Disable Comments
Disable rules for specific lines using HTML comments:
html
<!-- rintenki-disable-next-line required-attr -->
<img src="photo.jpg">
<img src="photo.jpg"> <!-- rintenki-disable-line -->JSON Schema
Rintenki provides a JSON Schema for .rintenkirc.json to enable editor autocompletion and validation.