aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore4
-rw-r--r--.husky/.gitignore1
-rwxr-xr-x.husky/pre-commit4
-rw-r--r--package-lock.json6
-rw-r--r--package.json4
5 files changed, 16 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index afef829..79f578b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,8 +8,8 @@ tmp
8.env 8.env
9 9
10# The development sqlite file 10# The development sqlite file
11database/development.sqlite 11data*/development.sqlite
12database/adonis.sqlite 12data*/adonis.sqlite
13 13
14# Uploaded recipes 14# Uploaded recipes
15recipes/ 15recipes/
diff --git a/.husky/.gitignore b/.husky/.gitignore
new file mode 100644
index 0000000..31354ec
--- /dev/null
+++ b/.husky/.gitignore
@@ -0,0 +1 @@
_
diff --git a/.husky/pre-commit b/.husky/pre-commit
new file mode 100755
index 0000000..20d0d06
--- /dev/null
+++ b/.husky/pre-commit
@@ -0,0 +1,4 @@
1#!/bin/sh
2. "$(dirname "$0")/_/husky.sh"
3
4npm run lint
diff --git a/package-lock.json b/package-lock.json
index 6680dae..f7d1388 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -3122,6 +3122,12 @@
3122 } 3122 }
3123 } 3123 }
3124 }, 3124 },
3125 "husky": {
3126 "version": "6.0.0",
3127 "resolved": "https://registry.npmjs.org/husky/-/husky-6.0.0.tgz",
3128 "integrity": "sha512-SQS2gDTB7tBN486QSoKPKQItZw97BMOd+Kdb6ghfpBc0yXyzrddI0oDV5MkDAbuB4X2mO3/nj60TRMcYxwzZeQ==",
3129 "dev": true
3130 },
3125 "iconv-lite": { 3131 "iconv-lite": {
3126 "version": "0.4.24", 3132 "version": "0.4.24",
3127 "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", 3133 "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
diff --git a/package.json b/package.json
index 85a2082..6fc32a1 100644
--- a/package.json
+++ b/package.json
@@ -10,6 +10,7 @@
10 "node-gyp": "^8.0" 10 "node-gyp": "^8.0"
11 }, 11 },
12 "scripts": { 12 "scripts": {
13 "prepare": "husky install",
13 "start": "node server.js", 14 "start": "node server.js",
14 "test": "node ace test", 15 "test": "node ace test",
15 "lint": "eslint --quiet --fix ./" 16 "lint": "eslint --quiet --fix ./"
@@ -53,7 +54,8 @@
53 "eslint-plugin-import": "^2.20.2", 54 "eslint-plugin-import": "^2.20.2",
54 "eslint-plugin-jsx-a11y": "^6.2.3", 55 "eslint-plugin-jsx-a11y": "^6.2.3",
55 "eslint-plugin-react": "^7.19.0", 56 "eslint-plugin-react": "^7.19.0",
56 "eslint-plugin-react-hooks": "^1.7.0" 57 "eslint-plugin-react-hooks": "^1.7.0",
58 "husky": "^6.0.0"
57 }, 59 },
58 "autoload": { 60 "autoload": {
59 "App": "./app" 61 "App": "./app"