Skip to content

Commit edf169f

Browse files
authored
chore: update cspell configuration and remove deprecated htmlhint config (#1546)
Signed-off-by: donniean <[email protected]>
1 parent f295afc commit edf169f

File tree

4 files changed

+40
-33
lines changed

4 files changed

+40
-33
lines changed

README.md

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
- [ESLint](#eslint)
1313
- [gitattributes](#gitattributes)
1414
- [gitignore](#gitignore)
15-
- [HTMLHint](#htmlhint)
15+
- [HTML-validate](#html-validate)
1616
- [Knip](#knip)
1717
- [markdownlint](#markdownlint)
1818
- [npm-check-updates](#npm-check-updates)
@@ -211,26 +211,30 @@ Clean
211211
rm .gitignore
212212
```
213213

214-
### [HTMLHint](https://github.com/htmlhint/HTMLHint)
214+
### [HTML-validate](https://html-validate.org)
215215

216216
Setup
217217

218218
```shell
219-
pnpm pkg set devDependencies.htmlhint="$(pnpm view htmlhint version)"
219+
pnpm pkg set devDependencies.html-validate="$(pnpm view html-validate version)"
220220

221-
pnpm pkg set scripts.lint:html='htmlhint --ignore="**/coverage/**" "**/*.html"'
221+
pnpm pkg set scripts.lint:html='html-validate "**/*.html"'
222222

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
224226
```
225227

226228
Clean
227229

228230
```shell
229-
pnpm pkg delete devDependencies.htmlhint
231+
pnpm pkg delete devDependencies.html-validate
230232

231233
pnpm pkg delete scripts.lint:html
232234

233-
rm .htmlhintrc
235+
rm \
236+
.htmlvalidate.mjs \
237+
.htmlvalidateignore
234238
```
235239

236240
### [Knip](https://github.com/webpro-nl/knip)
@@ -589,13 +593,15 @@ curl --create-dirs --output .gitattributes https://raw.githubusercontent.com/don
589593

590594
curl --create-dirs --output .gitignore https://raw.githubusercontent.com/donniean/react-app/main/.gitignore
591595

592-
# HTMLHint
596+
# HTML-validate
593597

594-
pnpm pkg set devDependencies.htmlhint="$(pnpm view htmlhint version)"
598+
pnpm pkg set devDependencies.html-validate="$(pnpm view html-validate version)"
595599

596-
pnpm pkg set scripts.lint:html='htmlhint --ignore="**/coverage/**" "**/*.html"'
600+
pnpm pkg set scripts.lint:html='html-validate "**/*.html"'
597601

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
599605

600606
# Knip
601607

@@ -777,13 +783,15 @@ rm .gitattributes
777783

778784
rm .gitignore
779785

780-
# HTMLHint
786+
# HTML-validate
781787

782-
pnpm pkg delete devDependencies.htmlhint
788+
pnpm pkg delete devDependencies.html-validate
783789

784790
pnpm pkg delete scripts.lint:html
785791

786-
rm .htmlhintrc
792+
rm \
793+
.htmlvalidate.mjs \
794+
.htmlvalidateignore
787795

788796
# Knip
789797

cspell.config.mjs

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,15 @@ export default defineConfig({
1313
// Docker
1414
'Buildx',
1515
// files
16-
'autocorrectignore',
17-
'autocorrectrc',
18-
'browserslistrc',
19-
'commitlintrc',
20-
'htmlhintrc',
21-
'huskyrc',
22-
'lintstagedrc',
23-
'markdownlintignore',
24-
'nvmrc',
25-
'stylelintignore',
26-
'stylelintrc',
16+
'.autocorrectignore',
17+
'.autocorrectrc',
18+
'.browserslistrc',
19+
'.htmlvalidate',
20+
'.htmlvalidateignore',
21+
'.huskyrc',
22+
'.markdownlintignore',
23+
'.nvmrc',
24+
'.stylelintignore',
2725
// Git
2826
'signoff',
2927
// glossary
Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
import type { Config } from '@/types/configs';
22

33
export const CONFIG = {
4-
key: 'htmlhint',
5-
name: 'HTMLHint',
6-
url: 'https://github.com/htmlhint/HTMLHint',
4+
key: 'html-validate',
5+
name: 'HTML-validate',
6+
url: 'https://html-validate.org',
77
pkg: {
8-
devDependencies: [{ packageName: 'htmlhint' }],
8+
devDependencies: [{ packageName: 'html-validate' }],
99
scripts: [
1010
{
1111
key: 'lint:html',
12-
value: 'htmlhint --ignore="**/coverage/**" "**/*.html"',
12+
value: 'html-validate "**/*.html"',
1313
},
1414
],
1515
},
16-
filePaths: ['.htmlhintrc'],
16+
filePaths: ['.htmlvalidate.mjs', '.htmlvalidateignore'],
17+
1718
setup: [
1819
{ type: 'pkg.devDependencies.set' },
1920
{ type: 'pkg.scripts.set' },

src/configs/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { CONFIG as editorconfig } from './editorconfig';
66
import { CONFIG as eslint } from './eslint';
77
import { CONFIG as gitattributes } from './gitattributes';
88
import { CONFIG as gitignore } from './gitignore';
9-
import { CONFIG as htmlhint } from './htmlhint';
9+
import { CONFIG as htmlValidate } from './html-validate';
1010
import { CONFIG as husky } from './husky';
1111
import { CONFIG as knip } from './knip';
1212
import { CONFIG as lintStaged } from './lint-staged';
@@ -26,7 +26,7 @@ export const CONFIGS = [
2626
eslint,
2727
gitattributes,
2828
gitignore,
29-
htmlhint,
29+
htmlValidate,
3030
knip,
3131
markdownlint,
3232
npmCheckUpdates,

0 commit comments

Comments
 (0)