Skip to content

Commit a86ab34

Browse files
committed
chore: update linting support
1 parent edf6d16 commit a86ab34

4 files changed

Lines changed: 403 additions & 35 deletions

File tree

.husky/commit-msg

Lines changed: 0 additions & 4 deletions
This file was deleted.

.markdownlint.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"extends": "markdownlint/style/prettier",
3+
"first-line-h1": false,
4+
"no-inline-html": false,
5+
"no-bare-urls": false,
6+
"no-duplicate-heading": {
7+
"siblings_only": true
8+
},
9+
"code-block-style": {
10+
"style": "fenced"
11+
},
12+
"code-fence-style": {
13+
"style": "backtick"
14+
},
15+
"emphasis-style": {
16+
"style": "underscore"
17+
},
18+
"strong-style": {
19+
"style": "asterisk"
20+
},
21+
"ul-style": {
22+
"style": "dash"
23+
}
24+
}

package.json

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
},
2020
"scripts": {
2121
"coverage": "c8 yarn test",
22-
"prepare": "husky install",
22+
"postinstall": "husky || true",
23+
"precommit": "commitlint --edit \"\" && lint-staged --allow-empty --config lint-staged.config.js",
2324
"prepublishOnly": "yarn test",
2425
"semantic-release": "semantic-release",
2526
"test": "ava"
@@ -43,6 +44,7 @@
4344
"c8": "^10.1.3",
4445
"husky": "^9.1.7",
4546
"lint-staged": "^16.2.6",
47+
"markdownlint": "^0.39.0",
4648
"mock-fs": "^5.5.0",
4749
"prettier": "^3.6.2",
4850
"prettier-package-json": "^2.8.0",
@@ -67,11 +69,19 @@
6769
}
6870
],
6971
"lint-staged": {
70-
"*.js": [
71-
"prettier --write"
72+
".github/renovate.json": [
73+
"yarn dlx --package renovate -- renovate-config-validator"
74+
],
75+
"!(*renovate|package).{cjs,js,json}": [
76+
"prettier --write",
77+
"eslint --fix --cache --no-error-on-unmatched-pattern"
7278
],
7379
"package.json": [
7480
"prettier-package-json --write"
81+
],
82+
"*.md": [
83+
"prettier --no-error-on-unmatched-pattern --ignore-unknown --log-level silent --write --config .prettierrc",
84+
"markdownlint --config .markdownlint.json --fix"
7585
]
7686
}
7787
}

0 commit comments

Comments
 (0)