Skip to content

Commit 08a4b63

Browse files
committed
chore: add airbnb-base in extends and fix commit hook if this project placed in subdir of git root
1 parent 819ea16 commit 08a4b63

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

.eslintrc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@
1515
{
1616
"files": ["**/*.ts", "**/*.tsx"],
1717
"plugins": ["@typescript-eslint", "unused-imports", "simple-import-sort"],
18-
"extends": ["airbnb-typescript/base", "plugin:prettier/recommended"],
18+
"extends": [
19+
"airbnb-base",
20+
"airbnb-typescript/base",
21+
"plugin:prettier/recommended"
22+
],
1923
"parserOptions": {
2024
"project": "./tsconfig.json"
2125
},

.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 --no -- commitlint --edit $1
4+
cd "$(dirname "$0")/.." && npx --no -- commitlint --edit $1

.husky/pre-commit

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

44
# Disable concurent to run `check-types` after ESLint in lint-staged
5-
npx lint-staged --concurrent false
5+
cd "$(dirname "$0")/.." && npx lint-staged --concurrent false

0 commit comments

Comments
 (0)