You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*[Propose a New Rule](https://eslint.org/docs/latest/contribute/propose-new-rule)
15
+
*[Proposing a Rule Change](https://eslint.org/docs/latest/contribute/propose-rule-change)
16
+
*[Request a Change](https://eslint.org/docs/latest/contribute/request-change)
17
17
18
18
To report a security vulnerability in ESLint, please use our [HackerOne program](https://hackerone.com/eslint).
19
19
20
20
## Contributing Code
21
21
22
-
In order to submit code or documentation to an ESLint project, you’ll be asked to sign our CLA when you send your first pull request. (Read more about the Open JS Foundation CLA process at <https://cla.openjsf.org/>.) Also, please read over the [Pull Request Guidelines](https://eslint.org/docs/developer-guide/contributing/pull-requests).
22
+
In order to submit code or documentation to an ESLint project, you’ll be asked to sign our CLA when you send your first pull request. (Read more about the Open JS Foundation CLA process at <https://cla.openjsf.org/>.) Also, please read over the [Pull Request Guidelines](https://eslint.org/docs/latest/contribute/pull-requests).
@@ -76,7 +76,7 @@ The names `"semi"` and `"quotes"` are the names of [rules](https://eslint.org/do
76
76
*`"warn"` or `1` - turn the rule on as a warning (doesn't affect exit code)
77
77
*`"error"` or `2` - turn the rule on as an error (exit code will be 1)
78
78
79
-
The three error levels allow you fine-grained control over how ESLint applies rules (for more configuration options and details, see the [configuration docs](https://eslint.org/docs/user-guide/configuring)).
79
+
The three error levels allow you fine-grained control over how ESLint applies rules (for more configuration options and details, see the [configuration docs](https://eslint.org/docs/latest/use/configure)).
80
80
81
81
## Code of Conduct
82
82
@@ -86,18 +86,18 @@ ESLint adheres to the [JS Foundation Code of Conduct](https://eslint.org/conduct
86
86
87
87
Before filing an issue, please be sure to read the guidelines for what you're reporting:
*[Propose a New Rule](https://eslint.org/docs/latest/contribute/propose-new-rule)
91
+
*[Proposing a Rule Change](https://eslint.org/docs/latest/contribute/propose-rule-change)
92
+
*[Request a Change](https://eslint.org/docs/latest/contribute/request-change)
93
93
94
94
## Frequently Asked Questions
95
95
96
96
### I'm using JSCS, should I migrate to ESLint?
97
97
98
98
Yes. [JSCS has reached end of life](https://eslint.org/blog/2016/07/jscs-end-of-life) and is no longer supported.
99
99
100
-
We have prepared a [migration guide](https://eslint.org/docs/user-guide/migrating-from-jscs) to help you convert your JSCS settings to an ESLint configuration.
100
+
We have prepared a [migration guide](https://eslint.org/docs/latest/use/migrating-from-jscs) to help you convert your JSCS settings to an ESLint configuration.
101
101
102
102
We are now at or near 100% compatibility with JSCS. If you try ESLint and believe we are not yet compatible with a JSCS rule/configuration, please create an issue (mentioning that it is a JSCS compatibility issue) and we will evaluate it as per our normal process.
103
103
@@ -113,19 +113,19 @@ No, ESLint does both traditional linting (looking for problematic patterns) and
113
113
114
114
### Does ESLint support JSX?
115
115
116
-
Yes, ESLint natively supports parsing JSX syntax (this must be enabled in [configuration](https://eslint.org/docs/user-guide/configuring)). Please note that supporting JSX syntax *is not* the same as supporting React. React applies specific semantics to JSX syntax that ESLint doesn't recognize. We recommend using [eslint-plugin-react](https://www.npmjs.com/package/eslint-plugin-react) if you are using React and want React semantics.
116
+
Yes, ESLint natively supports parsing JSX syntax (this must be enabled in [configuration](https://eslint.org/docs/latest/use/configure)). Please note that supporting JSX syntax *is not* the same as supporting React. React applies specific semantics to JSX syntax that ESLint doesn't recognize. We recommend using [eslint-plugin-react](https://www.npmjs.com/package/eslint-plugin-react) if you are using React and want React semantics.
117
117
118
118
### What ECMAScript versions does ESLint support?
119
119
120
-
ESLint has full support for ECMAScript 3, 5 (default), 2015, 2016, 2017, 2018, 2019, 2020, 2021 and 2022. You can set your desired ECMAScript syntax (and other settings, like global variables or your target environments) through [configuration](https://eslint.org/docs/user-guide/configuring).
120
+
ESLint has full support for ECMAScript 3, 5 (default), 2015, 2016, 2017, 2018, 2019, 2020, 2021 and 2022. You can set your desired ECMAScript syntax (and other settings, like global variables or your target environments) through [configuration](https://eslint.org/docs/latest/use/configure).
121
121
122
122
### What about experimental features?
123
123
124
124
ESLint's parser only officially supports the latest final ECMAScript standard. We will make changes to core rules in order to avoid crashes on stage 3 ECMAScript syntax proposals (as long as they are implemented using the correct experimental ESTree syntax). We may make changes to core rules to better work with language extensions (such as JSX, Flow, and TypeScript) on a case-by-case basis.
125
125
126
126
In other cases (including if rules need to warn on more or fewer cases due to new syntax, rather than just not crashing), we recommend you use other parsers and/or rule plugins. If you are using Babel, you can use [@babel/eslint-parser](https://www.npmjs.com/package/@babel/eslint-parser) and [@babel/eslint-plugin](https://www.npmjs.com/package/@babel/eslint-plugin) to use any option available in Babel.
127
127
128
-
Once a language feature has been adopted into the ECMAScript standard (stage 4 according to the [TC39 process](https://tc39.github.io/process-document/)), we will accept issues and pull requests related to the new feature, subject to our [contributing guidelines](https://eslint.org/docs/developer-guide/contributing). Until then, please use the appropriate parser and plugin(s) for your experimental feature.
128
+
Once a language feature has been adopted into the ECMAScript standard (stage 4 according to the [TC39 process](https://tc39.github.io/process-document/)), we will accept issues and pull requests related to the new feature, subject to our [contributing guidelines](https://eslint.org/docs/latest/contribute). Until then, please use the appropriate parser and plugin(s) for your experimental feature.
Copy file name to clipboardExpand all lines: conf/rule-type-list.json
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -6,12 +6,12 @@
6
6
],
7
7
"deprecated": {
8
8
"name": "Deprecated",
9
-
"description": "These rules have been deprecated in accordance with the <a href=\"/docs/user-guide/rule-deprecation\">deprecation policy</a>, and replaced by newer rules:",
9
+
"description": "These rules have been deprecated in accordance with the <a href=\"/docs/use/rule-deprecation\">deprecation policy</a>, and replaced by newer rules:",
10
10
"rules": []
11
11
},
12
12
"removed": {
13
13
"name": "Removed",
14
-
"description": "These rules from older versions of ESLint (before the <a href=\"/docs/user-guide/rule-deprecation\">deprecation policy</a> existed) have been replaced by newer rules:",
14
+
"description": "These rules from older versions of ESLint (before the <a href=\"/docs/use/rule-deprecation\">deprecation policy</a> existed) have been replaced by newer rules:",
Copy file name to clipboardExpand all lines: docs/src/_data/rules.json
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1893,7 +1893,7 @@
1893
1893
],
1894
1894
"deprecated": {
1895
1895
"name": "Deprecated",
1896
-
"description": "These rules have been deprecated in accordance with the <a href=\"/docs/user-guide/rule-deprecation\">deprecation policy</a>, and replaced by newer rules:",
1896
+
"description": "These rules have been deprecated in accordance with the <a href=\"/docs/use/rule-deprecation\">deprecation policy</a>, and replaced by newer rules:",
1897
1897
"rules": [
1898
1898
{
1899
1899
"name": "callback-return",
@@ -2009,7 +2009,7 @@
2009
2009
},
2010
2010
"removed": {
2011
2011
"name": "Removed",
2012
-
"description": "These rules from older versions of ESLint (before the <a href=\"/docs/user-guide/rule-deprecation\">deprecation policy</a> existed) have been replaced by newer rules:",
2012
+
"description": "These rules from older versions of ESLint (before the <a href=\"/docs/use/rule-deprecation\">deprecation policy</a> existed) have been replaced by newer rules:",
The <code>"extends": "eslint:recommended"</code> property in a <ahref="../user-guide/configuring/configuration-files#extending-configuration-files">configuration file</a> enables this rule
8
+
The <code>"extends": "eslint:recommended"</code> property in a <ahref="../use/configure/configuration-files#extending-configuration-files">configuration file</a> enables this rule
Some problems reported by this rule are automatically fixable by the <code>--fix</code><ahref="../user-guide/command-line-interface#--fix">command line</a> option
16
+
Some problems reported by this rule are automatically fixable by the <code>--fix</code><ahref="../use/command-line-interface#--fix">command line</a> option
Some problems reported by this rule are manually fixable by editor <ahref="../developer-guide/working-with-rules#providing-suggestions">suggestions</a>
24
+
Some problems reported by this rule are manually fixable by editor <ahref="../extend/custom-rules#providing-suggestions">suggestions</a>
0 commit comments