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 e0c4039
Show file tree
Hide file tree
Showing 4 changed files with 200 additions and 4 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
12 changes: 10 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@
"homepage": "https://github.com/aeolun/ts-jira-client",
"repository": {
"type": "git",
"url": "[email protected]:Aeolun/ts-jira-client.git"
"url": "git+ssh://[email protected]:Aeolun/ts-jira-client.git"
},
"lint-staged": {
"*.ts": [
"biome lint"
]
},
"engine": {
"node": ">=18.0.0"
Expand Down Expand Up @@ -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 e0c4039

Please sign in to comment.