Skip to content

Commit

Permalink
feat: added husky rules
Browse files Browse the repository at this point in the history
  • Loading branch information
naelob committed Oct 24, 2023
1 parent 5e0d2cc commit ccc918c
Show file tree
Hide file tree
Showing 5 changed files with 399 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
**/node_modules/
**/dist/
**/dist/
node_modules
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpm run lint-staged
1 change: 1 addition & 0 deletions api/src/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { ContactModule } from './crm/contact/contact.module';
import { CrmModule } from './crm/crm.module';

@Module({
Expand Down
22 changes: 22 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "Panora",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"prepare": "husky install"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"husky": "^8.0.0",
"lint-staged": "^15.0.2"
},
"lint-staged": {
"**/*.{ts,tsx,js}": [
"eslint"
]
}
}
Loading

0 comments on commit ccc918c

Please sign in to comment.