(rebase): A rescript linter!
This commit is contained in:
parent
00e98766cb
commit
518f082c53
|
@ -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 ]
|
||||
|
|
|
@ -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": [
|
||||
|
|
Loading…
Reference in New Issue
Block a user