Skip to content

Commit

Permalink
moaijs#115: apply code format on commit
Browse files Browse the repository at this point in the history
  • Loading branch information
lqt93 committed Mar 31, 2021
1 parent 39f39af commit 5731d15
Show file tree
Hide file tree
Showing 3 changed files with 686 additions and 0 deletions.
14 changes: 14 additions & 0 deletions package.json
@@ -0,0 +1,14 @@
{
"name": "@moai/root",
"devDependencies": {
"lint-staged": "^10.5.4",
"prettier": "^2.2.1",
"simple-git-hooks": "^2.2.0"
},
"simple-git-hooks": {
"pre-commit": "npx lint-staged"
},
"lint-staged": {
"*.{ts,tsx,js,css,md}": "prettier --write"
}
}
1 change: 1 addition & 0 deletions prettier.config.js
@@ -1,5 +1,6 @@
/** @type {import("prettier").Options} */
module.exports = {
parser: "typescript",
tabWidth: 4,
useTabs: true,
};

0 comments on commit 5731d15

Please sign in to comment.