Formatter Validator Minifier Escape / Unescape JSON ↔ String JSON ↔ YAML JSON → CSV NDJSON / JSON Lines JSON → Types JSON ↔ XML JSON Diff JSON Patch Canonicalize (RFC 8785) Schema Validator Schema Generator JSONPath Tester JWT Decoder JSON Errors Schemas More Tools
JSONTools / Schema registry / .jshintrc
Schema registry

.jshintrc

JSHint configuration file

.jshintrc

Check your file against this schema

Opens the validator with this schema already loaded. Paste your .jshintrc and it validates in your browser — nothing is uploaded.

Validate a .jshintrc → View raw schema

Fields

Generated directly from the schema, following local $refs, to two levels of nesting.

Field Type Description
bitwisebooleanProhibit the use of bitwise operators (&, |, ^, etc.)
default: false
curlybooleanRequires you to always put curly braces around blocks in loops and conditionals
default: false
eqeqeqbooleanProhibits the use of `==` and `!=` in favor of `===` and `!==`
default: false
esversionintegerThe ECMAScript version to which the code must adhere
default: 5
one of: 3, 5, 6, 7, 8, 9 … (+2)
forinbooleanRequires all `for in` loops to filter object's items with obj.hasOwnProperty()
default: false
freezebooleanProhibits overwriting prototypes of native objects such as Array, Date and so on
default: false
funcscopebooleanSuppresses warnings about declaring variables inside of control structures while accessing them later from the outside
default: false
futurehostilebooleanEnables warnings about the use of identifiers which are defined in future versions of JavaScript
default: false
iteratorbooleanSuppresses warnings about the __iterator__ property.
default: false
latedefenumProhibits the use of a variable before it was defined
default: false
one of: true, false, "nofunc"
leanswitchbooleanProhibits unnecessary clauses within `switch` statements
default: false
maxcomplexityanyOfMax cyclomatic complexity per function
default: false
maxdepthanyOfMax depth of nested blocks
default: false
maxerrintegerMaximum amount of warnings JSHint will produce before giving up
default: 50
maxparamsanyOfMax number of formal parameters allowed per function
maxstatementsanyOfMax number statements per function
default: false
noargbooleanProhibits the use of `arguments.caller` and `arguments.callee`
default: false
nocommabooleanProhibits the use of the comma operator
default: false
nonbspbooleanWarns about `non-breaking whitespace` characters
default: false
nonewbooleanProhibits the use of constructors for side-effects (without assignment)
default: false
notypeofbooleanSuppresses warnings about invalid `typeof`operator values
default: false
noreturnawaitbooleanAsync 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
regexpubooleanEnables warnings for regular expressions which do not include the 'u' flag
default: false
shadowanyOfSuppresses warnings about variable shadowing. i.e. declaring a variable that had been already declared somewhere in the outer scope
default: false
singleGroupsbooleanProhibits the use of the grouping operator when it is not strictly required.
default: false
strictanyOfRequires all code to run in ES5 strict mode
default: false
trailingcommabooleanWarns when a comma is not placed after the last element in an array or object literal
default: false
undefbooleanProhibits the use of explicitly undeclared variables
default: false
unusedanyOfWarns when you define and never use your variables
default: false
varstmtbooleanForbids the use of VariableStatements (`var`) in favor of `let` and `const`
default: false
asibooleanSuppresses warnings about missing semicolons
default: false
bossbooleanSuppresses warnings about the use of assignments in cases where comparisons are expected
default: false
debugbooleanSuppresses warnings about the `debugger` statements in your code
default: false
elisionbooleanTells JSHint that your code uses ES3 array elision elements, or empty elements
default: false
eqnullbooleanSuppresses warnings about `== null` comparisons
default: false
evilbooleanSuppresses warnings about the use of `eval`
default: false
exprbooleanSuppresses warnings about the use of expressions where normally you would expect to see assignments or function calls
default: false
lastsemicbooleanSuppresses warnings about missing semicolons, but only when the semicolon is omitted for the last statement in a one-line block
default: false
loopfuncbooleanSuppresses warnings about functions inside of loops
default: false
mozbooleanTells JSHint that your code uses Mozilla JavaScript extensions
default: false
noyieldbooleanSuppresses warnings about generator functions with no `yield` statement in them
default: false
plusplusbooleanProhibits the use of `++` and `--`
default: false
protobooleanSuppresses warnings about the `__proto__` property
default: false
scripturlbooleanSuppresses warnings about the use of script-targeted URLs
default: false
supernewbooleanSuppresses warnings about constructions like `new function () { ... };` and `new Object;`
default: false
validthisbooleanSuppresses warnings about possible strict violations when the code is running in strict mode and you use `this` in a non-constructor function
default: false
withstmtbooleanSuppresses warnings about the use of the `with` statement
default: false
browserboolean[Environment] Web Browser (window, document, etc)
default: false
browserifyboolean[Environment] Browserify
default: false
couchboolean[Environment] CouchDB
default: false
develboolean[Environment] Development/debugging (alert, confirm, etc)
default: false
dojoboolean[Environment] Dojo Toolkit
default: false
jasmineboolean[Environment] Jasmine unit testing framework
default: false
jqueryboolean[Environment] jQuery
default: false
mochaboolean[Environment] Mocha unit testing framework
default: false
moduleboolean[Environment] ES6 module
default: false
mootoolsboolean[Environment] MooTools
default: false
nodeboolean[Environment] Node.js
default: false
nonstandardboolean[Environment] Widely adopted globals (escape, unescape, etc)
default: false
phantomboolean[Environment] PhantomJS runtime environment
default: false
prototypejsboolean[Environment] Prototype JavaScript framework
default: false
rhinoboolean[Environment] Rhino
default: false
shelljsboolean[Environment] Defines globals exposed by the ShellJS library
default: false
typedboolean[Environment] Defines globals for typed array constructors
default: false
workerboolean[Environment] Web Workers
default: false
wshboolean[Environment] Windows Scripting Host
default: false
yuiboolean[Environment] Yahoo User Interface
default: false
globalsobjectSpecify a white list of global variables that are not formally defined in the source code
extendsstringSpecify the path to another configuration file to use as a base, relative to the current file
overridesobjectSpecify the options that should only be applied to files matching a given path pattern

What we found in this schema

Specification sections for the keywords in this schema

Keyword Document Section
$idJSON Schema Core, draft 2020-12§8.2.1 — The "$id" Keyword
$schemaJSON Schema Core, draft 2020-12§8.1.1 — "$schema"
additionalPropertiesJSON Schema Core, draft 2020-12§10.3.2.3 — "additionalProperties"
anyOfJSON Schema Core, draft 2020-12§10.2.1.2 — "anyOf"
defaultJSON Schema Validation, draft 2020-12§9.2 — "default"
descriptionJSON Schema Validation, draft 2020-12§9.1 — "title" and "description"
enumJSON Schema Validation, draft 2020-12§6.1.2 — "enum"
propertiesJSON Schema Core, draft 2020-12§10.3.2.1 — "properties"
typeJSON Schema Validation, draft 2020-12§6.1.1 — "type"

Documents

Attribution

This schema comes from SchemaStore, distributed under the Apache License 2.0. Copyright 2015–present Mads Kristensen and contributors. View the original file. The field table and audit on this page are generated by JSONTools.tools; the schema itself is unmodified.

← All schemas