lint.js (422B)
1 var blint = require("blint"); 2 3 ["mode", "lib", "addon", "keymap"].forEach(function(dir) { 4 blint.checkDir(dir, { 5 browser: true, 6 allowedGlobals: ["CodeMirror", "define", "test", "requirejs"], 7 ecmaVersion: 5, 8 tabs: dir == "lib" 9 }); 10 }); 11 12 ["src"].forEach(function(dir) { 13 blint.checkDir(dir, { 14 browser: true, 15 ecmaVersion: 6, 16 semicolons: false 17 }); 18 }); 19 20 module.exports = {ok: blint.success()};