JSLint directive

Dump your awesome code belowEnter your code in the box below

Name:
Size:
Last modified:

Options

  • Assume...

    • Brogrammer

      Select this option if the 'F' word is an important part of your life!

      Warning: foul language!

    • No mouse (this page will reload)

      Select this option to make this page easier to navigate without a mouse.

      This will also remove navigation links from tabbing navigation.

    • console, alert, ...

      Select this option to predefine globals that are useful in development but that should be avoided in production, such as console and alert. It has the same effect as this comment:

      /*global alert: false, confirm: false, console: false, Debug: false, opera: false, prompt: false, WSH: false */

    • a browser

      Select this option to predefine the standard global properties that are supplied by web browsers, such as document and addEventListener. It has the same effect as this comment:

      /*global clearInterval: false, clearTimeout: false, document: false, event: false, frames: false, history: false, Image: false, location: false, name: false, navigator: false, Option: false, parent: false, screen: false, setInterval: false, setTimeout: false, window: false, XMLHttpRequest: false */

    • Node.js

      Select this option to predefine globals that are used in the Node.js environment. It has the same effect as this comment:

      /*global Buffer: false, clearInterval: false, clearTimeout: false, console: false, exports: false, global: false, module: false, process: false, querystring: false, require: false, setInterval: false, setTimeout: false, __filename: false, __dirname: false */

    • Rhino

      Select this option to predefine the global properties provided by the Rhino environment. It has the same effect as this statement:

      /*global defineClass: false, deserialize: false, gc: false, help: false, load: false, loadClass: false, print: false, quit: false, readFile: false, readUrl: false, runCommand: false, seal: false, serialize: false, spawn: false, sync: false, toint32: false, version: false */

    • a Yahoo Widget

      Select this option to predefine the global properties provided by the Yahoo! Widgets environment. It has the same effect as this statement:

      /*global alert: true, animator: true, appleScript: true, beep: true, bytesToUIString: true, Canvas: true, chooseColor: true, chooseFile: true, chooseFolder: true, closeWidget: true, COM: true, convertPathToHFS: true, convertPathToPlatform: true, CustomAnimation: true, escape: true, FadeAnimation: true, filesystem: true, Flash: true, focusWidget: true, form: true, FormField: true, Frame: true, HotKey: true, Image: true, include: true, isApplicationRunning: true, iTunes: true, konfabulatorVersion: true, log: true, md5: true, MenuItem: true, MoveAnimation: true, openURL: true, play: true, Point: true, popupMenu: true, preferenceGroups: true, preferences: true, print: true, prompt: true, random: true, Rectangle: true, reloadWidget: true, ResizeAnimation: true, resolvePath: true, resumeUpdates: true, RotateAnimation: true, runCommand: true, runCommandInBg: true, saveAs: true, savePreferences: true, screen: true, ScrollBar: true, showWidgetPreferences: true, sleep: true, speak: true, Style: true, suppressUpdates: true, system: true, tellWidget: true, Text: true, TextArea: true, Timer: true, unescape: true, updateNow: true, URL: true, Web: true, widget: true, Window: true, XMLDOM: true, XMLHttpRequest: true, yahooCheckLogin: true, yahooLogin: true, yahooLogout: true */

    • Windows

      Select this option to predefine the global properties provided by Microsoft Windows. It has the same effect as this statement:

      /*global ActiveXObject: false, CScript: false, Debug: false, Enumerator: false, System: false, VBArray: false, WScript: false, WSH: false */

    • Stop on first error

      Select true if the scan should stop on first error.

    • Safe Subset

      Select true if the safe subset rules are enforced. These rules are used by ADsafe. It enforces the safe subset rules but not the widget structure rules. safe is used with the option object, but not with the /*jslint */ comment.

    • Verify ADsafe

      Select true if ADsafe rules should be enforced. See http://www.ADsafe.org/. adsafe is used with the option object, but not with the /*jslint */ comment.

  • Tolerate...

    • bitwise operators

      Select true if bitwise operators should be allowed:

      More about this option... bitwise operators

    • continue

      Select true if the continue statement should be allowed.

    • debugger statements

      Select true if debugger statements should be allowed. Set this option to false before going into production.

    • == and !=

      Select true if the == and != operators should be tolerated.

      more about this option... == and !=

    • ES5 syntax

      Select true if ES5 syntax should be allowed. It is likely that programs using this option will produce syntax errors on ES3 systems.

    • eval

      Select true if eval should be allowed.

      The eval function (and its relatives, Function, setTimeout, and setInterval) provide access to the JavaScript compiler. This is sometimes necessary, but in most cases it indicates the presence of extremely bad coding. The eval function is the most misused feature of JavaScript.

    • unfiltered for in

      Select true if unfiltered for in statements should be allowed.

      More about this option... unfiltered for in

    • uncapitalized constructors

      Select true if Initial Caps with constructor functions is optional.

      More about this option... uncapitalized constructors

    • dangling _ in identifiers

      Select true if names should not be checked for initial or trailing underbars.

    • ++ and --

      Select true if ++ and -- should be allowed.

      More about this option... ++ and --

    • . and [^...] in /RegExp/

      Select true if . and [^...] should be allowed in RegExp literals. They match more material than might be expected, allowing attackers to confuse applications. These forms should not be used when validating in secure applications.

  • Tolerate...

    • misordered definitions

      Select true if variables and functions need not be declared before used.

      More about this option... misordered definitions

    • unused parameters

      Select true if warnings should not be given for unused parameters.

    • missing 'use strict' pragma

      Select true

    • stupidity

      Select true if the ES5 'use strict'; pragma is not required. Do not use this pragma unless you know what you are doing.

    • inefficient subscripting

      Select true if subscript notation may be used for expressions better expressed in dot notation.

    • many var statements per function

      Select true if multiple var statement per function should be allowed.

      More about this option... var statements

    • messy white space

      Select true if strict whitespace rules should be ignored.

    • CSS workarounds

      Select true if CSS workarounds should be tolerated.

      More about this option... css

    • HTML case

      Select true if uppercase HTML should be allowed.

    • HTML event handlers

      Select true if HTML event handlers should be allowed.

      More about this option... HTML event handlers

    • HTML fragments

      Select true if HTML fragments should be allowed.

      More about this option... HTML fragments

  • More f**king options! More options




    "," separated

No red shit? Get a beer, tell your buddy, celebrate!
A lot of red shit? No sweat bro! Your code may be too badass for this tool!

Warning! JSLint will hurt your feelings™