Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

No-ceremony JavaScript linter

License

NotificationsYou must be signed in to change notification settings

marijnh/blint

Repository files navigation

Simple JavaScript linter.

varblint=require("blint");blint.checkFile("foo.js");blint.checkDir("src");

When the linter encounters problems, it will write something tostdout, and set a flag, which you can retrieve withblint.success().

process.exit(blint.success() ?0 :1);

BothcheckFile andcheckDir take a second optional optionsargument. These are the defaults:

vardefaultOptions={// Version of the language to parseecmaVersion:6,// Whitelist globals exported by the browserbrowser:false,// Allow tabstabs:false,// Allow trailing whitespacetrailingSpace:false,// True to require semicolons, false to disallow themsemicolons:null,// Allow trailing commastrailingCommas:true,// Allow unquoted properties that are reserved wordsreservedProps:true,// Whether to allow console.* expressionsconsole:false,// An array of global variables to allowallowedGlobals:[],// Allow the code to declare top-level variablesdeclareGlobals:true};

Released under an MIT license.

About

No-ceremony JavaScript linter

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp