Skip to content

Commit

Permalink
Merge pull request #3 from practo/add-sniff/eslint
Browse files Browse the repository at this point in the history
Added es-lint sniff to fab polish
  • Loading branch information
justjkk committed May 10, 2016
2 parents 69f6362 + 08b8353 commit 9a0ab7f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions fabpolish/contrib.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,13 @@ def check_image_edited():
def composer_validate():
info('Running composer validate...')
return local('composer validate')


@sniff(severity='major', timing='fast')
def run_eslint():
info('Running ESLint...')
return local(
"git ls-files | "
"grep '\.js$' | "
"xargs ./node_modules/eslint/bin/eslint.js"
)

0 comments on commit 9a0ab7f

Please sign in to comment.