Skip to content

Commit

Permalink
config lint-staged
Browse files Browse the repository at this point in the history
  • Loading branch information
nishkohli96 committed Feb 1, 2024
1 parent d5df4c7 commit 0884683
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 21 deletions.
19 changes: 9 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,19 @@ node_modules
.next
.vercel

# testing
/coverage

# production
build
dist
**.tsbuildinfo
*.tsbuildinfo

# testing
/coverage

# misc
.DS_Store
**/.env.*

npm-debug.log*
yarn-debug.log*
yarn-error.log*

.env
.env.*
*.log
.pnp.js
*.pem
next-env.d.ts
3 changes: 1 addition & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
npm run lint
npm run prettier
npx lint-staged
13 changes: 8 additions & 5 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,23 @@ dist
.vercel

# config-files
tsconfig.json
nest-cli.json
package.json
package-lock.json
test/jest-e2e.json
tsconfig.json
tsconfig.build.json
turbo.json
yarn.lock
package-lock.json

.eslintrc
.eslintc.*
.eslintrc.*
.eslintcache
.gitignore
.prettierignore
.prettierrc
.prettierrc.*
.tsbuildifo
.tsbuildinfo

# static asset files
*.jpg
Expand All @@ -40,4 +44,3 @@ package-lock.json
*.d.ts
*.yml
*.yaml
**/*.env.*
2 changes: 1 addition & 1 deletion apps/fastify-server/nest-cli.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
"compilerOptions": {
"deleteOutDir": true
}
}
}
2 changes: 1 addition & 1 deletion apps/fastify-server/test/jest-e2e.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
}
}
}
2 changes: 1 addition & 1 deletion apps/next-client/src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,6 @@ a {

@media (prefers-color-scheme: dark) {
html {
color-scheme: dark;
color-scheme: dark;
}
}
10 changes: 9 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,20 @@
"fastify-server:build": "yarn workspace fastify-server build",
"test": "turbo run test",
"lint": "turbo run lint",
"prettier": "prettier --write *"
"prettier": "prettier --write ,"
},
"devDependencies": {
"husky": "^9.0.7",
"lint-staged": "^15.2.1",
"prettier": "^3.2.4",
"turbo": "^1.12.0"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"eslint --fix"
],
"*.{json,html,css,sass,scss}": [
"prettier --write --ignore-unknown"
]
}
}

0 comments on commit 0884683

Please sign in to comment.