Skip to content

Commit 6b14c36

Browse files
committed
chore(deps): markuplintを導入
1 parent f4b6b22 commit 6b14c36

File tree

3 files changed

+901
-5
lines changed

3 files changed

+901
-5
lines changed

2025/.markuplintrc

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"parser": {
3+
"\\.astro$": "@markuplint/astro-parser"
4+
},
5+
"rules": {
6+
"attr-duplication": true,
7+
"class-naming": false,
8+
"deprecated-attr": true,
9+
"deprecated-element": true,
10+
"disallowed-element": [],
11+
"doctype": "always",
12+
"heading-levels": true,
13+
"id-duplication": true,
14+
"invalid-attr": true,
15+
"label-has-control": false,
16+
"landmark-roles": false,
17+
"neighbor-popovers": true,
18+
"no-ambiguous-navigable-target-names": false,
19+
"no-consecutive-br": false,
20+
"no-duplicate-dt": true,
21+
"no-empty-palpable-content": false,
22+
"no-hard-code-id": false,
23+
"no-orphaned-end-tag": true,
24+
"no-refer-to-non-existent-id": true,
25+
"no-use-event-handler-attr": false,
26+
"permitted-contents": [],
27+
"placeholder-label-option": true,
28+
"require-accessible-name": true,
29+
"require-datetime": true,
30+
"required-attr": [],
31+
"required-element": [],
32+
"required-h1": true,
33+
"table-row-column-alignment": false,
34+
"use-list": false,
35+
"wai-aria": true
36+
}
37+
}

2025/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"preview": "astro preview",
1111
"astro": "astro",
1212
"check": "astro check",
13-
"lint": "eslint --cache .",
13+
"lint": "eslint --cache . && markuplint \"**/*.astro\"",
1414
"format": "nr lint --fix"
1515
},
1616
"dependencies": {
@@ -28,10 +28,12 @@
2828
"devDependencies": {
2929
"@antfu/ni": "^23.3.1",
3030
"@astrojs/ts-plugin": "^1.10.4",
31+
"@markuplint/astro-parser": "^4.6.16",
3132
"@ryoppippi/eslint-config": "npm:@jsr/ryoppippi__eslint-config@^0.0.25",
3233
"eslint": "^9.20.1",
3334
"eslint-plugin-astro": "^1.3.1",
3435
"eslint-plugin-format": "^1.0.1",
36+
"markuplint": "^4.11.6",
3537
"sharp": "^0.33.5",
3638
"typescript": "^5.7.3",
3739
"unplugin-macros": "^0.16.0"

0 commit comments

Comments
 (0)