wordpress-theme-openmamba/scripts/codemirror/test/lint.js

21 lines
436 B
JavaScript
Raw Permalink Normal View History

2019-07-28 14:57:52 +02:00
var blint = require("blint");
["mode", "lib", "addon", "keymap"].forEach(function(dir) {
blint.checkDir(dir, {
browser: true,
2020-10-02 13:05:50 +02:00
allowedGlobals: ["CodeMirror", "define", "test", "requirejs", "globalThis"],
2019-07-28 14:57:52 +02:00
ecmaVersion: 5,
tabs: dir == "lib"
});
});
["src"].forEach(function(dir) {
blint.checkDir(dir, {
browser: true,
ecmaVersion: 6,
semicolons: false
});
});
module.exports = {ok: blint.success()};