Type object
File match .jshintrc
Schema URL https://catalog.lintel.tools/schemas/schemastore/jshintrc/latest.json
Source https://www.schemastore.org/jshintrc.json

Validate with Lintel

npx @lintel/lintel check
Type: object

Properties

bitwise boolean

Prohibit the use of bitwise operators (&, |, ^, etc.)

Default: false
curly boolean

Requires you to always put curly braces around blocks in loops and conditionals

Default: false
eqeqeq boolean

Prohibits the use of == and != in favor of === and !==

Default: false
esversion integer

The ECMAScript version to which the code must adhere

Default: 5
Values: 3 5 6 7 8 9 10 11
forin boolean

Requires all for in loops to filter object's items with obj.hasOwnProperty()

Default: false
freeze boolean

Prohibits overwriting prototypes of native objects such as Array, Date and so on

Default: false
funcscope boolean

Suppresses warnings about declaring variables inside of control structures while accessing them later from the outside

Default: false
futurehostile boolean

Enables warnings about the use of identifiers which are defined in future versions of JavaScript

Default: false
iterator boolean

Suppresses warnings about the iterator property.

Default: false
latedef enum

Prohibits the use of a variable before it was defined

Default: false
Values: true false "nofunc"
leanswitch boolean

Prohibits unnecessary clauses within switch statements

Default: false
maxcomplexity boolean | integer

Max cyclomatic complexity per function

Default: false
maxdepth boolean | integer

Max depth of nested blocks

Default: false
maxerr integer

Maximum amount of warnings JSHint will produce before giving up

Default: 50
maxparams boolean | integer

Max number of formal parameters allowed per function

maxstatements boolean | integer

Max number statements per function

Default: false
noarg boolean

Prohibits the use of arguments.caller and arguments.callee

Default: false
nocomma boolean

Prohibits the use of the comma operator

Default: false
nonbsp boolean

Warns about non-breaking whitespace characters

Default: false
nonew boolean

Prohibits the use of constructors for side-effects (without assignment)

Default: false
notypeof boolean

Suppresses warnings about invalid typeofoperator values

Default: false
noreturnawait boolean

Async functions resolve on their return value. In most cases, this makes returning the result of an AwaitExpression (which is itself a Promise instance) unnecessary

Default: false
regexpu boolean

Enables warnings for regular expressions which do not include the 'u' flag

Default: false
shadow boolean | string

Suppresses warnings about variable shadowing. i.e. declaring a variable that had been already declared somewhere in the outer scope

Default: false
Values: true false "inner" "outer"
singleGroups boolean

Prohibits the use of the grouping operator when it is not strictly required.

Default: false
strict boolean | string

Requires all code to run in ES5 strict mode

Default: false
Values: true false "implied" "global" "func"
trailingcomma boolean

Warns when a comma is not placed after the last element in an array or object literal

Default: false
undef boolean

Prohibits the use of explicitly undeclared variables

Default: false
unused boolean | string

Warns when you define and never use your variables

Default: false
Values: true false "vars" "strict"
varstmt boolean

Forbids the use of VariableStatements (var) in favor of let and const

Default: false
asi boolean

Suppresses warnings about missing semicolons

Default: false
boss boolean

Suppresses warnings about the use of assignments in cases where comparisons are expected

Default: false
debug boolean

Suppresses warnings about the debugger statements in your code

Default: false
elision boolean

Tells JSHint that your code uses ES3 array elision elements, or empty elements

Default: false
eqnull boolean

Suppresses warnings about == null comparisons

Default: false
evil boolean

Suppresses warnings about the use of eval

Default: false
expr boolean

Suppresses warnings about the use of expressions where normally you would expect to see assignments or function calls

Default: false
lastsemic boolean

Suppresses warnings about missing semicolons, but only when the semicolon is omitted for the last statement in a one-line block

Default: false
loopfunc boolean

Suppresses warnings about functions inside of loops

Default: false
moz boolean

Tells JSHint that your code uses Mozilla JavaScript extensions

Default: false
noyield boolean

Suppresses warnings about generator functions with no yield statement in them

Default: false
plusplus boolean

Prohibits the use of ++ and --

Default: false
proto boolean

Suppresses warnings about the __proto__ property

Default: false
scripturl boolean

Suppresses warnings about the use of script-targeted URLs

Default: false
supernew boolean

Suppresses warnings about constructions like new function () { ... }; and new Object;

Default: false
validthis boolean

Suppresses warnings about possible strict violations when the code is running in strict mode and you use this in a non-constructor function

Default: false
withstmt boolean

Suppresses warnings about the use of the with statement

Default: false
browser boolean

[Environment] Web Browser (window, document, etc)

Default: false
browserify boolean

[Environment] Browserify

Default: false
couch boolean

[Environment] CouchDB

Default: false
devel boolean

[Environment] Development/debugging (alert, confirm, etc)

Default: false
dojo boolean

[Environment] Dojo Toolkit

Default: false
jasmine boolean

[Environment] Jasmine unit testing framework

Default: false
jquery boolean

[Environment] jQuery

Default: false
mocha boolean

[Environment] Mocha unit testing framework

Default: false
module boolean

[Environment] ES6 module

Default: false
mootools boolean

[Environment] MooTools

Default: false
node boolean

[Environment] Node.js

Default: false
nonstandard boolean

[Environment] Widely adopted globals (escape, unescape, etc)

Default: false
phantom boolean

[Environment] PhantomJS runtime environment

Default: false
prototypejs boolean

[Environment] Prototype JavaScript framework

Default: false
rhino boolean

[Environment] Rhino

Default: false
shelljs boolean

[Environment] Defines globals exposed by the ShellJS library

Default: false
typed boolean

[Environment] Defines globals for typed array constructors

Default: false
worker boolean

[Environment] Web Workers

Default: false
wsh boolean

[Environment] Windows Scripting Host

Default: false
yui boolean

[Environment] Yahoo User Interface

Default: false
globals Record<string, boolean>

Specify a white list of global variables that are not formally defined in the source code

extends string

Specify the path to another configuration file to use as a base, relative to the current file

overrides Record<string, object>

Specify the options that should only be applied to files matching a given path pattern