Skip to content

Commit

Permalink
Add Linter & Formatter & Git Hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
mathewhany committed Oct 5, 2023
1 parent 3c6e211 commit e3df252
Show file tree
Hide file tree
Showing 22 changed files with 4,476 additions and 486 deletions.
3 changes: 3 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["esbenp.prettier-vscode", "dbaeumer.vscode-eslint"]
}
12 changes: 12 additions & 0 deletions backend/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"env": {
"browser": true,
"es2021": true
},
"extends": ["standard-with-typescript", "prettier"],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {}
}
5 changes: 5 additions & 0 deletions backend/.husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

cd backend
npx lint-staged
5 changes: 5 additions & 0 deletions backend/.prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"trailingComma": "es5",
"semi": false,
"singleQuote": true
}
Loading

0 comments on commit e3df252

Please sign in to comment.