Skip to content

Commit

Permalink
feat: add lint-md for auto insert space around alphabet (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
SigureMo authored Nov 28, 2023
1 parent 57b1d62 commit f5e5425
Show file tree
Hide file tree
Showing 8 changed files with 2,675 additions and 130 deletions.
6 changes: 6 additions & 0 deletions .lintmdrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"rules": {
"space-around-alphabet": 2,
"space-around-number": 2
}
}
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@
"dev": "vitepress dev src",
"build": "vitepress build src",
"serve": "vitepress serve src",
"fmt": "prettier --write .",
"fmt:check": "prettier --check .",
"fmt": "lint-md src/**/*.md --fix && prettier --write .",
"fmt:check": "lint-md src/**/*.md && prettier --check .",
"img:compress": "tsx scripts/compress-image.mts"
},
"devDependencies": {
"@lint-md/cli": "^2.0.0",
"@tailwindcss/typography": "^0.5.10",
"@types/markdown-it": "^13.0.7",
"@types/node": "^20.10.0",
Expand Down
Loading

0 comments on commit f5e5425

Please sign in to comment.