forked from codemirror/codemirror5
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use blint for linting, rather than in-tree tool
(Blint is the in-tree tool factored into its own npm package.)
- Loading branch information
Showing
7 changed files
with
15 additions
and
2,284 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,3 @@ | ||
#!/usr/bin/env node | ||
|
||
var lint = require("../test/lint/lint"), | ||
path = require("path"); | ||
|
||
if (process.argv.length > 2) { | ||
lint.checkDir(process.argv[2]); | ||
} else { | ||
process.chdir(path.resolve(__dirname, "..")); | ||
lint.checkDir("lib"); | ||
lint.checkDir("mode"); | ||
lint.checkDir("addon"); | ||
lint.checkDir("keymap"); | ||
} | ||
|
||
process.exit(lint.success() ? 0 : 1); | ||
process.exit(require("../test/lint").ok ? 0 : 1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
var blint = require("blint"); | ||
|
||
["mode", "lib", "addon", "keymap"].forEach(function(dir) { | ||
blint.checkDir(dir, { | ||
browser: true, | ||
allowedGlobals: ["CodeMirror", "define", "test", "requirejs"], | ||
blob: "// CodeMirror, copyright (c) by Marijn Haverbeke and others\n// Distributed under an MIT license: http:\/\/codemirror.net\/LICENSE\n\n" | ||
}); | ||
}); | ||
|
||
module.exports = {ok: blint.success()}; |
Oops, something went wrong.