Skip to content

Commit

Permalink
Chore(ci): Setup markdown linting
Browse files Browse the repository at this point in the history
  • Loading branch information
literat committed Jul 25, 2024
1 parent 2542965 commit 66caa71
Show file tree
Hide file tree
Showing 4 changed files with 2,063 additions and 189 deletions.
2 changes: 2 additions & 0 deletions .remarkignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Changelog is autogenerated
CHANGELOG.md
5 changes: 5 additions & 0 deletions .remarkrc.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import config from './packages/remark-config/index.js';

export default {
...config,
};
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@
"format:check": "prettier --check ./",
"format:fix": "prettier --write ./",
"format:fix:changelog": "prettier --write ./packages/**/CHANGELOG.md",
"lint": "npm-run-all --serial lint:es lint:text",
"lint": "npm-run-all --serial lint:es lint:text lint:md",
"lint:fix": "npm-run-all --serial lint:*:fix",
"lint:es": "eslint ./",
"lint:es:fix": "yarn lint:es --fix",
"lint:text": "textlint ./",
"lint:text:fix": "yarn lint:text --fix",
"lint:md": "remark ./",
"version": "yarn format:fix:changelog"
},
"devDependencies": {
Expand All @@ -41,6 +42,10 @@
"lerna": "8.1.3",
"npm-run-all": "4.1.5",
"prettier": "2.8.8",
"pretty-quick": "3.3.1"
"pretty-quick": "3.3.1",
"remark-cli": "^12.0.0",
"remark-preset-lint-consistent": "^5",
"remark-preset-lint-markdown-style-guide": "^5",
"remark-preset-lint-recommended": "^6"
}
}
Loading

0 comments on commit 66caa71

Please sign in to comment.