Skip to content

Instantly share code, notes, and snippets.

@yurenju
Created September 9, 2014 03:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save yurenju/3f51bd613d3237dd5c44 to your computer and use it in GitHub Desktop.
Save yurenju/3f51bd613d3237dd5c44 to your computer and use it in GitHub Desktop.
var fs = require('fs');
var path = require('path');
fs.readFileSync('.jshintignore', {encoding: 'UTF-8'}).split('\n').forEach(function(line) {
if (line && line.indexOf('.js') !== -1) {
if (!fs.existsSync(path.join(process.cwd(), line))) {
console.log('> ' + line);
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment