lint.js 422 B

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