mirror of
https://github.com/theoludwig/eslint-config-conventions.git
synced 2026-02-23 23:14:58 +01:00
fix: relax @typescript-eslint/prefer-nullish-coalescing
This commit is contained in:
@@ -245,7 +245,7 @@
|
|||||||
"@typescript-eslint/no-require-imports": "error",
|
"@typescript-eslint/no-require-imports": "error",
|
||||||
"@typescript-eslint/prefer-function-type": "error",
|
"@typescript-eslint/prefer-function-type": "error",
|
||||||
"@typescript-eslint/prefer-find": "error",
|
"@typescript-eslint/prefer-find": "error",
|
||||||
"@typescript-eslint/prefer-nullish-coalescing": "error",
|
"@typescript-eslint/prefer-nullish-coalescing": "off",
|
||||||
"@typescript-eslint/prefer-readonly": "error",
|
"@typescript-eslint/prefer-readonly": "error",
|
||||||
"@typescript-eslint/prefer-reduce-type-parameter": "error",
|
"@typescript-eslint/prefer-reduce-type-parameter": "error",
|
||||||
"@typescript-eslint/prefer-return-this-type": "error",
|
"@typescript-eslint/prefer-return-this-type": "error",
|
||||||
|
|||||||
@@ -431,14 +431,7 @@ export default defineConfig(
|
|||||||
"@typescript-eslint/prefer-find": "error",
|
"@typescript-eslint/prefer-find": "error",
|
||||||
"@typescript-eslint/prefer-includes": "error",
|
"@typescript-eslint/prefer-includes": "error",
|
||||||
|
|
||||||
"@typescript-eslint/prefer-nullish-coalescing": [
|
"@typescript-eslint/prefer-nullish-coalescing": "off",
|
||||||
"error",
|
|
||||||
{
|
|
||||||
ignoreTernaryTests: true,
|
|
||||||
ignoreConditionalTests: false,
|
|
||||||
ignoreMixedLogicalExpressions: false,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
|
|
||||||
"@typescript-eslint/prefer-readonly": "error",
|
"@typescript-eslint/prefer-readonly": "error",
|
||||||
"@typescript-eslint/prefer-reduce-type-parameter": "error",
|
"@typescript-eslint/prefer-reduce-type-parameter": "error",
|
||||||
|
|||||||
Reference in New Issue
Block a user