` comments or require descriptions after directives | | ๐ก | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-array-constructor](https://typescript-eslint.io/rules/no-array-constructor)
Disallow generic `Array` constructors | | ๐ง | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-duplicate-enum-values](https://typescript-eslint.io/rules/no-duplicate-enum-values)
Disallow duplicate enum member values | | | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-empty-object-type](https://typescript-eslint.io/rules/no-empty-object-type)
Disallow accidentally using the "empty object" type | | ๐ก | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-explicit-any](https://typescript-eslint.io/rules/no-explicit-any)
Disallow the `any` type | | ๐ง, ๐ก | ๐งช๐ซ |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-extra-non-null-assertion](https://typescript-eslint.io/rules/no-extra-non-null-assertion)
Disallow extra non-null assertions | | ๐ง | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-misused-new](https://typescript-eslint.io/rules/no-misused-new)
Enforce valid definition of `new` and `constructor` | | | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-namespace](https://typescript-eslint.io/rules/no-namespace)
Disallow TypeScript namespaces | | | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-non-null-asserted-optional-chain](https://typescript-eslint.io/rules/no-non-null-asserted-optional-chain)
Disallow non-null assertions after an optional chain expression | | ๐ก | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-require-imports](https://typescript-eslint.io/rules/no-require-imports)
Disallow invocation of `require()` | | | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-this-alias](https://typescript-eslint.io/rules/no-this-alias)
Disallow aliasing `this` | | | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-unnecessary-type-constraint](https://typescript-eslint.io/rules/no-unnecessary-type-constraint)
Disallow unnecessary constraints on generic types | | ๐ก | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-unsafe-declaration-merging](https://typescript-eslint.io/rules/no-unsafe-declaration-merging)
Disallow unsafe declaration merging | | | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-unsafe-function-type](https://typescript-eslint.io/rules/no-unsafe-function-type)
Disallow using the unsafe built-in Function type | | ๐ง | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-unused-vars](https://typescript-eslint.io/rules/no-unused-vars)
Disallow unused variables | argsIgnorePattern: ^_, dest...
{
"argsIgnorePattern": "^_",
"destructuredArrayIgnorePattern": "^_",
"ignoreRestSiblings": true
}
| | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-wrapper-object-types](https://typescript-eslint.io/rules/no-wrapper-object-types)
Disallow using confusing built-in primitive class wrappers | | ๐ง | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [prefer-as-const](https://typescript-eslint.io/rules/prefer-as-const)
Enforce the use of `as const` over literal type | | ๐ง, ๐ก | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [triple-slash-reference](https://typescript-eslint.io/rules/triple-slash-reference)
Disallow certain triple slash directives in favor of ES6-style import declarations | | | |
+| [![import](./icons/icons8/import.png)](https://github.com/import-js/eslint-plugin-import#readme) | [default](https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/default.md)
Ensure a default export is present, given a default import. | | | |
+| [![import](./icons/icons8/import.png)](https://github.com/import-js/eslint-plugin-import#readme) | [export](https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/export.md)
Forbid any invalid exports, i.e. re-export of the same name. | | | |
+| [![import](./icons/icons8/import.png)](https://github.com/import-js/eslint-plugin-import#readme) | [named](https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/named.md)
Ensure named imports correspond to a named export in the remote file. | | | |
+| [![import](./icons/icons8/import.png)](https://github.com/import-js/eslint-plugin-import#readme) | [namespace](https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/namespace.md)
Ensure imported namespaces contain dereferenced properties as they are dereferenced. | | | |
+| [![import](./icons/icons8/import.png)](https://github.com/import-js/eslint-plugin-import#readme) | [no-absolute-path](https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-absolute-path.md)
Forbid import of modules using absolute paths. | | ๐ง | |
+| [![import](./icons/icons8/import.png)](https://github.com/import-js/eslint-plugin-import#readme) | [no-amd](https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-amd.md)
Forbid AMD `require` and `define` calls. | | | |
+| [![import](./icons/icons8/import.png)](https://github.com/import-js/eslint-plugin-import#readme) | [no-commonjs](https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-commonjs.md)
Forbid CommonJS `require` calls and `module.exports` or `exports.*`. | | | |
+| [![import](./icons/icons8/import.png)](https://github.com/import-js/eslint-plugin-import#readme) | [no-cycle](https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-cycle.md)
Forbid a module from importing a module with a dependency path back to itself. | | | |
+| [![import](./icons/icons8/import.png)](https://github.com/import-js/eslint-plugin-import#readme) | [no-mutable-exports](https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-mutable-exports.md)
Forbid the use of mutable exports with `var` or `let`. | | | |
+| [![import](./icons/icons8/import.png)](https://github.com/import-js/eslint-plugin-import#readme) | [no-self-import](https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-self-import.md)
Forbid a module from importing itself. | | | |
+| [![import](./icons/icons8/import.png)](https://github.com/import-js/eslint-plugin-import#readme) | [no-unresolved](https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-unresolved.md)
Ensure imports point to a file/module that can be resolved. | | | |
+| [![promise](./icons/icons8/promise.png)](https://github.com/eslint-community/eslint-plugin-promise#readme) | [always-return](https://github.com/eslint-community/eslint-plugin-promise/blob/main/docs/rules/always-return.md)
Require returning inside each `then()` to create readable and reusable Promise chains. | ignoreLastCallback: true
{
"ignoreLastCallback": true
}
| | |
+| [![promise](./icons/icons8/promise.png)](https://github.com/eslint-community/eslint-plugin-promise#readme) | [catch-or-return](https://github.com/eslint-community/eslint-plugin-promise/blob/main/docs/rules/catch-or-return.md)
Enforce the use of `catch()` on un-returned promises. | | | ๐งช๐ซ |
+| [![promise](./icons/icons8/promise.png)](https://github.com/eslint-community/eslint-plugin-promise#readme) | [no-new-statics](https://github.com/eslint-community/eslint-plugin-promise/blob/main/docs/rules/no-new-statics.md)
Disallow calling `new` on a Promise static method. | | ๐ง | |
+| [![promise](./icons/icons8/promise.png)](https://github.com/eslint-community/eslint-plugin-promise#readme) | [no-return-wrap](https://github.com/eslint-community/eslint-plugin-promise/blob/main/docs/rules/no-return-wrap.md)
Disallow wrapping values in `Promise.resolve` or `Promise.reject` when not needed. | | | |
+| [![promise](./icons/icons8/promise.png)](https://github.com/eslint-community/eslint-plugin-promise#readme) | [param-names](https://github.com/eslint-community/eslint-plugin-promise/blob/main/docs/rules/param-names.md)
Enforce consistent param names and ordering when creating new promises. | | | |
+| [![sonarjs](./icons/other/sonar.png)](https://github.com/SonarSource/eslint-plugin-sonarjs#readme) | [no-all-duplicated-branches](https://github.com/SonarSource/eslint-plugin-sonarjs/blob/master/docs/rules/no-all-duplicated-branches.md)
All branches in a conditional structure should not have exactly the same implementation | | | |
+| [![sonarjs](./icons/other/sonar.png)](https://github.com/SonarSource/eslint-plugin-sonarjs#readme) | [no-collection-size-mischeck](https://github.com/SonarSource/eslint-plugin-sonarjs/blob/master/docs/rules/no-collection-size-mischeck.md)
Collection sizes and array length comparisons should make sense | | ๐ก | |
+| [![sonarjs](./icons/other/sonar.png)](https://github.com/SonarSource/eslint-plugin-sonarjs#readme) | [no-duplicated-branches](https://github.com/SonarSource/eslint-plugin-sonarjs/blob/master/docs/rules/no-duplicated-branches.md)
Two branches in a conditional structure should not have exactly the same implementation | | | |
+| [![sonarjs](./icons/other/sonar.png)](https://github.com/SonarSource/eslint-plugin-sonarjs#readme) | [no-element-overwrite](https://github.com/SonarSource/eslint-plugin-sonarjs/blob/master/docs/rules/no-element-overwrite.md)
Collection elements should not be replaced unconditionally | | | |
+| [![sonarjs](./icons/other/sonar.png)](https://github.com/SonarSource/eslint-plugin-sonarjs#readme) | [no-empty-collection](https://github.com/SonarSource/eslint-plugin-sonarjs/blob/master/docs/rules/no-empty-collection.md)
Empty collections should not be accessed or iterated | | | |
+| [![sonarjs](./icons/other/sonar.png)](https://github.com/SonarSource/eslint-plugin-sonarjs#readme) | [no-extra-arguments](https://github.com/SonarSource/eslint-plugin-sonarjs/blob/master/docs/rules/no-extra-arguments.md)
Function calls should not pass extra arguments | | | |
+| [![sonarjs](./icons/other/sonar.png)](https://github.com/SonarSource/eslint-plugin-sonarjs#readme) | [no-gratuitous-expressions](https://github.com/SonarSource/eslint-plugin-sonarjs/blob/master/docs/rules/no-gratuitous-expressions.md)
Boolean expressions should not be gratuitous | | | |
+| [![sonarjs](./icons/other/sonar.png)](https://github.com/SonarSource/eslint-plugin-sonarjs#readme) | [no-identical-conditions](https://github.com/SonarSource/eslint-plugin-sonarjs/blob/master/docs/rules/no-identical-conditions.md)
Related "if-else-if" and "switch-case" statements should not have the same condition | | | |
+| [![sonarjs](./icons/other/sonar.png)](https://github.com/SonarSource/eslint-plugin-sonarjs#readme) | [no-identical-expressions](https://github.com/SonarSource/eslint-plugin-sonarjs/blob/master/docs/rules/no-identical-expressions.md)
Identical expressions should not be used on both sides of a binary operator | | | |
+| [![sonarjs](./icons/other/sonar.png)](https://github.com/SonarSource/eslint-plugin-sonarjs#readme) | [no-identical-functions](https://github.com/SonarSource/eslint-plugin-sonarjs/blob/master/docs/rules/no-identical-functions.md)
Functions should not have identical implementations | | | |
+| [![sonarjs](./icons/other/sonar.png)](https://github.com/SonarSource/eslint-plugin-sonarjs#readme) | [no-ignored-return](https://github.com/SonarSource/eslint-plugin-sonarjs/blob/master/docs/rules/no-ignored-return.md)
Return values from functions without side effects should not be ignored | | | |
+| [![sonarjs](./icons/other/sonar.png)](https://github.com/SonarSource/eslint-plugin-sonarjs#readme) | [no-one-iteration-loop](https://github.com/SonarSource/eslint-plugin-sonarjs/blob/master/docs/rules/no-one-iteration-loop.md)
Loops with at most one iteration should be refactored | | | |
+| [![sonarjs](./icons/other/sonar.png)](https://github.com/SonarSource/eslint-plugin-sonarjs#readme) | [no-unused-collection](https://github.com/SonarSource/eslint-plugin-sonarjs/blob/master/docs/rules/no-unused-collection.md)
Collection and array contents should be used | | | |
+| [![sonarjs](./icons/other/sonar.png)](https://github.com/SonarSource/eslint-plugin-sonarjs#readme) | [no-use-of-empty-return-value](https://github.com/SonarSource/eslint-plugin-sonarjs/blob/master/docs/rules/no-use-of-empty-return-value.md)
The output of functions that don't return anything should not be used | | | |
+| [![sonarjs](./icons/other/sonar.png)](https://github.com/SonarSource/eslint-plugin-sonarjs#readme) | [non-existent-operator](https://github.com/SonarSource/eslint-plugin-sonarjs/blob/master/docs/rules/non-existent-operator.md)
Non-existent operators "=+", "=-" and "=!" should not be used | | ๐ก | |
-### โ ๏ธ Warnings (150)
+### โ ๏ธ Warnings (169)
| Plugin | Rule | Options | Autofix | Overrides |
| :--------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :-----: | :-------: |
@@ -164,11 +145,13 @@ Refer to [setup instructions in README](../README.md#๐๏ธ-setup).
| | [max-depth](https://eslint.org/docs/latest/rules/max-depth)
Enforce a maximum depth that blocks can be nested | | | |
| | [max-lines](https://eslint.org/docs/latest/rules/max-lines)
Enforce a maximum number of lines per file | skipBlankLines: true, skipC...
{
"skipBlankLines": true,
"skipComments": true
}
| | ๐งช๐ซ |
| | [max-lines-per-function](https://eslint.org/docs/latest/rules/max-lines-per-function)
Enforce a maximum number of lines of code in a function | skipBlankLines: true, skipC...
{
"skipBlankLines": true,
"skipComments": true
}
| | ๐งช๐ซ |
-| | [max-nested-callbacks](https://eslint.org/docs/latest/rules/max-nested-callbacks)
Enforce a maximum depth that callbacks can be nested | max: 3
{
"max": 3
}
| | |
+| | [max-nested-callbacks](https://eslint.org/docs/latest/rules/max-nested-callbacks)
Enforce a maximum depth that callbacks can be nested | max: 10
{
"max": 10
}
| | |
| | [no-bitwise](https://eslint.org/docs/latest/rules/no-bitwise)
Disallow bitwise operators | | | |
| | [no-console](https://eslint.org/docs/latest/rules/no-console)
Disallow the use of `console` | allow: error, warn, info
{
"allow": [
"error",
"warn",
"info"
]
}
| ๐ก | |
| | [no-duplicate-imports](https://eslint.org/docs/latest/rules/no-duplicate-imports)
Disallow duplicate module imports | | | |
+| | [no-empty-static-block](https://eslint.org/docs/latest/rules/no-empty-static-block)
Disallow empty static blocks | | | |
| | [no-undef-init](https://eslint.org/docs/latest/rules/no-undef-init)
Disallow initializing variables to `undefined` | | ๐ง | |
+| | [no-unused-private-class-members](https://eslint.org/docs/latest/rules/no-unused-private-class-members)
Disallow unused private class members | | | |
| | [no-useless-rename](https://eslint.org/docs/latest/rules/no-useless-rename)
Disallow renaming import, export, and destructured assignments to the same name | | ๐ง | |
| | [object-shorthand](https://eslint.org/docs/latest/rules/object-shorthand)
Require or disallow method and property shorthand syntax for object literals | | ๐ง | |
| | [prefer-template](https://eslint.org/docs/latest/rules/prefer-template)
Require template literals instead of string concatenation | | ๐ง | |
@@ -188,7 +171,9 @@ Refer to [setup instructions in README](../README.md#๐๏ธ-setup).
| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-import-type-side-effects](https://typescript-eslint.io/rules/no-import-type-side-effects)
Enforce the use of top-level import type qualifier when an import only has specifiers with inline type qualifiers | | ๐ง | |
| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-magic-numbers](https://typescript-eslint.io/rules/no-magic-numbers)
Disallow magic numbers | ignore: -1, 0, 1, 2, 7, 10,...
{
"ignore": [
-1,
0,
1,
2,
7,
10,
24,
60,
100,
1000,
3600
],
"ignoreClassFieldInitialValues": true,
"ignoreDefaultValues": true,
"ignoreEnums": true,
"ignoreNumericLiteralTypes": true,
"ignoreReadonlyClassProperties": true,
"ignoreTypeIndexes": true,
"enforceConst": true,
"detectObjects": true
}
| | ๐งช๐ซ |
| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-shadow](https://typescript-eslint.io/rules/no-shadow)
Disallow variable declarations from shadowing variables declared in the outer scope | | | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-unused-expressions](https://typescript-eslint.io/rules/no-unused-expressions)
Disallow unused expressions | | | |
| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [prefer-function-type](https://typescript-eslint.io/rules/prefer-function-type)
Enforce using function types instead of interfaces with call signatures | | ๐ง | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [prefer-namespace-keyword](https://typescript-eslint.io/rules/prefer-namespace-keyword)
Require using `namespace` keyword over `module` keyword to declare custom TypeScript modules | | ๐ง | |
| [![functional](./icons/icons8/lambda.png)](https://github.com/eslint-functional/eslint-plugin-functional#readme) | [no-let](https://github.com/eslint-functional/eslint-plugin-functional/blob/v7.0.0/docs/rules/no-let.md)
Disallow mutable variables. | | | ๐งช๐ซ |
| [![functional](./icons/icons8/lambda.png)](https://github.com/eslint-functional/eslint-plugin-functional#readme) | [no-loop-statements](https://github.com/eslint-functional/eslint-plugin-functional/blob/v7.0.0/docs/rules/no-loop-statements.md)
Disallow imperative loops. | | | |
| [![import](./icons/icons8/import.png)](https://github.com/import-js/eslint-plugin-import#readme) | [max-dependencies](https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/max-dependencies.md)
Enforce the maximum number of dependencies a module can have. | ignoreTypeImports: true
{
"ignoreTypeImports": true
}
| | |
@@ -199,11 +184,26 @@ Refer to [setup instructions in README](../README.md#๐๏ธ-setup).
| [![import](./icons/icons8/import.png)](https://github.com/import-js/eslint-plugin-import#readme) | [no-named-default](https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-named-default.md)
Forbid named default exports. | | | |
| [![import](./icons/icons8/import.png)](https://github.com/import-js/eslint-plugin-import#readme) | [no-unassigned-import](https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-unassigned-import.md)
Forbid unassigned imports | | | |
| [![import](./icons/icons8/import.png)](https://github.com/import-js/eslint-plugin-import#readme) | [no-useless-path-segments](https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-useless-path-segments.md)
Forbid unnecessary path segments in import and require statements. | | ๐ง | |
-| [![promise](./icons/icons8/promise.png)](https://github.com/eslint-community/eslint-plugin-promise#readme) | [no-callback-in-promise](https://github.com/eslint-community/eslint-plugin-promise/blob/main/docs/rules/no-callback-in-promise.md)
Disallow calling `cb()` inside of a `then()` (use [nodeify][] instead). | | | |
+| [![promise](./icons/icons8/promise.png)](https://github.com/eslint-community/eslint-plugin-promise#readme) | [no-callback-in-promise](https://github.com/eslint-community/eslint-plugin-promise/blob/main/docs/rules/no-callback-in-promise.md)
Disallow calling `cb()` inside of a `then()` (use [nodeify][] instead). | exceptions: next
{
"exceptions": [
"next"
]
}
| | |
| [![promise](./icons/icons8/promise.png)](https://github.com/eslint-community/eslint-plugin-promise#readme) | [no-nesting](https://github.com/eslint-community/eslint-plugin-promise/blob/main/docs/rules/no-nesting.md)
Disallow nested `then()` or `catch()` statements. | | | |
| [![promise](./icons/icons8/promise.png)](https://github.com/eslint-community/eslint-plugin-promise#readme) | [no-promise-in-callback](https://github.com/eslint-community/eslint-plugin-promise/blob/main/docs/rules/no-promise-in-callback.md)
Disallow using promises inside of callbacks. | | | |
| [![promise](./icons/icons8/promise.png)](https://github.com/eslint-community/eslint-plugin-promise#readme) | [no-return-in-finally](https://github.com/eslint-community/eslint-plugin-promise/blob/main/docs/rules/no-return-in-finally.md)
Disallow return statements in `finally()`. | | | |
| [![promise](./icons/icons8/promise.png)](https://github.com/eslint-community/eslint-plugin-promise#readme) | [valid-params](https://github.com/eslint-community/eslint-plugin-promise/blob/main/docs/rules/valid-params.md)
Enforces the proper number of arguments are passed to Promise functions. | | | |
+| [![sonarjs](./icons/other/sonar.png)](https://github.com/SonarSource/eslint-plugin-sonarjs#readme) | [max-switch-cases](https://github.com/SonarSource/eslint-plugin-sonarjs/blob/master/docs/rules/max-switch-cases.md)
"switch" statements should not have too many "case" clauses | | | |
+| [![sonarjs](./icons/other/sonar.png)](https://github.com/SonarSource/eslint-plugin-sonarjs#readme) | [no-collapsible-if](https://github.com/SonarSource/eslint-plugin-sonarjs/blob/master/docs/rules/no-collapsible-if.md)
Collapsible "if" statements should be merged | | | |
+| [![sonarjs](./icons/other/sonar.png)](https://github.com/SonarSource/eslint-plugin-sonarjs#readme) | [no-duplicate-string](https://github.com/SonarSource/eslint-plugin-sonarjs/blob/master/docs/rules/no-duplicate-string.md)
String literals should not be duplicated | | | ๐งช๐ซ |
+| [![sonarjs](./icons/other/sonar.png)](https://github.com/SonarSource/eslint-plugin-sonarjs#readme) | [no-inverted-boolean-check](https://github.com/SonarSource/eslint-plugin-sonarjs/blob/master/docs/rules/no-inverted-boolean-check.md)
Boolean checks should not be inverted | | ๐ง, ๐ก | |
+| [![sonarjs](./icons/other/sonar.png)](https://github.com/SonarSource/eslint-plugin-sonarjs#readme) | [no-nested-switch](https://github.com/SonarSource/eslint-plugin-sonarjs/blob/master/docs/rules/no-nested-switch.md)
"switch" statements should not be nested | | | |
+| [![sonarjs](./icons/other/sonar.png)](https://github.com/SonarSource/eslint-plugin-sonarjs#readme) | [no-nested-template-literals](https://github.com/SonarSource/eslint-plugin-sonarjs/blob/master/docs/rules/no-nested-template-literals.md)
Template literals should not be nested | | | |
+| [![sonarjs](./icons/other/sonar.png)](https://github.com/SonarSource/eslint-plugin-sonarjs#readme) | [no-redundant-boolean](https://github.com/SonarSource/eslint-plugin-sonarjs/blob/master/docs/rules/no-redundant-boolean.md)
Boolean literals should not be redundant | | | |
+| [![sonarjs](./icons/other/sonar.png)](https://github.com/SonarSource/eslint-plugin-sonarjs#readme) | [no-redundant-jump](https://github.com/SonarSource/eslint-plugin-sonarjs/blob/master/docs/rules/no-redundant-jump.md)
Jump statements should not be redundant | | ๐ก | |
+| [![sonarjs](./icons/other/sonar.png)](https://github.com/SonarSource/eslint-plugin-sonarjs#readme) | [no-same-line-conditional](https://github.com/SonarSource/eslint-plugin-sonarjs/blob/master/docs/rules/no-same-line-conditional.md)
Conditionals should start on new lines | | ๐ก | |
+| [![sonarjs](./icons/other/sonar.png)](https://github.com/SonarSource/eslint-plugin-sonarjs#readme) | [no-small-switch](https://github.com/SonarSource/eslint-plugin-sonarjs/blob/master/docs/rules/no-small-switch.md)
"switch" statements should have at least 3 "case" clauses | | | |
+| [![sonarjs](./icons/other/sonar.png)](https://github.com/SonarSource/eslint-plugin-sonarjs#readme) | [no-useless-catch](https://github.com/SonarSource/eslint-plugin-sonarjs/blob/master/docs/rules/no-useless-catch.md)
"catch" clauses should do more than rethrow | | | |
+| [![sonarjs](./icons/other/sonar.png)](https://github.com/SonarSource/eslint-plugin-sonarjs#readme) | [prefer-immediate-return](https://github.com/SonarSource/eslint-plugin-sonarjs/blob/master/docs/rules/prefer-immediate-return.md)
Local variables should not be declared and then immediately returned or thrown | | ๐ง | |
+| [![sonarjs](./icons/other/sonar.png)](https://github.com/SonarSource/eslint-plugin-sonarjs#readme) | [prefer-object-literal](https://github.com/SonarSource/eslint-plugin-sonarjs/blob/master/docs/rules/prefer-object-literal.md)
Object literal syntax should be used | | | |
+| [![sonarjs](./icons/other/sonar.png)](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)
Return of boolean expressions should not be wrapped into an "if-then-else" statement | | ๐ก | |
+| [![sonarjs](./icons/other/sonar.png)](https://github.com/SonarSource/eslint-plugin-sonarjs#readme) | [prefer-while](https://github.com/SonarSource/eslint-plugin-sonarjs/blob/master/docs/rules/prefer-while.md)
A "while" loop should be used instead of a "for" loop | | ๐ง | |
| [![unicorn](./icons/icons8/unicorn.png)](https://github.com/sindresorhus/eslint-plugin-unicorn#readme) | [better-regex](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v50.0.0/docs/rules/better-regex.md)
Improve regexes by making them shorter, consistent, and safer. | sortCharacterClasses: false
{
"sortCharacterClasses": false
}
| ๐ง | |
| [![unicorn](./icons/icons8/unicorn.png)](https://github.com/sindresorhus/eslint-plugin-unicorn#readme) | [catch-error-name](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v50.0.0/docs/rules/catch-error-name.md)
Enforce a specific parameter name in catch clauses. | | ๐ง | |
| [![unicorn](./icons/icons8/unicorn.png)](https://github.com/sindresorhus/eslint-plugin-unicorn#readme) | [consistent-destructuring](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v50.0.0/docs/rules/consistent-destructuring.md)
Use destructured variables over properties. | | ๐ง, ๐ก | |
diff --git a/docs/jest.md b/docs/jest.md
index 6cb5890..40c5588 100644
--- a/docs/jest.md
+++ b/docs/jest.md
@@ -33,37 +33,37 @@ Config for projects using **Jest** for testing.
> ๐ง Automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/user-guide/command-line-interface#--fix).
๐ก Manually fixable by [editor suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).
-### ๐จ Errors (16)
+### ๐จ Errors (8)
| Plugin | Rule | Options | Autofix | Overrides |
| :-----------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :------ | :-----: | :-------: |
-| [![jest](./icons/material/jest.png)](https://github.com/jest-community/eslint-plugin-jest#readme) | [no-alias-methods](https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.0/docs/rules/no-alias-methods.md)
Disallow alias methods | | ๐ง | |
-| [![jest](./icons/material/jest.png)](https://github.com/jest-community/eslint-plugin-jest#readme) | [no-conditional-expect](https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.0/docs/rules/no-conditional-expect.md)
Disallow calling `expect` conditionally | | | |
-| [![jest](./icons/material/jest.png)](https://github.com/jest-community/eslint-plugin-jest#readme) | [no-deprecated-functions](https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.0/docs/rules/no-deprecated-functions.md)
Disallow use of deprecated functions | | ๐ง | |
-| [![jest](./icons/material/jest.png)](https://github.com/jest-community/eslint-plugin-jest#readme) | [no-done-callback](https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.0/docs/rules/no-done-callback.md)
Disallow using a callback in asynchronous tests and hooks | | ๐ก | |
-| [![jest](./icons/material/jest.png)](https://github.com/jest-community/eslint-plugin-jest#readme) | [no-export](https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.0/docs/rules/no-export.md)
Disallow using `exports` in files containing tests | | | |
-| [![jest](./icons/material/jest.png)](https://github.com/jest-community/eslint-plugin-jest#readme) | [no-focused-tests](https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.0/docs/rules/no-focused-tests.md)
Disallow focused tests | | ๐ก | |
| [![jest](./icons/material/jest.png)](https://github.com/jest-community/eslint-plugin-jest#readme) | [no-identical-title](https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.0/docs/rules/no-identical-title.md)
Disallow identical titles | | | |
| [![jest](./icons/material/jest.png)](https://github.com/jest-community/eslint-plugin-jest#readme) | [no-interpolation-in-snapshots](https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.0/docs/rules/no-interpolation-in-snapshots.md)
Disallow string interpolation inside snapshots | | | |
| [![jest](./icons/material/jest.png)](https://github.com/jest-community/eslint-plugin-jest#readme) | [no-jasmine-globals](https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.0/docs/rules/no-jasmine-globals.md)
Disallow Jasmine globals | | ๐ง | |
-| [![jest](./icons/material/jest.png)](https://github.com/jest-community/eslint-plugin-jest#readme) | [no-mocks-import](https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.0/docs/rules/no-mocks-import.md)
Disallow manually importing from `__mocks__` | | | |
-| [![jest](./icons/material/jest.png)](https://github.com/jest-community/eslint-plugin-jest#readme) | [no-standalone-expect](https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.0/docs/rules/no-standalone-expect.md)
Disallow using `expect` outside of `it` or `test` blocks | | | |
| [![jest](./icons/material/jest.png)](https://github.com/jest-community/eslint-plugin-jest#readme) | [no-test-prefixes](https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.0/docs/rules/no-test-prefixes.md)
Require using `.only` and `.skip` over `f` and `x` | | ๐ง | |
| [![jest](./icons/material/jest.png)](https://github.com/jest-community/eslint-plugin-jest#readme) | [valid-describe-callback](https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.0/docs/rules/valid-describe-callback.md)
Enforce valid `describe()` callback | | | |
| [![jest](./icons/material/jest.png)](https://github.com/jest-community/eslint-plugin-jest#readme) | [valid-expect](https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.0/docs/rules/valid-expect.md)
Enforce valid `expect()` usage | | ๐ง | |
| [![jest](./icons/material/jest.png)](https://github.com/jest-community/eslint-plugin-jest#readme) | [valid-expect-in-promise](https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.0/docs/rules/valid-expect-in-promise.md)
Require promises that have expectations in their chain to be valid | | | |
| [![jest](./icons/material/jest.png)](https://github.com/jest-community/eslint-plugin-jest#readme) | [valid-title](https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.0/docs/rules/valid-title.md)
Enforce valid titles | | ๐ง | |
-### โ ๏ธ Warnings (27)
+### โ ๏ธ Warnings (35)
| Plugin | Rule | Options | Autofix | Overrides |
| :-----------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :----------------------------------------------------------------------------------------------------- | :-----: | :-------: |
| [![jest](./icons/material/jest.png)](https://github.com/jest-community/eslint-plugin-jest#readme) | [consistent-test-it](https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.0/docs/rules/consistent-test-it.md)
Enforce `test` and `it` usage conventions | | ๐ง | |
| [![jest](./icons/material/jest.png)](https://github.com/jest-community/eslint-plugin-jest#readme) | [expect-expect](https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.0/docs/rules/expect-expect.md)
Enforce assertion to be made in a test body | | | |
| [![jest](./icons/material/jest.png)](https://github.com/jest-community/eslint-plugin-jest#readme) | [max-nested-describe](https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.0/docs/rules/max-nested-describe.md)
Enforces a maximum depth to nested describe calls | max: 2
{
"max": 2
}
| | |
+| [![jest](./icons/material/jest.png)](https://github.com/jest-community/eslint-plugin-jest#readme) | [no-alias-methods](https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.0/docs/rules/no-alias-methods.md)
Disallow alias methods | | ๐ง | |
| [![jest](./icons/material/jest.png)](https://github.com/jest-community/eslint-plugin-jest#readme) | [no-commented-out-tests](https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.0/docs/rules/no-commented-out-tests.md)
Disallow commented out tests | | | |
+| [![jest](./icons/material/jest.png)](https://github.com/jest-community/eslint-plugin-jest#readme) | [no-conditional-expect](https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.0/docs/rules/no-conditional-expect.md)
Disallow calling `expect` conditionally | | | |
+| [![jest](./icons/material/jest.png)](https://github.com/jest-community/eslint-plugin-jest#readme) | [no-deprecated-functions](https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.0/docs/rules/no-deprecated-functions.md)
Disallow use of deprecated functions | | ๐ง | |
| [![jest](./icons/material/jest.png)](https://github.com/jest-community/eslint-plugin-jest#readme) | [no-disabled-tests](https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.0/docs/rules/no-disabled-tests.md)
Disallow disabled tests | | | |
+| [![jest](./icons/material/jest.png)](https://github.com/jest-community/eslint-plugin-jest#readme) | [no-done-callback](https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.0/docs/rules/no-done-callback.md)
Disallow using a callback in asynchronous tests and hooks | | ๐ก | |
| [![jest](./icons/material/jest.png)](https://github.com/jest-community/eslint-plugin-jest#readme) | [no-duplicate-hooks](https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.0/docs/rules/no-duplicate-hooks.md)
Disallow duplicate setup and teardown hooks | | | |
+| [![jest](./icons/material/jest.png)](https://github.com/jest-community/eslint-plugin-jest#readme) | [no-export](https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.0/docs/rules/no-export.md)
Disallow using `exports` in files containing tests | | | |
+| [![jest](./icons/material/jest.png)](https://github.com/jest-community/eslint-plugin-jest#readme) | [no-focused-tests](https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.0/docs/rules/no-focused-tests.md)
Disallow focused tests | | ๐ก | |
+| [![jest](./icons/material/jest.png)](https://github.com/jest-community/eslint-plugin-jest#readme) | [no-mocks-import](https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.0/docs/rules/no-mocks-import.md)
Disallow manually importing from `__mocks__` | | | |
+| [![jest](./icons/material/jest.png)](https://github.com/jest-community/eslint-plugin-jest#readme) | [no-standalone-expect](https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.0/docs/rules/no-standalone-expect.md)
Disallow using `expect` outside of `it` or `test` blocks | | | |
| [![jest](./icons/material/jest.png)](https://github.com/jest-community/eslint-plugin-jest#readme) | [no-test-return-statement](https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.0/docs/rules/no-test-return-statement.md)
Disallow explicitly returning from tests | | | |
| [![jest](./icons/material/jest.png)](https://github.com/jest-community/eslint-plugin-jest#readme) | [padding-around-after-all-blocks](https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.0/docs/rules/padding-around-after-all-blocks.md)
Enforce padding around `afterAll` blocks | | ๐ง | |
| [![jest](./icons/material/jest.png)](https://github.com/jest-community/eslint-plugin-jest#readme) | [padding-around-after-each-blocks](https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.0/docs/rules/padding-around-after-each-blocks.md)
Enforce padding around `afterEach` blocks | | ๐ง | |
diff --git a/docs/typescript.md b/docs/typescript.md
index 94e74b0..6af9a54 100644
--- a/docs/typescript.md
+++ b/docs/typescript.md
@@ -71,67 +71,67 @@ Config for strict **TypeScript** projects.
> ๐ง Automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/user-guide/command-line-interface#--fix).
๐ก Manually fixable by [editor suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).
๐งช๐ซ Disabled for [test files](../README.md#๐งช-test-overrides).
๐งชโ ๏ธ Severity lessened to warning for [test files](../README.md#๐งช-test-overrides).
-### ๐จ Errors (47)
+### ๐จ Errors (35)
-| Plugin | Rule | Options | Autofix | Overrides |
-| :--------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :-----: | :-------: |
-| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [await-thenable](https://typescript-eslint.io/rules/await-thenable)
Disallow awaiting a value that is not a Thenable | | ๐ก | |
-| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [consistent-type-assertions](https://typescript-eslint.io/rules/consistent-type-assertions)
Enforce consistent usage of type assertions | assertionStyle: as, objectL...
{
"assertionStyle": "as",
"objectLiteralTypeAssertions": "never"
}
| ๐ง, ๐ก | ๐งชโ ๏ธ |
-| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-array-delete](https://typescript-eslint.io/rules/no-array-delete)
Disallow using the `delete` operator on array values | | ๐ก | |
-| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-base-to-string](https://typescript-eslint.io/rules/no-base-to-string)
Require `.toString()` and `.toLocaleString()` to only be called on objects which provide useful information when stringified | | | |
-| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-confusing-void-expression](https://typescript-eslint.io/rules/no-confusing-void-expression)
Require expressions of type void to appear in statement position | | ๐ง, ๐ก | |
-| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-deprecated](https://typescript-eslint.io/rules/no-deprecated)
Disallow using code marked as `@deprecated` | | | |
-| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-duplicate-type-constituents](https://typescript-eslint.io/rules/no-duplicate-type-constituents)
Disallow duplicate constituents of union or intersection types | | ๐ง | |
-| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-dynamic-delete](https://typescript-eslint.io/rules/no-dynamic-delete)
Disallow using the `delete` operator on computed key expressions | | ๐ง | |
-| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-extraneous-class](https://typescript-eslint.io/rules/no-extraneous-class)
Disallow classes used as namespaces | | | |
-| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-floating-promises](https://typescript-eslint.io/rules/no-floating-promises)
Require Promise-like statements to be handled appropriately | | ๐ก | |
-| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-for-in-array](https://typescript-eslint.io/rules/no-for-in-array)
Disallow iterating over an array with a for-in loop | | | |
-| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-implied-eval](https://typescript-eslint.io/rules/no-implied-eval)
Disallow the use of `eval()`-like methods | | | |
-| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-invalid-void-type](https://typescript-eslint.io/rules/no-invalid-void-type)
Disallow `void` type outside of generic or return types | | | |
-| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-meaningless-void-operator](https://typescript-eslint.io/rules/no-meaningless-void-operator)
Disallow the `void` operator except when used to discard a value | | ๐ง, ๐ก | |
-| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-misused-promises](https://typescript-eslint.io/rules/no-misused-promises)
Disallow Promises in places not designed to handle them | | | |
-| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-mixed-enums](https://typescript-eslint.io/rules/no-mixed-enums)
Disallow enums from having both number and string members | | | |
-| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-non-null-asserted-nullish-coalescing](https://typescript-eslint.io/rules/no-non-null-asserted-nullish-coalescing)
Disallow non-null assertions in the left operand of a nullish coalescing operator | | ๐ก | |
-| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-non-null-assertion](https://typescript-eslint.io/rules/no-non-null-assertion)
Disallow non-null assertions using the `!` postfix operator | | ๐ก | ๐งช๐ซ |
-| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-redundant-type-constituents](https://typescript-eslint.io/rules/no-redundant-type-constituents)
Disallow members of unions and intersections that do nothing or override type information | | | |
-| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-unnecessary-boolean-literal-compare](https://typescript-eslint.io/rules/no-unnecessary-boolean-literal-compare)
Disallow unnecessary equality comparisons against boolean literals | | ๐ง | |
-| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-unnecessary-condition](https://typescript-eslint.io/rules/no-unnecessary-condition)
Disallow conditionals where the type is always truthy or always falsy | | ๐ง | |
-| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-unnecessary-template-expression](https://typescript-eslint.io/rules/no-unnecessary-template-expression)
Disallow unnecessary template expressions | | ๐ง | |
-| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-unnecessary-type-arguments](https://typescript-eslint.io/rules/no-unnecessary-type-arguments)
Disallow type arguments that are equal to the default | | ๐ง | |
-| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-unnecessary-type-assertion](https://typescript-eslint.io/rules/no-unnecessary-type-assertion)
Disallow type assertions that do not change the type of an expression | | ๐ง | |
-| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-unnecessary-type-parameters](https://typescript-eslint.io/rules/no-unnecessary-type-parameters)
Disallow type parameters that aren't used multiple times | | ๐ก | |
-| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-unsafe-argument](https://typescript-eslint.io/rules/no-unsafe-argument)
Disallow calling a function with a value with type `any` | | | ๐งช๐ซ |
-| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-unsafe-assignment](https://typescript-eslint.io/rules/no-unsafe-assignment)
Disallow assigning a value with type `any` to variables and properties | | | ๐งช๐ซ |
-| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-unsafe-call](https://typescript-eslint.io/rules/no-unsafe-call)
Disallow calling a value with type `any` | | | |
-| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-unsafe-enum-comparison](https://typescript-eslint.io/rules/no-unsafe-enum-comparison)
Disallow comparing an enum value with a non-enum value | | ๐ก | |
-| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-unsafe-member-access](https://typescript-eslint.io/rules/no-unsafe-member-access)
Disallow member access on a value with type `any` | | | ๐งช๐ซ |
-| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-unsafe-return](https://typescript-eslint.io/rules/no-unsafe-return)
Disallow returning a value with type `any` from a function | | | ๐งช๐ซ |
-| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-unsafe-unary-minus](https://typescript-eslint.io/rules/no-unsafe-unary-minus)
Require unary negation to take a number | | | |
-| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-useless-constructor](https://typescript-eslint.io/rules/no-useless-constructor)
Disallow unnecessary constructors | | ๐ก | |
-| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [non-nullable-type-assertion-style](https://typescript-eslint.io/rules/non-nullable-type-assertion-style)
Enforce non-null assertions over explicit type casts | | ๐ง | |
-| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [only-throw-error](https://typescript-eslint.io/rules/only-throw-error)
Disallow throwing non-`Error` values as exceptions | | | |
-| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [prefer-literal-enum-member](https://typescript-eslint.io/rules/prefer-literal-enum-member)
Require all enum members to be literal values | | | |
-| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [prefer-promise-reject-errors](https://typescript-eslint.io/rules/prefer-promise-reject-errors)
Require using Error objects as Promise rejection reasons | | | |
-| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [prefer-reduce-type-parameter](https://typescript-eslint.io/rules/prefer-reduce-type-parameter)
Enforce using type parameter when calling `Array#reduce` instead of casting | | ๐ง | ๐งช๐ซ |
-| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [prefer-return-this-type](https://typescript-eslint.io/rules/prefer-return-this-type)
Enforce that `this` is used when only `this` type is returned | | ๐ง | |
-| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [require-await](https://typescript-eslint.io/rules/require-await)
Disallow async functions which do not return promises and have no `await` expression | | ๐ก | ๐งชโ ๏ธ |
-| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [restrict-plus-operands](https://typescript-eslint.io/rules/restrict-plus-operands)
Require both operands of addition to be the same type and be `bigint`, `number`, or `string` | | | |
-| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [restrict-template-expressions](https://typescript-eslint.io/rules/restrict-template-expressions)
Enforce template literal expressions to be of `string` type | | | ๐งช๐ซ |
-| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [return-await](https://typescript-eslint.io/rules/return-await)
Enforce consistent awaiting of returned promises | error-handling-correctness-...
"error-handling-correctness-only"
| ๐ง, ๐ก | |
-| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [unbound-method](https://typescript-eslint.io/rules/unbound-method)
Enforce unbound methods are called with their expected scope | | | |
-| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [unified-signatures](https://typescript-eslint.io/rules/unified-signatures)
Disallow two overloads that could be unified into one with a union or an optional/rest parameter | | | |
-| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [use-unknown-in-catch-callback-variable](https://typescript-eslint.io/rules/use-unknown-in-catch-callback-variable)
Enforce typing arguments in Promise rejection callbacks as `unknown` | | ๐ง, ๐ก | |
-| [![functional](./icons/icons8/lambda.png)](https://github.com/eslint-functional/eslint-plugin-functional#readme) | [immutable-data](https://github.com/eslint-functional/eslint-plugin-functional/blob/v7.0.0/docs/rules/immutable-data.md)
Enforce treating data as immutable. | ignoreImmediateMutation: tr...
{
"ignoreImmediateMutation": true,
"ignoreClasses": true,
"ignoreAccessorPattern": "module.exports"
}
| | ๐งชโ ๏ธ |
+| Plugin | Rule | Options | Autofix | Overrides |
+| :-------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :-----: | :-------: |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [await-thenable](https://typescript-eslint.io/rules/await-thenable)
Disallow awaiting a value that is not a Thenable | | ๐ก | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-array-delete](https://typescript-eslint.io/rules/no-array-delete)
Disallow using the `delete` operator on array values | | ๐ก | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-base-to-string](https://typescript-eslint.io/rules/no-base-to-string)
Require `.toString()` and `.toLocaleString()` to only be called on objects which provide useful information when stringified | | | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-deprecated](https://typescript-eslint.io/rules/no-deprecated)
Disallow using code marked as `@deprecated` | | | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-duplicate-type-constituents](https://typescript-eslint.io/rules/no-duplicate-type-constituents)
Disallow duplicate constituents of union or intersection types | | ๐ง | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-dynamic-delete](https://typescript-eslint.io/rules/no-dynamic-delete)
Disallow using the `delete` operator on computed key expressions | | ๐ง | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-extraneous-class](https://typescript-eslint.io/rules/no-extraneous-class)
Disallow classes used as namespaces | | | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-floating-promises](https://typescript-eslint.io/rules/no-floating-promises)
Require Promise-like statements to be handled appropriately | | ๐ก | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-for-in-array](https://typescript-eslint.io/rules/no-for-in-array)
Disallow iterating over an array with a for-in loop | | | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-implied-eval](https://typescript-eslint.io/rules/no-implied-eval)
Disallow the use of `eval()`-like methods | | | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-invalid-void-type](https://typescript-eslint.io/rules/no-invalid-void-type)
Disallow `void` type outside of generic or return types | | | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-misused-promises](https://typescript-eslint.io/rules/no-misused-promises)
Disallow Promises in places not designed to handle them | | | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-mixed-enums](https://typescript-eslint.io/rules/no-mixed-enums)
Disallow enums from having both number and string members | | | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-non-null-asserted-nullish-coalescing](https://typescript-eslint.io/rules/no-non-null-asserted-nullish-coalescing)
Disallow non-null assertions in the left operand of a nullish coalescing operator | | ๐ก | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-non-null-assertion](https://typescript-eslint.io/rules/no-non-null-assertion)
Disallow non-null assertions using the `!` postfix operator | | ๐ก | ๐งช๐ซ |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-redundant-type-constituents](https://typescript-eslint.io/rules/no-redundant-type-constituents)
Disallow members of unions and intersections that do nothing or override type information | | | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-unnecessary-type-assertion](https://typescript-eslint.io/rules/no-unnecessary-type-assertion)
Disallow type assertions that do not change the type of an expression | | ๐ง | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-unnecessary-type-parameters](https://typescript-eslint.io/rules/no-unnecessary-type-parameters)
Disallow type parameters that aren't used multiple times | | ๐ก | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-unsafe-argument](https://typescript-eslint.io/rules/no-unsafe-argument)
Disallow calling a function with a value with type `any` | | | ๐งช๐ซ |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-unsafe-assignment](https://typescript-eslint.io/rules/no-unsafe-assignment)
Disallow assigning a value with type `any` to variables and properties | | | ๐งช๐ซ |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-unsafe-call](https://typescript-eslint.io/rules/no-unsafe-call)
Disallow calling a value with type `any` | | | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-unsafe-enum-comparison](https://typescript-eslint.io/rules/no-unsafe-enum-comparison)
Disallow comparing an enum value with a non-enum value | | ๐ก | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-unsafe-member-access](https://typescript-eslint.io/rules/no-unsafe-member-access)
Disallow member access on a value with type `any` | | | ๐งช๐ซ |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-unsafe-return](https://typescript-eslint.io/rules/no-unsafe-return)
Disallow returning a value with type `any` from a function | | | ๐งช๐ซ |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-unsafe-unary-minus](https://typescript-eslint.io/rules/no-unsafe-unary-minus)
Require unary negation to take a number | | | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-useless-constructor](https://typescript-eslint.io/rules/no-useless-constructor)
Disallow unnecessary constructors | | ๐ก | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [non-nullable-type-assertion-style](https://typescript-eslint.io/rules/non-nullable-type-assertion-style)
Enforce non-null assertions over explicit type casts | | ๐ง | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [only-throw-error](https://typescript-eslint.io/rules/only-throw-error)
Disallow throwing non-`Error` values as exceptions | | | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [prefer-literal-enum-member](https://typescript-eslint.io/rules/prefer-literal-enum-member)
Require all enum members to be literal values | | | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [restrict-plus-operands](https://typescript-eslint.io/rules/restrict-plus-operands)
Require both operands of addition to be the same type and be `bigint`, `number`, or `string` | | | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [restrict-template-expressions](https://typescript-eslint.io/rules/restrict-template-expressions)
Enforce template literal expressions to be of `string` type | allowBoolean: true, allowNu...
{
"allowBoolean": true,
"allowNumber": true
}
| | ๐งช๐ซ |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [return-await](https://typescript-eslint.io/rules/return-await)
Enforce consistent awaiting of returned promises | error-handling-correctness-...
"error-handling-correctness-only"
| ๐ง, ๐ก | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [unbound-method](https://typescript-eslint.io/rules/unbound-method)
Enforce unbound methods are called with their expected scope | | | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [unified-signatures](https://typescript-eslint.io/rules/unified-signatures)
Disallow two overloads that could be unified into one with a union or an optional/rest parameter | | | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [use-unknown-in-catch-callback-variable](https://typescript-eslint.io/rules/use-unknown-in-catch-callback-variable)
Enforce typing arguments in Promise rejection callbacks as `unknown` | | ๐ง, ๐ก | |
-### โ ๏ธ Warnings (8)
+### โ ๏ธ Warnings (20)
-| Plugin | Rule | Options | Autofix | Overrides |
-| :--------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :-----: | :-------: |
-| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [dot-notation](https://typescript-eslint.io/rules/dot-notation)
Enforce dot notation whenever possible | allowIndexSignatureProperty...
{
"allowIndexSignaturePropertyAccess": true
}
| ๐ง | |
-| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [naming-convention](https://typescript-eslint.io/rules/naming-convention)
Enforce naming conventions for everything across a codebase | selector: variableLike, met...
[
{
"selector": [
"variableLike",
"method",
"typeProperty",
"parameterProperty",
"classProperty"
],
"format": [
"camelCase"
]
},
{
"selector": "variable",
"format": [
"camelCase",
"UPPER_CASE"
]
},
{
"selector": "typeLike",
"format": [
"PascalCase"
]
},
{
"selector": "enumMember",
"format": [
"PascalCase"
]
},
{
"selector": "parameter",
"modifiers": [
"unused"
],
"format": null,
"custom": {
"regex": "^(_+\|[a-z][a-zA-Z0-9]\*)$",
"match": true
}
},
{
"selector": "objectLiteralProperty",
"modifiers": [
"requiresQuotes"
],
"format": null
},
{
"selector": [
"variable",
"parameter"
],
"modifiers": [
"destructured"
],
"format": null
}
]
| | |
-| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [prefer-includes](https://typescript-eslint.io/rules/prefer-includes)
Enforce `includes` method over `indexOf` method | | ๐ง | |
-| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [prefer-nullish-coalescing](https://typescript-eslint.io/rules/prefer-nullish-coalescing)
Enforce using the nullish coalescing operator instead of logical assignments or chaining | ignorePrimitives: {"string"...
{
"ignorePrimitives": {
"string": true
}
}
| ๐ก | |
-| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [prefer-optional-chain](https://typescript-eslint.io/rules/prefer-optional-chain)
Enforce using concise optional chain expressions instead of chained logical ands, negated logical ors, or empty objects | | ๐ง, ๐ก | |
-| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [prefer-string-starts-ends-with](https://typescript-eslint.io/rules/prefer-string-starts-ends-with)
Enforce using `String#startsWith` and `String#endsWith` over other equivalent methods of checking substrings | | ๐ง | |
-| [![functional](./icons/icons8/lambda.png)](https://github.com/eslint-functional/eslint-plugin-functional#readme) | [prefer-property-signatures](https://github.com/eslint-functional/eslint-plugin-functional/blob/v7.0.0/docs/rules/prefer-property-signatures.md)
Prefer property signatures over method signatures. | | | |
-| [![functional](./icons/icons8/lambda.png)](https://github.com/eslint-functional/eslint-plugin-functional#readme) | [prefer-tacit](https://github.com/eslint-functional/eslint-plugin-functional/blob/v7.0.0/docs/rules/prefer-tacit.md)
Replaces `x => f(x)` with just `f`. | | ๐ก | |
+| Plugin | Rule | Options | Autofix | Overrides |
+| :--------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :-----: | :-------: |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [consistent-type-assertions](https://typescript-eslint.io/rules/consistent-type-assertions)
Enforce consistent usage of type assertions | assertionStyle: as, objectL...
{
"assertionStyle": "as",
"objectLiteralTypeAssertions": "allow"
}
| ๐ง, ๐ก | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [dot-notation](https://typescript-eslint.io/rules/dot-notation)
Enforce dot notation whenever possible | allowPrivateClassPropertyAc...
{
"allowPrivateClassPropertyAccess": true,
"allowProtectedClassPropertyAccess": true,
"allowIndexSignaturePropertyAccess": true
}
| ๐ง | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [naming-convention](https://typescript-eslint.io/rules/naming-convention)
Enforce naming conventions for everything across a codebase | selector: variableLike, met...
[
{
"selector": [
"variableLike",
"method",
"typeProperty",
"parameterProperty",
"classProperty"
],
"format": [
"camelCase"
]
},
{
"selector": "variable",
"format": [
"camelCase",
"UPPER_CASE",
"PascalCase"
]
},
{
"selector": "typeLike",
"format": [
"PascalCase"
]
},
{
"selector": "enumMember",
"format": [
"PascalCase"
]
},
{
"selector": "parameter",
"modifiers": [
"unused"
],
"format": null,
"custom": {
"regex": "^(_+\|[a-z][a-zA-Z0-9]\*)$",
"match": true
}
},
{
"selector": "objectLiteralProperty",
"modifiers": [
"requiresQuotes"
],
"format": null
},
{
"selector": [
"variable",
"parameter"
],
"modifiers": [
"destructured"
],
"format": null
}
]
| | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-confusing-void-expression](https://typescript-eslint.io/rules/no-confusing-void-expression)
Require expressions of type void to appear in statement position | | ๐ง, ๐ก | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-meaningless-void-operator](https://typescript-eslint.io/rules/no-meaningless-void-operator)
Disallow the `void` operator except when used to discard a value | | ๐ง, ๐ก | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-unnecessary-boolean-literal-compare](https://typescript-eslint.io/rules/no-unnecessary-boolean-literal-compare)
Disallow unnecessary equality comparisons against boolean literals | | ๐ง | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-unnecessary-condition](https://typescript-eslint.io/rules/no-unnecessary-condition)
Disallow conditionals where the type is always truthy or always falsy | | ๐ง | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-unnecessary-template-expression](https://typescript-eslint.io/rules/no-unnecessary-template-expression)
Disallow unnecessary template expressions | | ๐ง | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [no-unnecessary-type-arguments](https://typescript-eslint.io/rules/no-unnecessary-type-arguments)
Disallow type arguments that are equal to the default | | ๐ง | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [prefer-includes](https://typescript-eslint.io/rules/prefer-includes)
Enforce `includes` method over `indexOf` method | | ๐ง | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [prefer-nullish-coalescing](https://typescript-eslint.io/rules/prefer-nullish-coalescing)
Enforce using the nullish coalescing operator instead of logical assignments or chaining | ignorePrimitives: {"string"...
{
"ignorePrimitives": {
"string": true
}
}
| ๐ก | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [prefer-optional-chain](https://typescript-eslint.io/rules/prefer-optional-chain)
Enforce using concise optional chain expressions instead of chained logical ands, negated logical ors, or empty objects | | ๐ง, ๐ก | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [prefer-promise-reject-errors](https://typescript-eslint.io/rules/prefer-promise-reject-errors)
Require using Error objects as Promise rejection reasons | | | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [prefer-reduce-type-parameter](https://typescript-eslint.io/rules/prefer-reduce-type-parameter)
Enforce using type parameter when calling `Array#reduce` instead of casting | | ๐ง | ๐งช๐ซ |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [prefer-return-this-type](https://typescript-eslint.io/rules/prefer-return-this-type)
Enforce that `this` is used when only `this` type is returned | | ๐ง | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [prefer-string-starts-ends-with](https://typescript-eslint.io/rules/prefer-string-starts-ends-with)
Enforce using `String#startsWith` and `String#endsWith` over other equivalent methods of checking substrings | | ๐ง | |
+| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [require-await](https://typescript-eslint.io/rules/require-await)
Disallow async functions which do not return promises and have no `await` expression | | ๐ก | |
+| [![functional](./icons/icons8/lambda.png)](https://github.com/eslint-functional/eslint-plugin-functional#readme) | [immutable-data](https://github.com/eslint-functional/eslint-plugin-functional/blob/v7.0.0/docs/rules/immutable-data.md)
Enforce treating data as immutable. | ignoreImmediateMutation: tr...
{
"ignoreImmediateMutation": true,
"ignoreClasses": true,
"ignoreAccessorPattern": "module.exports"
}
| | |
+| [![functional](./icons/icons8/lambda.png)](https://github.com/eslint-functional/eslint-plugin-functional#readme) | [prefer-property-signatures](https://github.com/eslint-functional/eslint-plugin-functional/blob/v7.0.0/docs/rules/prefer-property-signatures.md)
Prefer property signatures over method signatures. | | | |
+| [![functional](./icons/icons8/lambda.png)](https://github.com/eslint-functional/eslint-plugin-functional#readme) | [prefer-tacit](https://github.com/eslint-functional/eslint-plugin-functional/blob/v7.0.0/docs/rules/prefer-tacit.md)
Replaces `x => f(x)` with just `f`. | | ๐ก | |
diff --git a/scripts/docs.js b/scripts/docs.js
index e831d70..d07b117 100644
--- a/scripts/docs.js
+++ b/scripts/docs.js
@@ -164,10 +164,18 @@ async function generateConfigDocs(config, allConfigs, peerDeps) {
const markdown = configRulesToMarkdown(
config.name,
ruleIds.map(id => {
- const entry = findRuleEntry(
- config.flatConfig.filter(({ files }) => files !== TEST_FILE_PATTERNS),
- id,
- );
+ const entry =
+ findRuleEntry(
+ config.flatConfig.filter(
+ ({ name }) =>
+ name?.startsWith('code-pushup/') && name.endsWith('/customized'),
+ ),
+ id,
+ ) ??
+ findRuleEntry(
+ config.flatConfig.filter(({ files }) => files !== TEST_FILE_PATTERNS),
+ id,
+ );
if (entry == null) {
throw new Error(
`Internal logic error - no entry found for rule ${id} in ${config.name} config`,
diff --git a/src/configs/graphql.js b/src/configs/graphql.js
index 8ea7993..87ab7d3 100644
--- a/src/configs/graphql.js
+++ b/src/configs/graphql.js
@@ -27,6 +27,11 @@ export default tseslint.config(...node, {
'error',
{ listTypeCanWrapOnlyEdgeType: false },
],
+ },
+ },
+ {
+ name: 'code-pushup/graphql/disabled',
+ rules: {
'@graphql-eslint/strict-id-in-types': 'off',
},
},