Skip to content

Commit

Permalink
chore: lint before committing
Browse files Browse the repository at this point in the history
  • Loading branch information
Aeolun committed Feb 5, 2024
1 parent 0c9808a commit 8070fb6
Show file tree
Hide file tree
Showing 4 changed files with 199 additions and 3 deletions.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/.bin/lint-staged
4 changes: 2 additions & 2 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
"indentWidth": 2,
"lineWidth": 120,
"include": ["src/**/*.ts"],
"ignore": ["src/generated/**/*.d.ts"]
"ignore": ["src/generated/**/*.ts"]
},
"linter": {
"include": ["src/**/*.ts"],
"ignore": ["src/generated/**/*.d.ts"]
"ignore": ["src/generated/**/*.ts"]
},
"files": {
"maxSize": 2097152
Expand Down
10 changes: 9 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
"type": "git",
"url": "[email protected]:Aeolun/ts-jira-client.git"
},
"lint-staged": {
"*.ts": [
"biome lint"
]
},
"engine": {
"node": ">=18.0.0"
},
Expand All @@ -43,7 +48,8 @@
"format:fix": "biome format --write .",
"test": "vitest",
"prepublishOnly": "npm run build && npm run docs-build",
"release": "semantic-release"
"release": "semantic-release",
"prepare": "husky"
},
"devDependencies": {
"@biomejs/biome": "^1.5.3",
Expand All @@ -52,6 +58,8 @@
"@types/node": "^20.11.16",
"api-spec-converter": "^2.12.0",
"axios-mock-adapter": "^1.22.0",
"husky": "^9.0.10",
"lint-staged": "^15.2.1",
"openapi-typescript": "^6.7.4",
"semantic-release": "^23.0.0",
"tsx": "^4.7.0",
Expand Down
187 changes: 187 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8070fb6

Please sign in to comment.