Skip to content

Commit 1e56c31

Browse files
authored
Merge pull request #867 from PaulHax/lint-staged-prettier
chore: run prettier in lint-staged pre-commit hook
2 parents b2c211c + dbad36d commit 1e56c31

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@
112112
},
113113
"lint-staged": {
114114
"*.{js,jsx,ts,tsx,vue}": [
115-
"eslint"
115+
"eslint",
116+
"prettier --config ./prettier.config.cjs --write"
116117
]
117118
}
118119
}

0 commit comments

Comments
 (0)