.eslintrc
ESLint configuration files
.eslintrc.eslintrc.json.eslintrc.yml.eslintrc.yaml
Validate
Check your file against this schema
Opens the validator with this schema already loaded. Paste your
.eslintrc and it validates in your browser — nothing is uploaded.
Reference
Fields
Generated directly from the schema, following local
$refs, to two levels of nesting.
| Field | Type | Description |
|---|---|---|
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. |
ecmaFeatures.arrowFunctions | boolean | — |
ecmaFeatures.binaryLiterals | boolean | — |
ecmaFeatures.blockBindings | boolean | — |
ecmaFeatures.classes | boolean | — |
ecmaFeatures.defaultParams | boolean | — |
ecmaFeatures.destructuring | boolean | — |
ecmaFeatures.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 |
ecmaFeatures.forOf | boolean | — |
ecmaFeatures.generators | boolean | — |
ecmaFeatures.globalReturn | boolean | allow return statements in the global scope |
ecmaFeatures.impliedStrict | boolean | enable global strict mode (if ecmaVersion is 5 or greater) |
ecmaFeatures.jsx | boolean | enable JSX |
ecmaFeatures.modules | boolean | — |
ecmaFeatures.objectLiteralComputedProperties | boolean | — |
ecmaFeatures.objectLiteralDuplicateProperties | boolean | — |
ecmaFeatures.objectLiteralShorthandMethods | boolean | — |
ecmaFeatures.objectLiteralShorthandProperties | boolean | — |
ecmaFeatures.octalLiterals | boolean | — |
ecmaFeatures.regexUFlag | boolean | — |
ecmaFeatures.regexYFlag | boolean | — |
ecmaFeatures.restParams | boolean | — |
ecmaFeatures.spread | boolean | — |
ecmaFeatures.superInFunctions | boolean | — |
ecmaFeatures.templateStrings | boolean | — |
ecmaFeatures.unicodeCodePointEscapes | boolean | — |
env | object | An environment defines global variables that are predefined. |
env.amd | boolean | defines require() and define() as global variables as per the amd spec |
env.applescript | boolean | AppleScript global variables |
env.atomtest | boolean | Atom test helper globals |
env.browser | boolean | browser global variables |
env.commonjs | boolean | CommonJS global variables and CommonJS scoping (use this for browser-only code that uses Browserify/WebPack) |
env.shared-node-browser | boolean | Globals common to both Node and Browser |
env.embertest | boolean | Ember test helper globals |
env.es6 | boolean | enable all ECMAScript 6 features except for modules |
env.greasemonkey | boolean | GreaseMonkey globals |
env.jasmine | boolean | adds all of the Jasmine testing global variables for version 1.3 and 2.0 |
env.jest | boolean | Jest global variables |
env.jquery | boolean | jQuery global variables |
env.meteor | boolean | Meteor global variables |
env.mocha | boolean | adds all of the Mocha test global variables |
env.mongo | boolean | MongoDB global variables |
env.nashorn | boolean | Java 8 Nashorn global variables |
env.node | boolean | Node.js global variables and Node.js scoping |
env.phantomjs | boolean | PhantomJS global variables |
env.prototypejs | boolean | Prototype.js global variables |
env.protractor | boolean | Protractor global variables |
env.qunit | boolean | QUnit global variables |
env.serviceworker | boolean | Service Worker global variables |
env.shelljs | boolean | ShellJS global variables |
env.webextensions | boolean | WebExtensions globals |
env.worker | boolean | web workers global variables |
extends | oneOf | — |
globals | object | 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 |
parserOptions.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. |
parserOptions.ecmaFeatures.arrowFunctions | boolean | — |
parserOptions.ecmaFeatures.binaryLiterals | boolean | — |
parserOptions.ecmaFeatures.blockBindings | boolean | — |
parserOptions.ecmaFeatures.classes | boolean | — |
parserOptions.ecmaFeatures.defaultParams | boolean | — |
parserOptions.ecmaFeatures.destructuring | boolean | — |
parserOptions.ecmaFeatures.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 |
parserOptions.ecmaFeatures.forOf | boolean | — |
parserOptions.ecmaFeatures.generators | boolean | — |
parserOptions.ecmaFeatures.globalReturn | boolean | allow return statements in the global scope |
parserOptions.ecmaFeatures.impliedStrict | boolean | enable global strict mode (if ecmaVersion is 5 or greater) |
parserOptions.ecmaFeatures.jsx | boolean | enable JSX |
parserOptions.ecmaFeatures.modules | boolean | — |
parserOptions.ecmaFeatures.objectLiteralComputedProperties | boolean | — |
parserOptions.ecmaFeatures.objectLiteralDuplicateProperties | boolean | — |
parserOptions.ecmaFeatures.objectLiteralShorthandMethods | boolean | — |
parserOptions.ecmaFeatures.objectLiteralShorthandProperties | boolean | — |
parserOptions.ecmaFeatures.octalLiterals | boolean | — |
parserOptions.ecmaFeatures.regexUFlag | boolean | — |
parserOptions.ecmaFeatures.regexYFlag | boolean | — |
parserOptions.ecmaFeatures.restParams | boolean | — |
parserOptions.ecmaFeatures.spread | boolean | — |
parserOptions.ecmaFeatures.superInFunctions | boolean | — |
parserOptions.ecmaFeatures.templateStrings | boolean | — |
parserOptions.ecmaFeatures.unicodeCodePointEscapes | boolean | — |
parserOptions.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) default: 5one of: 3, 5, 6, 2015, 7, 2016 … (+17) |
parserOptions.sourceType | enum | set to "script" (default), "commonjs", or "module" if your code is in ECMAScript modules default: "script"one of: "script", "module", "commonjs" |
plugins | array<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 |
ignorePatterns | oneOf | — |
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. |
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 |
overrides | array<object> | Allows to override configuration for files and folders, specified by glob patterns |
Audit
What we found in this schema
- Declared draft: draft-07
- Validates cleanly against its own meta-schema.
- 346 properties, 88% carrying a description, max nesting depth 9.
Standards
Specification sections for the keywords in this schema
| Keyword | Document | Section |
|---|---|---|
$id | JSON Schema Core, draft 2020-12 | §8.2.1 — The "$id" Keyword |
$ref | JSON Schema Core, draft 2020-12 | §8.2.3.1 — Direct References with "$ref" |
$schema | JSON Schema Core, draft 2020-12 | §8.1.1 — "$schema" |
additionalProperties | JSON Schema Core, draft 2020-12 | §10.3.2.3 — "additionalProperties" |
default | JSON Schema Validation, draft 2020-12 | §9.2 — "default" |
description | JSON Schema Validation, draft 2020-12 | §9.1 — "title" and "description" |
enum | JSON Schema Validation, draft 2020-12 | §6.1.2 — "enum" |
items | JSON Schema Core, draft 2020-12 | §10.3.1.2 — "items" |
oneOf | JSON Schema Core, draft 2020-12 | §10.2.1.3 — "oneOf" |
properties | JSON Schema Core, draft 2020-12 | §10.3.2.1 — "properties" |
type | JSON Schema Validation, draft 2020-12 | §6.1.1 — "type" |
Documents
- JSON Schema Core, draft 2020-12 — JSON Schema: A Media Type for Describing JSON Documents, A. Wright, H. Andrews, B. Hutton, G. Dennis, Eds., 2022. draft-bhutton-json-schema-01. An expired Internet-Draft with no formal standing in the IETF standards process; it is nonetheless the specification of record for JSON Schema 2020-12, published by json-schema.org.
- JSON Schema Validation, draft 2020-12 — JSON Schema Validation: A Vocabulary for Structural Validation of JSON, A. Wright, H. Andrews, B. Hutton, Eds., 2022.
- RFC 8259 (STD 90) — The JavaScript Object Notation (JSON) Data Interchange Format, T. Bray, Ed., 2017. The format a schema describes.
- RFC 6901 — JavaScript Object Notation (JSON) Pointer. Defines the pointer syntax used by $ref fragments and the ~0 / ~1 escapes.
Source
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.