1
0
mirror of https://github.com/theoludwig/eslint-config-conventions.git synced 2026-04-07 22:31:08 +02:00

fix: update .oxlintrc.json

This commit is contained in:
2026-04-07 11:18:24 +02:00
parent 7f2ff2db1a
commit 67057cdfff
2 changed files with 43 additions and 35 deletions

View File

@@ -33,6 +33,9 @@
"require-await": "off", "require-await": "off",
"no-lonely-if": "off", "no-lonely-if": "off",
"array-callback-return": "off", "array-callback-return": "off",
"no-shadow": "off",
"no-throw-literal": "off",
"consistent-return": "off",
"getter-return": "error", "getter-return": "error",
"no-undef": "error", "no-undef": "error",
@@ -85,8 +88,6 @@
"no-new-func": "error", "no-new-func": "error",
"no-proto": "error", "no-proto": "error",
"no-regex-spaces": "error", "no-regex-spaces": "error",
"no-shadow": "off",
"no-throw-literal": "off",
"no-useless-computed-key": "error", "no-useless-computed-key": "error",
"no-else-return": [ "no-else-return": [
"error", "error",
@@ -112,6 +113,7 @@
"curly": "error", "curly": "error",
"func-style": "error", "func-style": "error",
"arrow-body-style": ["error", "always"], "arrow-body-style": ["error", "always"],
"object-shorthand": ["error", "properties"],
"promise/param-names": "error", "promise/param-names": "error",
"promise/no-nesting": "error", "promise/no-nesting": "error",
@@ -162,17 +164,17 @@
"import/no-named-as-default-member": "off", "import/no-named-as-default-member": "off",
"import/max-dependencies": "off", "import/max-dependencies": "off",
"@typescript-eslint/ban-types": "off", "typescript/ban-types": "off",
"@typescript-eslint/no-unnecessary-type-arguments": "off", "typescript/no-unnecessary-type-arguments": "off",
"@typescript-eslint/no-unsafe-type-assertion": "off", "typescript/no-unsafe-type-assertion": "off",
"@typescript-eslint/no-unsafe-member-access": "off", "typescript/no-unsafe-member-access": "off",
"@typescript-eslint/no-confusing-void-expression": "off", "typescript/no-confusing-void-expression": "off",
"@typescript-eslint/no-unsafe-assignment": "off", "typescript/no-unsafe-assignment": "off",
"@typescript-eslint/no-misused-promises": "off", "typescript/no-misused-promises": "off",
"@typescript-eslint/return-await": ["error", "always"], "typescript/return-await": ["error", "always"],
"@typescript-eslint/require-await": "off", "typescript/require-await": "off",
"@typescript-eslint/switch-exhaustiveness-check": "off", "typescript/switch-exhaustiveness-check": "off",
"@typescript-eslint/ban-ts-comment": "off", "typescript/ban-ts-comment": "off",
"no-unused-vars": [ "no-unused-vars": [
"error", "error",
{ {
@@ -201,7 +203,7 @@
"builtinGlobals": false "builtinGlobals": false
} }
], ],
"@typescript-eslint/only-throw-error": "off", "typescript/only-throw-error": "off",
"no-unused-expressions": [ "no-unused-expressions": [
"error", "error",
{ {
@@ -210,10 +212,10 @@
"allowTaggedTemplates": true "allowTaggedTemplates": true
} }
], ],
"@typescript-eslint/adjacent-overload-signatures": "error", "typescript/adjacent-overload-signatures": "error",
"@typescript-eslint/consistent-type-definitions": "error", "typescript/consistent-type-definitions": "error",
"@typescript-eslint/consistent-type-imports": "error", "typescript/consistent-type-imports": "error",
"@typescript-eslint/explicit-function-return-type": [ "typescript/explicit-function-return-type": [
"error", "error",
{ {
"allowExpressions": true, "allowExpressions": true,
@@ -222,13 +224,13 @@
"allowDirectConstAssertionInArrowFunctions": true "allowDirectConstAssertionInArrowFunctions": true
} }
], ],
"@typescript-eslint/no-extraneous-class": [ "typescript/no-extraneous-class": [
"error", "error",
{ {
"allowWithDecorator": true "allowWithDecorator": true
} }
], ],
"@typescript-eslint/no-floating-promises": [ "typescript/no-floating-promises": [
"error", "error",
{ {
"allowForKnownSafeCalls": [ "allowForKnownSafeCalls": [
@@ -240,25 +242,25 @@
] ]
} }
], ],
"@typescript-eslint/no-non-null-assertion": "error", "typescript/no-non-null-assertion": "error",
"@typescript-eslint/no-this-alias": "error", "typescript/no-this-alias": "error",
"@typescript-eslint/no-require-imports": "error", "typescript/no-require-imports": "error",
"@typescript-eslint/prefer-function-type": "error", "typescript/prefer-function-type": "error",
"@typescript-eslint/prefer-find": "error", "typescript/prefer-find": "error",
"@typescript-eslint/prefer-nullish-coalescing": "off", "typescript/prefer-nullish-coalescing": "off",
"@typescript-eslint/prefer-readonly": "error", "typescript/prefer-readonly": "error",
"@typescript-eslint/prefer-reduce-type-parameter": "error", "typescript/prefer-reduce-type-parameter": "error",
"@typescript-eslint/prefer-return-this-type": "error", "typescript/prefer-return-this-type": "error",
"@typescript-eslint/promise-function-async": "error", "typescript/promise-function-async": "error",
"@typescript-eslint/require-array-sort-compare": "error", "typescript/require-array-sort-compare": "error",
"@typescript-eslint/restrict-plus-operands": [ "typescript/restrict-plus-operands": [
"error", "error",
{ {
"skipCompoundAssignments": true "skipCompoundAssignments": true
} }
], ],
"@typescript-eslint/restrict-template-expressions": "error", "typescript/restrict-template-expressions": "error",
"@typescript-eslint/strict-boolean-expressions": [ "typescript/strict-boolean-expressions": [
"error", "error",
{ {
"allowString": false, "allowString": false,

View File

@@ -118,7 +118,13 @@ node --run lint:prettier
```json ```json
{ {
"$schema": "./node_modules/oxlint/configuration_schema.json", "$schema": "./node_modules/oxlint/configuration_schema.json",
"extends": ["node_modules/eslint-config-conventions/.oxlintrc.json"] "extends": ["node_modules/eslint-config-conventions/.oxlintrc.json"],
"options": {
"typeAware": true,
"typeCheck": true,
"denyWarnings": true,
"reportUnusedDisableDirectives": "error"
}
} }
``` ```