lint.js 480 B

123456789101112131415161718192021
  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", "globalThis", "WeakSet"],
  6. ecmaVersion: 5,
  7. tabs: dir == "lib"
  8. });
  9. });
  10. ["src"].forEach(function(dir) {
  11. blint.checkDir(dir, {
  12. browser: true,
  13. allowedGlobals: ["WeakSet"],
  14. ecmaVersion: 6,
  15. semicolons: false
  16. });
  17. });
  18. module.exports = {ok: blint.success()};