Skip to content

Commit b68ad2b

Browse files
committed
refactor: config files
1 parent ccd1165 commit b68ad2b

File tree

11 files changed

+41
-27
lines changed

11 files changed

+41
-27
lines changed

.config/.commitlintrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": ["@commitlint/config-conventional"],
3+
}

.config/.lintstagedrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"*.{js,ts,tsx}": ["yarn lint:fix"],
3+
"*.{json,md,yaml}": ["yarn lint:format"],
4+
}

.config/.lintstagedrc.js

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

.config/commitlint.config.js

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

.config/husky/commit-msg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
npx commitlint --config .config/commitlint.config.js --edit $1
4+
npx commitlint --config .config/.commitlintrc --edit $1

.config/husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
npx lint-staged --config .config/.lintstagedrc.js
4+
npx lint-staged --config .config/.lintstagedrc

.npmignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*.log
2+
*.tgz
3+
.env

.prettierrc

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"arrowParens": "always",
3+
"endOfLine": "lf",
4+
"printWidth": 80,
5+
"semi": false,
6+
"singleQuote": true,
7+
"tabWidth": 4,
8+
"trailingComma": "all",
9+
"overrides": [
10+
{
11+
"files": "*.yaml",
12+
"options": {
13+
"tabWidth": 2,
14+
},
15+
},
16+
],
17+
}

.prettierrc.js

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

.tool-versions

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)