mirror of
https://github.com/theoludwig/eslint-config-conventions.git
synced 2025-12-11 00:25:45 +01:00
fix: update .oxlintrc.json
This commit is contained in:
@@ -126,7 +126,7 @@
|
|||||||
],
|
],
|
||||||
"no-regex-spaces": "error",
|
"no-regex-spaces": "error",
|
||||||
"no-shadow-restricted-names": "error",
|
"no-shadow-restricted-names": "error",
|
||||||
"no-throw-literal": "error",
|
"no-throw-literal": "off",
|
||||||
"no-unused-expressions": [
|
"no-unused-expressions": [
|
||||||
"error",
|
"error",
|
||||||
{
|
{
|
||||||
@@ -282,8 +282,7 @@
|
|||||||
"builtinGlobals": false
|
"builtinGlobals": false
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"no-throw-literal": "off",
|
"@typescript-eslint/only-throw-error": "off",
|
||||||
"@typescript-eslint/only-throw-error": "error",
|
|
||||||
"no-unused-expressions": [
|
"no-unused-expressions": [
|
||||||
"error",
|
"error",
|
||||||
{
|
{
|
||||||
@@ -313,6 +312,7 @@
|
|||||||
],
|
],
|
||||||
"@typescript-eslint/no-base-to-string": "error",
|
"@typescript-eslint/no-base-to-string": "error",
|
||||||
"@typescript-eslint/no-dynamic-delete": "off",
|
"@typescript-eslint/no-dynamic-delete": "off",
|
||||||
|
"@typescript-eslint/no-deprecated": "off",
|
||||||
"@typescript-eslint/no-extra-non-null-assertion": "error",
|
"@typescript-eslint/no-extra-non-null-assertion": "error",
|
||||||
"@typescript-eslint/no-redundant-type-constituents": "error",
|
"@typescript-eslint/no-redundant-type-constituents": "error",
|
||||||
"@typescript-eslint/no-extraneous-class": [
|
"@typescript-eslint/no-extraneous-class": [
|
||||||
@@ -351,6 +351,7 @@
|
|||||||
"@typescript-eslint/no-array-delete": "error",
|
"@typescript-eslint/no-array-delete": "error",
|
||||||
"@typescript-eslint/prefer-as-const": "error",
|
"@typescript-eslint/prefer-as-const": "error",
|
||||||
"@typescript-eslint/prefer-function-type": "error",
|
"@typescript-eslint/prefer-function-type": "error",
|
||||||
|
"@typescript-eslint/prefer-includes": "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",
|
||||||
"@typescript-eslint/promise-function-async": "error",
|
"@typescript-eslint/promise-function-async": "error",
|
||||||
@@ -373,6 +374,18 @@
|
|||||||
{
|
{
|
||||||
"allowNumber": true
|
"allowNumber": true
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
"@typescript-eslint/strict-boolean-expressions": [
|
||||||
|
"error",
|
||||||
|
{
|
||||||
|
"allowString": false,
|
||||||
|
"allowNumber": false,
|
||||||
|
"allowNullableObject": false,
|
||||||
|
"allowNullableBoolean": false,
|
||||||
|
"allowNullableString": false,
|
||||||
|
"allowNullableNumber": false,
|
||||||
|
"allowAny": false
|
||||||
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"plugins": ["typescript"]
|
"plugins": ["typescript"]
|
||||||
|
|||||||
Reference in New Issue
Block a user