Skip to content

Commit 016c1ec

Browse files
committed
style: xo to eslint & updat edep dev & update husky
1 parent 33961ca commit 016c1ec

9 files changed

+4166
-10917
lines changed

.eslintrc.json

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"root": true,
3+
"env": {
4+
"es6": true,
5+
"node": true
6+
},
7+
"extends": [
8+
"eslint:recommended",
9+
"plugin:@typescript-eslint/eslint-recommended",
10+
"plugin:@typescript-eslint/recommended"
11+
],
12+
"parser": "@typescript-eslint/parser",
13+
"plugins": [
14+
"@typescript-eslint"
15+
],
16+
"parserOptions": {
17+
"ecmaVersion": "latest",
18+
"sourceType": "module"
19+
},
20+
"rules": {}
21+
}

.husky/commit-msg

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npx --no-install commitlint --extends=@commitlint/config-angular --edit $1

.husky/pre-commit

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

.husky/pre-push

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npm t

.huskyrc

-6
This file was deleted.

.lintstagedrc

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"*.js": "xo"
3-
}
2+
"*.ts": ["npm run lint", "vitest related --run"]
3+
}

0 commit comments

Comments
 (0)