(rebase): A rescript linter!
This commit is contained in:
parent
00e98766cb
commit
518f082c53
|
@ -8,7 +8,7 @@ errors=false
|
||||||
for file in $files
|
for file in $files
|
||||||
do
|
do
|
||||||
current=`cat $file`
|
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)`
|
diff=`diff <(echo $current) <(echo $linted)`
|
||||||
|
|
||||||
if [ ${#diff} -gt 0 ]
|
if [ ${#diff} -gt 0 ]
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
"test": "jest",
|
"test": "jest",
|
||||||
"test:watch": "jest --watchAll",
|
"test:watch": "jest --watchAll",
|
||||||
"coverage": "rm -f *.coverage; yarn clean; BISECT_ENABLE=yes yarn build; yarn test; bisect-ppx-report html",
|
"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"
|
"all": "yarn build && yarn bundle && yarn test"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
|
Loading…
Reference in New Issue
Block a user