This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(app) { | |
var blockNodes, complexComputation, | |
findNodes, hiddenNodes, hide; | |
complexComputation = function () { | |
/* do some complex stuff and return a node */ | |
}; | |
findNodes = function(callback) { | |
var nodes = [], node; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
files=$(git diff --diff-filter ACMR --cached --name-only | grep '\.js$') | |
FAILED=0 | |
for file in $files; do | |
git show :$file | $(npm bin)/eslint --stdin --stdin-filename $file | |
EXIT_CODE=$? |