aboutsummaryrefslogtreecommitdiffstats
path: root/.nano-staged.json
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2022-01-10 01:43:23 +0100
committerLibravatar Kristóf Marussy <kristof@marussy.com>2022-01-10 11:09:08 +0100
commit526dc3ee63d308aef1ba2c75cd7a9cc4c9577a73 (patch)
treebb0f3c7365b90b007e48b9b9f209aec08138ada5 /.nano-staged.json
parentbuild: Add eslint-plugin-security (diff)
downloadsophie-526dc3ee63d308aef1ba2c75cd7a9cc4c9577a73.tar.gz
sophie-526dc3ee63d308aef1ba2c75cd7a9cc4c9577a73.tar.zst
sophie-526dc3ee63d308aef1ba2c75cd7a9cc4c9577a73.zip
build: Add pre-commit hook
Run lint and tests on source files changes. Signed-off-by: Kristóf Marussy <kristof@marussy.com>
Diffstat (limited to '.nano-staged.json')
-rw-r--r--.nano-staged.json7
1 files changed, 7 insertions, 0 deletions
diff --git a/.nano-staged.json b/.nano-staged.json
new file mode 100644
index 0000000..2a8c905
--- /dev/null
+++ b/.nano-staged.json
@@ -0,0 +1,7 @@
1{
2 "*.{cjs,js,jsx,ts,tsx}": [
3 "yarn lint:precommit",
4 "yarn test --findRelatedTests"
5 ],
6 "*.json": "prettier --write"
7}