Skip to content

Commit e491c96

Browse files
Merge pull request #15 from htmlacademy/feature/vs-code
#1 Добавлят использование VS Code
2 parents a624910 + 3f97fb6 commit e491c96

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
## Установка
99

1010
```bash
11-
npm install linthtml-config-htmlacademy -D
11+
npm install @linthtml/linthtml linthtml-config-htmlacademy -D
1212
```
1313

1414
## Использование
1515

16-
Если вы установили `linthtml-config-htmlacademy` локально в свой проект, то просто примените его в конфигурационном файле `.linthtml` вашего проекта:
16+
Когда вы установили `linthtml-config-htmlacademy` локально в свой проект, примените его в конфигурационном файле `.linthtmlrc` вашего проекта:
1717

1818
```json
1919
{
@@ -38,3 +38,11 @@ npm install linthtml-config-htmlacademy -D
3838
}
3939
}
4040
```
41+
42+
43+
## Использование в VS Code
44+
Чтобы VS Code начал подсвечивать ошибки в HTML-разметке, установите плагин [LintHTML](https://marketplace.visualstudio.com/items?itemName=kamikillerto.vscode-linthtml).
45+
46+
> Обязательно убедитесь, что файл настроек называется `.linthtmlrc`, так как это обязательное [требование плагина](https://marketplace.visualstudio.com/items?itemName=kamikillerto.vscode-linthtml#:~:text=If%20you%20have%20a%20valid%20hmllint%20configuration%20file).
47+
48+
![](assets/vs-code-report.png)

assets/vs-code-report.png

21.3 KB
Loading

0 commit comments

Comments
 (0)