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

Validate with Lintel

npx @lintel/lintel check
Type: object

Properties

ecmaFeatures object

By default, ESLint supports only ECMAScript 5 syntax. You can override that setting to enable support for ECMAScript 6 as well as JSX by using configuration settings.

25 nested properties
arrowFunctions boolean
binaryLiterals boolean
blockBindings boolean
classes boolean
defaultParams boolean
destructuring boolean
experimentalObjectRestSpread boolean

Enables support for the experimental object rest/spread properties (IMPORTANT: This is an experimental feature that may change significantly in the future. It's recommended that you do not write rules relying on this functionality unless you are willing to incur maintenance cost when it changes.)

forOf boolean
generators boolean
globalReturn boolean

allow return statements in the global scope

impliedStrict boolean

enable global strict mode (if ecmaVersion is 5 or greater)

jsx boolean

enable JSX

modules boolean
objectLiteralComputedProperties boolean
objectLiteralDuplicateProperties boolean
objectLiteralShorthandMethods boolean
objectLiteralShorthandProperties boolean
octalLiterals boolean
regexUFlag boolean
regexYFlag boolean
restParams boolean
spread boolean
superInFunctions boolean
templateStrings boolean
unicodeCodePointEscapes boolean
env object

An environment defines global variables that are predefined.

25 nested properties
amd boolean

defines require() and define() as global variables as per the amd spec

applescript boolean

AppleScript global variables

atomtest boolean

Atom test helper globals

browser boolean

browser global variables

commonjs boolean

CommonJS global variables and CommonJS scoping (use this for browser-only code that uses Browserify/WebPack)

shared-node-browser boolean

Globals common to both Node and Browser

embertest boolean

Ember test helper globals

es6 boolean

enable all ECMAScript 6 features except for modules

greasemonkey boolean

GreaseMonkey globals

jasmine boolean

adds all of the Jasmine testing global variables for version 1.3 and 2.0

jest boolean

Jest global variables

jquery boolean

jQuery global variables

meteor boolean

Meteor global variables

mocha boolean

adds all of the Mocha test global variables

mongo boolean

MongoDB global variables

nashorn boolean

Java 8 Nashorn global variables

node boolean

Node.js global variables and Node.js scoping

phantomjs boolean

PhantomJS global variables

prototypejs boolean

Prototype.js global variables

protractor boolean

Protractor global variables

qunit boolean

QUnit global variables

serviceworker boolean

Service Worker global variables

shelljs boolean

ShellJS global variables

webextensions boolean

WebExtensions globals

worker boolean

web workers global variables

extends string | string[]
globals Record<string, string | boolean>

Set each global variable name equal to true to allow the variable to be overwritten or false to disallow overwriting.

noInlineConfig boolean

Prevent comments from changing config or rules

reportUnusedDisableDirectives boolean

Report unused eslint-disable comments

parser string
parserOptions object

The JavaScript language options to be supported

3 nested properties
ecmaFeatures object

By default, ESLint supports only ECMAScript 5 syntax. You can override that setting to enable support for ECMAScript 6 as well as JSX by using configuration settings.

25 nested properties
arrowFunctions boolean
binaryLiterals boolean
blockBindings boolean
classes boolean
defaultParams boolean
destructuring boolean
experimentalObjectRestSpread boolean

Enables support for the experimental object rest/spread properties (IMPORTANT: This is an experimental feature that may change significantly in the future. It's recommended that you do not write rules relying on this functionality unless you are willing to incur maintenance cost when it changes.)

forOf boolean
generators boolean
globalReturn boolean

allow return statements in the global scope

impliedStrict boolean

enable global strict mode (if ecmaVersion is 5 or greater)

jsx boolean

enable JSX

modules boolean
objectLiteralComputedProperties boolean
objectLiteralDuplicateProperties boolean
objectLiteralShorthandMethods boolean
objectLiteralShorthandProperties boolean
octalLiterals boolean
regexUFlag boolean
regexYFlag boolean
restParams boolean
spread boolean
superInFunctions boolean
templateStrings boolean
unicodeCodePointEscapes boolean
ecmaVersion enum

Set to 3, 5 (default), 6, 7, 8, 9, 10, 11, 12, 13, 14, or 15 to specify the version of ECMAScript syntax you want to use. You can also set it to 2015 (same as 6), 2016 (same as 7), 2017 (same as 8), 2018 (same as 9), 2019 (same as 10), 2020 (same as 11), 2021 (same as 12), 2022 (same as 13), 2023 (same as 14), or 2024 (same as 15) to use the year-based naming. You can also set "latest" to use the most recently supported version.

Default: 5
Values: 3 5 6 2015 7 2016 8 2017 9 2018 10 2019 11 2020 12 2021 13 2022 14 2023 15 2024 "latest"
sourceType enum

set to "script" (default), "commonjs", or "module" if your code is in ECMAScript modules

Default: "script"
Values: "script" "module" "commonjs"
plugins string[]

ESLint supports the use of third-party plugins. Before using the plugin, you have to install it using npm.

root boolean

By default, ESLint will look for configuration files in all parent folders up to the root directory. This can be useful if you want all of your projects to follow a certain convention, but can sometimes lead to unexpected results. To limit ESLint to a specific project, set this to true in a configuration in the root of your project.

ignorePatterns string | string[]
rules object

ESLint comes with a large number of rules. You can modify which rules your project uses either using configuration comments or configuration files.

All of: possibleErrors object, bestPractices object, strictMode object, variables object, nodeAndCommonJs object, stylisticIssues object, ecmaScript6 object, legacy object, Latest Partial Eslint Plugins Latest Partial Eslint Plugins
settings object

ESLint supports adding shared settings into configuration file. You can add settings object to ESLint configuration file and it will be supplied to every rule that will be executed. This may be useful if you are adding custom rules and want them to have access to the same information and be easily configurable.

overrides object[]

Allows to override configuration for files and folders, specified by glob patterns

Definitions

stringOrStringArray string | string[]
rule integer | string | array
possibleErrors object
comma-dangle integer | string | array
for-direction integer | string | array
getter-return integer | string | array
no-await-in-loop integer | string | array
no-compare-neg-zero integer | string | array
no-cond-assign integer | string | array
no-console integer | string | array
no-constant-condition integer | string | array
no-control-regex integer | string | array
no-debugger integer | string | array
no-dupe-args integer | string | array
no-dupe-keys integer | string | array
no-duplicate-case integer | string | array
no-empty integer | string | array
no-empty-character-class integer | string | array
no-ex-assign integer | string | array
no-extra-boolean-cast integer | string | array
no-extra-parens integer | string | array
no-extra-semi integer | string | array
no-func-assign integer | string | array
no-inner-declarations integer | string | array
no-invalid-regexp integer | string | array
no-irregular-whitespace integer | string | array
no-negated-in-lhs integer | string | array
no-obj-calls integer | string | array
no-prototype-builtins integer | string | array
no-regex-spaces integer | string | array
no-sparse-arrays integer | string | array
no-template-curly-in-string integer | string | array
no-unexpected-multiline integer | string | array
no-unreachable integer | string | array
no-unsafe-finally integer | string | array
no-unsafe-negation integer | string | array
use-isnan integer | string | array
valid-jsdoc integer | string | array
valid-typeof integer | string | array
bestPractices object
accessor-pairs integer | string | array
array-callback-return integer | string | array
block-scoped-var integer | string | array
class-methods-use-this integer | string | array
complexity integer | string | array
consistent-return integer | string | array
curly integer | string | array
default-case integer | string | array
dot-location integer | string | array
dot-notation integer | string | array
eqeqeq integer | string | array
guard-for-in integer | string | array
no-alert integer | string | array
no-caller integer | string | array
no-case-declarations integer | string | array
no-div-regex integer | string | array
no-else-return integer | string | array
no-empty-function integer | string | array
no-empty-pattern integer | string | array
no-eq-null integer | string | array
no-eval integer | string | array
no-extend-native integer | string | array
no-extra-bind integer | string | array
no-extra-label integer | string | array
no-fallthrough integer | string | array
no-floating-decimal integer | string | array
no-global-assign integer | string | array
no-implicit-coercion integer | string | array
no-implicit-globals integer | string | array
no-implied-eval integer | string | array
no-invalid-this integer | string | array
no-iterator integer | string | array
no-labels integer | string | array
no-lone-blocks integer | string | array
no-loop-func integer | string | array
no-magic-numbers integer | string | array
no-multi-spaces integer | string | array
no-multi-str integer | string | array
no-native-reassign integer | string | array
no-new integer | string | array
no-new-func integer | string | array
no-new-wrappers integer | string | array
no-octal integer | string | array
no-octal-escape integer | string | array
no-param-reassign integer | string | array
no-proto integer | string | array
no-redeclare integer | string | array
no-restricted-properties integer | string | array
no-return-assign integer | string | array
no-return-await integer | string | array
no-script-url integer | string | array
no-self-assign integer | string | array
no-self-compare integer | string | array
no-sequences integer | string | array
no-throw-literal integer | string | array
no-unmodified-loop-condition integer | string | array
no-unused-expressions integer | string | array
no-unused-labels integer | string | array
no-useless-call integer | string | array
no-useless-concat integer | string | array
no-useless-escape integer | string | array
no-useless-return integer | string | array
no-void integer | string | array
no-warning-comments integer | string | array
no-with integer | string | array
prefer-promise-reject-errors integer | string | array
radix integer | string | array
require-await integer | string | array
vars-on-top integer | string | array
wrap-iife integer | string | array
yoda integer | string | array
strictMode object
strict integer | string | array
variables object
init-declarations integer | string | array
no-catch-shadow integer | string | array
no-delete-var integer | string | array
no-label-var integer | string | array
no-restricted-globals integer | string | array
no-shadow integer | string | array
no-shadow-restricted-names integer | string | array
no-undef integer | string | array
no-undefined integer | string | array
no-undef-init integer | string | array
no-unused-vars integer | string | array
no-use-before-define integer | string | array
nodeAndCommonJs object
callback-return integer | string | array
global-require integer | string | array
handle-callback-err integer | string | array
no-buffer-constructor integer | string | array
no-mixed-requires integer | string | array
no-new-require integer | string | array
no-path-concat integer | string | array
no-process-env integer | string | array
no-process-exit integer | string | array
no-restricted-modules integer | string | array
no-sync integer | string | array
stylisticIssues object
array-bracket-newline integer | string | array
array-bracket-spacing integer | string | array
array-element-newline integer | string | array
block-spacing integer | string | array
brace-style integer | string | array
camelcase integer | string | array
capitalized-comments integer | string | array
comma-dangle integer | string | array
comma-spacing integer | string | array
comma-style integer | string | array
computed-property-spacing integer | string | array
consistent-this integer | string | array
eol-last integer | string | array
func-call-spacing integer | string | array
func-name-matching integer | string | array
func-names integer | string | array
func-style integer | string | array
function-call-argument-newline integer | string | array
function-paren-newline integer | string | array
id-blacklist integer | string | array
id-length integer | string | array
id-match integer | string | array
implicit-arrow-linebreak integer | string | array
indent integer | string | array
indent-legacy integer | string | array
jsx-quotes integer | string | array
key-spacing integer | string | array
keyword-spacing integer | string | array
line-comment-position integer | string | array
lines-between-class-members integer | string | array
linebreak-style integer | string | array
lines-around-comment integer | string | array
lines-around-directive integer | string | array
max-depth integer | string | array
max-len integer | string | array
max-lines integer | string | array
max-nested-callbacks integer | string | array
max-params integer | string | array
max-statements integer | string | array
max-statements-per-line integer | string | array
multiline-comment-style integer | string | array
multiline-ternary integer | string | array
new-cap integer | string | array
newline-after-var integer | string | array
newline-before-return integer | string | array
newline-per-chained-call integer | string | array
new-parens integer | string | array
no-array-constructor integer | string | array
no-bitwise integer | string | array
no-continue integer | string | array
no-inline-comments integer | string | array
no-lonely-if integer | string | array
no-mixed-operators integer | string | array
no-mixed-spaces-and-tabs integer | string | array
no-multi-assign integer | string | array
no-multiple-empty-lines integer | string | array
no-negated-condition integer | string | array
no-nested-ternary integer | string | array
no-new-object integer | string | array
no-plusplus integer | string | array
no-restricted-syntax integer | string | array
no-spaced-func integer | string | array
no-tabs integer | string | array
no-ternary integer | string | array
no-trailing-spaces integer | string | array
no-underscore-dangle integer | string | array
no-unneeded-ternary integer | string | array
no-whitespace-before-property integer | string | array
nonblock-statement-body-position integer | string | array
object-curly-newline integer | string | array
object-curly-spacing integer | string | array
object-property-newline integer | string | array
object-shorthand integer | string | array
one-var integer | string | array
one-var-declaration-per-line integer | string | array
operator-assignment integer | string | array
operator-linebreak integer | string | array
padded-blocks integer | string | array
padding-line-between-statements integer | string | array
quote-props integer | string | array
quotes integer | string | array
require-jsdoc integer | string | array
semi integer | string | array
semi-spacing integer | string | array
semi-style integer | string | array
sort-keys integer | string | array
sort-vars integer | string | array
space-before-blocks integer | string | array
space-before-function-paren integer | string | array
spaced-comment integer | string | array
space-infix-ops integer | string | array
space-in-parens integer | string | array
space-unary-ops integer | string | array
switch-colon-spacing integer | string | array
template-tag-spacing integer | string | array
unicode-bom integer | string | array
wrap-regex integer | string | array
ecmaScript6 object
arrow-body-style integer | string | array
arrow-parens integer | string | array
arrow-spacing integer | string | array
constructor-super integer | string | array
generator-star-spacing integer | string | array
no-class-assign integer | string | array
no-confusing-arrow integer | string | array
no-const-assign integer | string | array
no-dupe-class-members integer | string | array
no-duplicate-imports integer | string | array
no-new-symbol integer | string | array
no-restricted-imports integer | string | array
no-this-before-super integer | string | array
no-useless-computed-key integer | string | array
no-useless-constructor integer | string | array
no-useless-rename integer | string | array
no-var integer | string | array
object-shorthand integer | string | array
prefer-arrow-callback integer | string | array
prefer-const integer | string | array
prefer-destructuring integer | string | array
prefer-numeric-literals integer | string | array
prefer-reflect integer | string | array
prefer-rest-params integer | string | array
prefer-spread integer | string | array
prefer-template integer | string | array
require-yield integer | string | array
rest-spread-spacing integer | string | array
sort-imports integer | string | array
symbol-description integer | string | array
template-curly-spacing integer | string | array
yield-star-spacing integer | string | array
legacy object
max-depth integer | string | array
max-len integer | string | array
max-params integer | string | array
max-statements integer | string | array
no-bitwise integer | string | array
no-plusplus integer | string | array