cdn-experiments/ccp/js/codemirror-5.65.2/test/lint.js

22 lines
480 B
JavaScript
Raw Normal View History

2022-03-25 15:39:39 +01:00
var blint = require("blint");
["mode", "lib", "addon", "keymap"].forEach(function(dir) {
blint.checkDir(dir, {
browser: true,
allowedGlobals: ["CodeMirror", "define", "test", "requirejs", "globalThis", "WeakSet"],
ecmaVersion: 5,
tabs: dir == "lib"
});
});
["src"].forEach(function(dir) {
blint.checkDir(dir, {
browser: true,
allowedGlobals: ["WeakSet"],
ecmaVersion: 6,
semicolons: false
});
});
module.exports = {ok: blint.success()};