core/api/soft/CodeMirror/test/lint.js

21 lines
422 B
JavaScript
Raw Normal View History

2023-07-12 20:02:20 +05:00
var blint = require("blint");
["mode", "lib", "addon", "keymap"].forEach(function(dir) {
blint.checkDir(dir, {
browser: true,
allowedGlobals: ["CodeMirror", "define", "test", "requirejs"],
ecmaVersion: 5,
tabs: dir == "lib"
});
});
["src"].forEach(function(dir) {
blint.checkDir(dir, {
browser: true,
ecmaVersion: 6,
semicolons: false
});
});
module.exports = {ok: blint.success()};