Skip to content

Commit

Permalink
Add husky and lint-staged
Browse files Browse the repository at this point in the history
  • Loading branch information
SH5H committed Dec 10, 2022
1 parent 059f15b commit 9a3caac
Show file tree
Hide file tree
Showing 12 changed files with 22,501 additions and 19,586 deletions.
5 changes: 5 additions & 0 deletions .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"

npx lint-staged
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"semi": true,
"trailingComma": "none",
"singleQuote": true,
"printWidth": 80,
"useTabs": false
}
29 changes: 12 additions & 17 deletions backend/.eslintrc
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"prettier"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"rules": {
"no-console": 2,
"prettier/prettier": 2
}
}
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "prettier"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"rules": {
"no-console": 2
}
}
7 changes: 0 additions & 7 deletions backend/.prettierrc

This file was deleted.

Loading

0 comments on commit 9a3caac

Please sign in to comment.