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
> π§ Automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/user-guide/command-line-interface#--fix).<br>π‘ Manually fixable by [editor suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).<br>π§ͺπ« Disabled for [test files](../README.md#π§ͺ-test-overrides).<br>π§ͺβ οΈ Severity lessened to warning for [test files](../README.md#π§ͺ-test-overrides).
> π§ Automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/user-guide/command-line-interface#--fix).<br>π‘ Manually fixable by [editor suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).<br>π§ͺπ« Disabled for [test files](../README.md#π§ͺ-test-overrides).<br>π§ͺβ οΈ Severity lessened to warning for [test files](../README.md#π§ͺ-test-overrides).
> π§ Automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/user-guide/command-line-interface#--fix).<br>π‘ Manually fixable by [editor suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).<br>π§ͺπ« Disabled for [test files](../README.md#π§ͺ-test-overrides).<br>π§ͺβ οΈ Severity lessened to warning for [test files](../README.md#π§ͺ-test-overrides).
@@ -48,10 +48,9 @@ Refer to the extended config's docs:
48
48
|[](https://the-guild.dev/graphql/eslint/docs)|[unique-operation-types](https://the-guild.dev/graphql/eslint/rules/unique-operation-types)<br>A GraphQL document is only valid if it has only one type per operation.> This rule is a wrapper around a `graphql-js` validation function. ||||
49
49
|[](https://the-guild.dev/graphql/eslint/docs)|[unique-type-names](https://the-guild.dev/graphql/eslint/rules/unique-type-names)<br>A GraphQL document is only valid if all defined types have unique names.> This rule is a wrapper around a `graphql-js` validation function. ||||
50
50
51
-
### β οΈ Warnings (3)
51
+
### β οΈ Warnings (2)
52
52
53
53
| Plugin | Rule | Options | Autofix | Overrides |
54
54
| :-: | :-- | :-- | :-: | :-: |
55
55
|[](https://the-guild.dev/graphql/eslint/docs)|[description-style](https://the-guild.dev/graphql/eslint/rules/description-style)<br>Require all comments to follow the same style (either block or inline). | <details><summary>style: inline</summary><pre>{<br> "style": "inline"<br>}</pre></details> | π‘ ||
56
-
|[](https://the-guild.dev/graphql/eslint/docs)|[no-hashtag-description](https://the-guild.dev/graphql/eslint/rules/no-hashtag-description)<br>Requires to use `"""` or `"` for adding a GraphQL description instead of `#`.Allows to use hashtag for comments, as long as it's not attached to an AST definition. || π‘ ||
|[](https://the-guild.dev/graphql/eslint/docs)|[no-hashtag-description](https://the-guild.dev/graphql/eslint/rules/no-hashtag-description)<br>Requires to use `"""` or `"` for adding a GraphQL description instead of `#`.Allows to use hashtag for comments, as long as it's not attached to an AST definition. || π‘ ||
Copy file name to clipboardExpand all lines: docs/index.md
+6-8Lines changed: 6 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,19 +12,18 @@ Add to `extends` in your .eslintrc file:
12
12
}
13
13
```
14
14
15
-
## π Rules (254)
15
+
## π Rules (252)
16
16
17
17
> π§ Automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/user-guide/command-line-interface#--fix).<br>π‘ Manually fixable by [editor suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).<br>π§ͺπ« Disabled for [test files](../README.md#π§ͺ-test-overrides).<br>π§ͺβ οΈ Severity lessened to warning for [test files](../README.md#π§ͺ-test-overrides).
18
18
19
-
### π¨ Errors (117)
19
+
### π¨ Errors (116)
20
20
21
21
| Plugin | Rule | Options | Autofix | Overrides |
22
22
| :-: | :-- | :-- | :-: | :-: |
23
23
||[eqeqeq](https://eslint.org/docs/latest/rules/eqeqeq)<br>Require the use of `===` and `!==`| <details><summary>always, null: never</summary><pre>[<br> "always",<br> {<br> "null": "never"<br> }<br>]</pre></details> | π§ ||
24
24
||[for-direction](https://eslint.org/docs/latest/rules/for-direction)<br>Enforce "for" loop update clause moving the counter in the right direction ||||
25
25
||[guard-for-in](https://eslint.org/docs/latest/rules/guard-for-in)<br>Require `for-in` loops to include an `if` statement ||||
26
26
||[no-async-promise-executor](https://eslint.org/docs/latest/rules/no-async-promise-executor)<br>Disallow using an async function as a Promise executor ||||
27
-
||[no-case-declarations](https://eslint.org/docs/latest/rules/no-case-declarations)<br>Disallow lexical declarations in case clauses ||||
28
27
||[no-class-assign](https://eslint.org/docs/latest/rules/no-class-assign)<br>Disallow reassigning class members ||||
29
28
||[no-compare-neg-zero](https://eslint.org/docs/latest/rules/no-compare-neg-zero)<br>Disallow comparing against -0 ||||
30
29
||[no-cond-assign](https://eslint.org/docs/latest/rules/no-cond-assign)<br>Disallow assignment operators in conditional expressions ||||
@@ -92,7 +91,7 @@ Add to `extends` in your .eslintrc file:
92
91
|[](https://typescript-eslint.io/)|[no-var-requires](https://typescript-eslint.io/rules/no-var-requires)<br>Disallow `require` statements except in import statements ||||
93
92
|[](https://typescript-eslint.io/)|[prefer-as-const](https://typescript-eslint.io/rules/prefer-as-const)<br>Enforce the use of `as const` over literal type || π§, π‘ ||
94
93
|[](https://typescript-eslint.io/)|[triple-slash-reference](https://typescript-eslint.io/rules/triple-slash-reference)<br>Disallow certain triple slash directives in favor of ES6-style import declarations ||||
95
-
|[](https://github.com/eslint-functional/eslint-plugin-functional#readme)|[immutable-data](https://github.com/eslint-functional/eslint-plugin-functional/blob/v6.0.0/docs/rules/immutable-data.md)<br>Enforce treating data as immutable. | <details><summary>ignoreImmediateMutation: true</summary><pre>{<br> "ignoreImmediateMutation": true<br>}</pre></details> || π§ͺβ οΈ |
94
+
|[](https://github.com/eslint-functional/eslint-plugin-functional#readme)|[immutable-data](https://github.com/eslint-functional/eslint-plugin-functional/blob/v6.0.0/docs/rules/immutable-data.md)<br>Enforce treating data as immutable. | <details><summary>ignoreImmediateMutation: tr...</summary><pre>{<br> "ignoreImmediateMutation": true,<br> "ignoreClasses": true<br>}</pre></details> || π§ͺβ οΈ |
96
95
|[](https://github.com/import-js/eslint-plugin-import#readme)|[default](https://github.com/import-js/eslint-plugin-import/blob/v2.29.0/docs/rules/default.md)<br>Ensure a default export is present, given a default import. ||||
97
96
|[](https://github.com/import-js/eslint-plugin-import#readme)|[export](https://github.com/import-js/eslint-plugin-import/blob/v2.29.0/docs/rules/export.md)<br>Forbid any invalid exports, i.e. re-export of the same name. ||||
98
97
|[](https://github.com/import-js/eslint-plugin-import#readme)|[named](https://github.com/import-js/eslint-plugin-import/blob/v2.29.0/docs/rules/named.md)<br>Ensure named imports correspond to a named export in the remote file. ||||
@@ -138,7 +137,7 @@ Add to `extends` in your .eslintrc file:
138
137
|[](https://github.com/SonarSource/eslint-plugin-sonarjs#readme)|[prefer-single-boolean-return](https://github.com/SonarSource/eslint-plugin-sonarjs/blob/master/docs/rules/prefer-single-boolean-return.md)<br>Return of boolean expressions should not be wrapped into an "if-then-else" statement || π‘ ||
139
138
|[](https://github.com/SonarSource/eslint-plugin-sonarjs#readme)|[prefer-while](https://github.com/SonarSource/eslint-plugin-sonarjs/blob/master/docs/rules/prefer-while.md)<br>A "while" loop should be used instead of a "for" loop || π§ ||
140
139
141
-
### β οΈ Warnings (137)
140
+
### β οΈ Warnings (136)
142
141
143
142
| Plugin | Rule | Options | Autofix | Overrides |
144
143
| :-: | :-- | :-- | :-: | :-: |
@@ -152,7 +151,7 @@ Add to `extends` in your .eslintrc file:
||[no-undef-init](https://eslint.org/docs/latest/rules/no-undef-init)<br>Disallow initializing variables to `undefined`|| π§ ||
157
156
||[prefer-template](https://eslint.org/docs/latest/rules/prefer-template)<br>Require template literals instead of string concatenation || π§ ||
158
157
||[radix](https://eslint.org/docs/latest/rules/radix)<br>Enforce the consistent use of the radix argument when using `parseInt()`|| π‘ ||
@@ -188,7 +187,7 @@ Add to `extends` in your .eslintrc file:
188
187
|[](https://github.com/sindresorhus/eslint-plugin-unicorn#readme)|[better-regex](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v49.0.0/docs/rules/better-regex.md)<br>Improve regexes by making them shorter, consistent, and safer. | <details><summary>sortCharacterClasses: false</summary><pre>{<br> "sortCharacterClasses": false<br>}</pre></details> | π§ ||
189
188
|[](https://github.com/sindresorhus/eslint-plugin-unicorn#readme)|[catch-error-name](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v49.0.0/docs/rules/catch-error-name.md)<br>Enforce a specific parameter name in catch clauses. || π§ ||
190
189
|[](https://github.com/sindresorhus/eslint-plugin-unicorn#readme)|[consistent-destructuring](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v49.0.0/docs/rules/consistent-destructuring.md)<br>Use destructured variables over properties. || π§, π‘ ||
191
-
|[](https://github.com/sindresorhus/eslint-plugin-unicorn#readme)|[consistent-function-scoping](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v49.0.0/docs/rules/consistent-function-scoping.md)<br>Move function definitions to the highest possible scope. ||| π§ͺπ« |
190
+
|[](https://github.com/sindresorhus/eslint-plugin-unicorn#readme)|[consistent-function-scoping](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v49.0.0/docs/rules/consistent-function-scoping.md)<br>Move function definitions to the highest possible scope. |<details><summary>checkArrowFunctions: false</summary><pre>{<br> "checkArrowFunctions": false<br>}</pre></details>|| π§ͺπ« |
192
191
|[](https://github.com/sindresorhus/eslint-plugin-unicorn#readme)|[empty-brace-spaces](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v49.0.0/docs/rules/empty-brace-spaces.md)<br>Enforce no spaces between braces. || π§ ||
193
192
|[](https://github.com/sindresorhus/eslint-plugin-unicorn#readme)|[error-message](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v49.0.0/docs/rules/error-message.md)<br>Enforce passing a `message` value when creating a built-in error. ||||
194
193
|[](https://github.com/sindresorhus/eslint-plugin-unicorn#readme)|[escape-case](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v49.0.0/docs/rules/escape-case.md)<br>Require escape sequences to use uppercase values. || π§ ||
@@ -264,7 +263,6 @@ Add to `extends` in your .eslintrc file:
264
263
|[](https://github.com/sindresorhus/eslint-plugin-unicorn#readme)|[prefer-set-has](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v49.0.0/docs/rules/prefer-set-has.md)<br>Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence. || π§, π‘ ||
265
264
|[](https://github.com/sindresorhus/eslint-plugin-unicorn#readme)|[prefer-set-size](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v49.0.0/docs/rules/prefer-set-size.md)<br>Prefer using `Set#size` instead of `Array#length`. || π§ ||
266
265
|[](https://github.com/sindresorhus/eslint-plugin-unicorn#readme)|[prefer-spread](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v49.0.0/docs/rules/prefer-spread.md)<br>Prefer the spread operator over `Array.from(β¦)`, `Array#concat(β¦)`, `Array#{slice,toSpliced}()` and `String#split('')`. || π§, π‘ ||
267
-
|[](https://github.com/sindresorhus/eslint-plugin-unicorn#readme)|[prefer-string-replace-all](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v49.0.0/docs/rules/prefer-string-replace-all.md)<br>Prefer `String#replaceAll()` over regex searches with the global flag. || π§ ||
268
266
|[](https://github.com/sindresorhus/eslint-plugin-unicorn#readme)|[prefer-string-slice](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v49.0.0/docs/rules/prefer-string-slice.md)<br>Prefer `String#slice()` over `String#substr()` and `String#substring()`. || π§ ||
269
267
|[](https://github.com/sindresorhus/eslint-plugin-unicorn#readme)|[prefer-string-starts-ends-with](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v49.0.0/docs/rules/prefer-string-starts-ends-with.md)<br>Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`. || π§, π‘ ||
0 commit comments