(rebase): A rescript linter!

This commit is contained in:
Quinn Dougherty 2022-04-11 00:06:35 -04:00
parent 00e98766cb
commit 518f082c53
2 changed files with 2 additions and 1 deletions

View File

@ -8,7 +8,7 @@ errors=false
for file in $files
do
current=`cat $file`
linted=`echo "${current}" | ./node_modules/.bin/rescript format -stdin .res`
linted=`echo "${current}" | rescript format -stdin .res`
diff=`diff <(echo $current) <(echo $linted)`
if [ ${#diff} -gt 0 ]

View File

@ -11,6 +11,7 @@
"test": "jest",
"test:watch": "jest --watchAll",
"coverage": "rm -f *.coverage; yarn clean; BISECT_ENABLE=yes yarn build; yarn test; bisect-ppx-report html",
"lint": "./lint.sh",
"all": "yarn build && yarn bundle && yarn test"
},
"keywords": [