Skip to content

Commit

Permalink
chore: 🤖 Add lint-staged
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielmpinto committed May 8, 2024
1 parent 334a86c commit e3bf588
Show file tree
Hide file tree
Showing 5 changed files with 978 additions and 1,188 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ jobs:
- name: Publish to npm
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish --access public
run: npm publish --access public
4 changes: 1 addition & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
pnpm test
pnpm lint
pnpm format:check
pnpx lint-staged
4 changes: 3 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
node_modules
dist
dist
.husky/
pnpm-lock.yaml
18 changes: 17 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,15 @@
"repository": "https://github.com/fleekxyz/fleek-proxy",
"homepage": "https://github.com/fleekxyz/fleek-proxy#readme",
"license": "MIT",
"keywords": ["proxy", "router", "gateway", "api", "fleek", "edge", "serverless"],
"keywords": [
"proxy",
"router",
"gateway",
"api",
"fleek",
"edge",
"serverless"
],
"scripts": {
"build": "tsc",
"lint": "eslint 'src/**/*.{js,ts}'",
Expand All @@ -17,6 +25,13 @@
"test": "jest",
"prepare": "husky"
},
"lint-staged": {
"*": [
"prettier . --check",
"eslint",
"jest"
]
},
"devDependencies": {
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
Expand All @@ -25,6 +40,7 @@
"eslint": "^9.2.0",
"husky": "^9.0.11",
"jest": "^29.7.0",
"lint-staged": "^15.2.2",
"prettier": "^3.2.5",
"ts-jest": "^29.1.2",
"typescript": "^5.4.5",
Expand Down
Loading

0 comments on commit e3bf588

Please sign in to comment.