|
12 | 12 | - [ESLint](#eslint) |
13 | 13 | - [gitattributes](#gitattributes) |
14 | 14 | - [gitignore](#gitignore) |
15 | | - - [HTMLHint](#htmlhint) |
| 15 | + - [HTML-validate](#html-validate) |
16 | 16 | - [Knip](#knip) |
17 | 17 | - [markdownlint](#markdownlint) |
18 | 18 | - [npm-check-updates](#npm-check-updates) |
@@ -211,26 +211,30 @@ Clean |
211 | 211 | rm .gitignore |
212 | 212 | ``` |
213 | 213 |
|
214 | | -### [HTMLHint](https://github.com/htmlhint/HTMLHint) |
| 214 | +### [HTML-validate](https://html-validate.org) |
215 | 215 |
|
216 | 216 | Setup |
217 | 217 |
|
218 | 218 | ```shell |
219 | | -pnpm pkg set devDependencies.htmlhint="$(pnpm view htmlhint version)" |
| 219 | +pnpm pkg set devDependencies.html-validate="$(pnpm view html-validate version)" |
220 | 220 |
|
221 | | -pnpm pkg set scripts.lint:html='htmlhint --ignore="**/coverage/**" "**/*.html"' |
| 221 | +pnpm pkg set scripts.lint:html='html-validate "**/*.html"' |
222 | 222 |
|
223 | | -curl --create-dirs --output .htmlhintrc https://raw.githubusercontent.com/donniean/react-app/main/.htmlhintrc |
| 223 | +curl --create-dirs \ |
| 224 | + --output .htmlvalidate.mjs https://raw.githubusercontent.com/donniean/react-app/main/.htmlvalidate.mjs \ |
| 225 | + --output .htmlvalidateignore https://raw.githubusercontent.com/donniean/react-app/main/.htmlvalidateignore |
224 | 226 | ``` |
225 | 227 |
|
226 | 228 | Clean |
227 | 229 |
|
228 | 230 | ```shell |
229 | | -pnpm pkg delete devDependencies.htmlhint |
| 231 | +pnpm pkg delete devDependencies.html-validate |
230 | 232 |
|
231 | 233 | pnpm pkg delete scripts.lint:html |
232 | 234 |
|
233 | | -rm .htmlhintrc |
| 235 | +rm \ |
| 236 | + .htmlvalidate.mjs \ |
| 237 | + .htmlvalidateignore |
234 | 238 | ``` |
235 | 239 |
|
236 | 240 | ### [Knip](https://github.com/webpro-nl/knip) |
@@ -589,13 +593,15 @@ curl --create-dirs --output .gitattributes https://raw.githubusercontent.com/don |
589 | 593 |
|
590 | 594 | curl --create-dirs --output .gitignore https://raw.githubusercontent.com/donniean/react-app/main/.gitignore |
591 | 595 |
|
592 | | -# HTMLHint |
| 596 | +# HTML-validate |
593 | 597 |
|
594 | | -pnpm pkg set devDependencies.htmlhint="$(pnpm view htmlhint version)" |
| 598 | +pnpm pkg set devDependencies.html-validate="$(pnpm view html-validate version)" |
595 | 599 |
|
596 | | -pnpm pkg set scripts.lint:html='htmlhint --ignore="**/coverage/**" "**/*.html"' |
| 600 | +pnpm pkg set scripts.lint:html='html-validate "**/*.html"' |
597 | 601 |
|
598 | | -curl --create-dirs --output .htmlhintrc https://raw.githubusercontent.com/donniean/react-app/main/.htmlhintrc |
| 602 | +curl --create-dirs \ |
| 603 | + --output .htmlvalidate.mjs https://raw.githubusercontent.com/donniean/react-app/main/.htmlvalidate.mjs \ |
| 604 | + --output .htmlvalidateignore https://raw.githubusercontent.com/donniean/react-app/main/.htmlvalidateignore |
599 | 605 |
|
600 | 606 | # Knip |
601 | 607 |
|
@@ -777,13 +783,15 @@ rm .gitattributes |
777 | 783 |
|
778 | 784 | rm .gitignore |
779 | 785 |
|
780 | | -# HTMLHint |
| 786 | +# HTML-validate |
781 | 787 |
|
782 | | -pnpm pkg delete devDependencies.htmlhint |
| 788 | +pnpm pkg delete devDependencies.html-validate |
783 | 789 |
|
784 | 790 | pnpm pkg delete scripts.lint:html |
785 | 791 |
|
786 | | -rm .htmlhintrc |
| 792 | +rm \ |
| 793 | + .htmlvalidate.mjs \ |
| 794 | + .htmlvalidateignore |
787 | 795 |
|
788 | 796 | # Knip |
789 | 797 |
|
|
0 commit comments