Skip to content

Commit efbec5e

Browse files
Update README.md
1 parent 75662d5 commit efbec5e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,16 @@ npm install @linthtml/linthtml linthtml-config-htmlacademy -D
4848
> Обязательно убедитесь, что файл настроек называется `.linthtmlrc`, так как это обязательное [требование плагина](https://marketplace.visualstudio.com/items?itemName=kamikillerto.vscode-linthtml#:~:text=If%20you%20have%20a%20valid%20hmllint%20configuration%20file).
4949
5050
![](assets/vs-code-report.png)
51+
52+
## npm и cli
53+
Linthtml можно запускать в терминале. Для этого можно в секцию `"script"` в package.json добавить команду:
54+
```bash
55+
# package.json
56+
"script" {
57+
"lint:html": "linthtml source/*.html --config .linthtmlrc"
58+
}
59+
```
60+
61+
- `linthtml` - запустит проверку HTML-файлов.
62+
- `source/*.html` - поиск HTML-файлов в папке `source.
63+
- `--config .linthtmlrc` - путь до конфигурационного файла. В проекте можно иметь несколько конфигурационных файлов.

0 commit comments

Comments
 (0)