Skip to content

Commit

Permalink
chore: lint only staged files
Browse files Browse the repository at this point in the history
  • Loading branch information
dylancom committed Apr 9, 2022
1 parent 1dc9dae commit 4939238
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
1 change: 0 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@
. "$(dirname "$0")/_/husky.sh"

yarn lint-staged
yarn tsc --noEmit
7 changes: 7 additions & 0 deletions lint-staged.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
"src/**/*.{js,jsx,ts,tsx,json}": [
"eslint --fix --max-warnings 0",
"prettier --write",
],
"src/**/*.{ts,tsx}": () => "tsc --noEmit",
};
6 changes: 0 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,6 @@
"build-storybook": "build-storybook",
"prepare": "husky install"
},
"lint-staged": {
"src/**/*.{js,jsx,ts,tsx,json}": [
"eslint --fix --max-warnings 0",
"prettier --write"
]
},
"dependencies": {
"@babel/runtime": "^7.15.4",
"@bitcoin-design/bitcoin-icons-react": "^0.1.9",
Expand Down

0 comments on commit 4939238

Please sign in to comment.