Browse Source

chore(devx): Add linting step.

jackyalcine 4 months ago
parent
commit
d827c0925a
Signed by: Jacky Alciné <yo@jacky.wtf> GPG Key ID: 537A4F904B15268D
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      package.json

+ 3
- 2
package.json View File

@@ -7,7 +7,8 @@
7 7
     "themes:build": "make -C priv/themes all",
8 8
     "parcel:watch": "scripts/dev-watch.sh",
9 9
     "parcel:build": "scripts/prod-build.sh",
10
-    "test": "jest"
10
+    "test": "jest",
11
+    "lint": "eslint --fix"
11 12
   },
12 13
   "repository": {
13 14
     "type": "git",
@@ -15,7 +16,7 @@
15 16
   },
16 17
   "husky": {
17 18
     "hooks": {
18
-      "pre-commit": "mix format && mix inch --no-protected"
19
+      "pre-commit": "mix format && mix inch --no-protected && npm run lint"
19 20
     }
20 21
   },
21 22
   "author": "Jacky Alciné <yo@jacky.wtf> (https://jacky.wtf/)",

Loading…
Cancel
Save