Skip to content

Commit

Permalink
Added lint-staged
Browse files Browse the repository at this point in the history
Fixes #144
  • Loading branch information
tombeckenham committed Nov 7, 2024
1 parent 049622d commit cf50756
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
yarn format
yarn lint
npx lint-staged
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@
"husky": "^9.1.6",
"i18next": "^20.3.2",
"jest": "^27.4.7",
"lint-staged": ">=10",
"os-browserify": "^0.3.0",
"path-browserify": "^1.0.1",
"pinst": "^3.0.0",
Expand Down Expand Up @@ -206,5 +207,10 @@
},
"keywords": [],
"author": "",
"license": "LGPL"
"license": "LGPL",
"lint-staged": {
"*.{ts,tsx}": [
"eslint --cache"
]
}
}

0 comments on commit cf50756

Please sign in to comment.