Skip to content

Commit 481db0d

Browse files
author
Andrey Okonetchnikov
committed
Add prettier, husky and lint-staged
1 parent 9097a64 commit 481db0d

File tree

5 files changed

+821
-61
lines changed

5 files changed

+821
-61
lines changed

.husky/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/pre-commit

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx lint-staged

.prettierrc

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"overrides": [
3+
{
4+
"files": "*.md",
5+
"options": {
6+
"printWidth": 70,
7+
"useTabs": false,
8+
"trailingComma": "none",
9+
"arrowParens": "avoid",
10+
"proseWrap": "never"
11+
}
12+
}
13+
]
14+
}

0 commit comments

Comments
 (0)