Skip to content

Commit

Permalink
fix: lint-staged issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jayeshbhole-rp committed Jul 24, 2024
1 parent 486583a commit b217bb8
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 11 deletions.
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 2 additions & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
19 changes: 10 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,18 @@
"build:solana": "pnpm --filter @tangled/solana-react build",
"build:react": "pnpm --filter @tangled/react build",
"build:example": "pnpm --filter @tangled/react-example build",
"prepare": "husky",
"prepare": "husky && husky install",
"lint": "eslint packages",
"lint:fix": "eslint packages --fix",
"format": "prettier --check . --config ./prettier.config.cjs",
"format:fix": "prettier --write . --config ./prettier.config.cjs"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"prettier --write"
],
"*.{md,css}": "prettier --write"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"cpy-cli": "^5.0.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-react-app": "^7.0.1",
"eslint-plugin-flowtype": "^8.0.3",
Expand All @@ -48,5 +43,11 @@
"@ledgerhq/hw-transport-webhid": "6.27.1"
}
},
"packageManager": "[email protected]"
}
"packageManager": "[email protected]",
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"prettier --write . --config ./prettier.config.cjs"
],
"*.{md,css,json}": "prettier --write . --config ./prettier.config.cjs"
}
}
3 changes: 3 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 b217bb8

Please sign in to comment.