annotate api functions with types

This commit is contained in:
Ivan Tivonenko
2015-08-06 02:23:05 +03:00
parent 5ac1bcc414
commit 5cb63a258c
8 changed files with 272 additions and 32 deletions

View File

@@ -11,7 +11,7 @@ typecheck() {
lint() {
REPO_URL="https://raw.githubusercontent.com/ripple/javascript-style-guide"
curl "$REPO_URL/es6/eslintrc" > ./eslintrc
echo "plugins: [flowtype]" >> ./eslintrc
echo "parser: babel-eslint" >> ./eslintrc
node_modules/.bin/eslint -c ./eslintrc $(git --no-pager diff --name-only -M100% --diff-filter=AM --relative $(git merge-base FETCH_HEAD origin/HEAD) FETCH_HEAD | grep "\.js$")
}