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

Compare commits

...

2 Commits

Author SHA1 Message Date
67057cdfff fix: update .oxlintrc.json 2026-04-07 11:18:24 +02:00
7f2ff2db1a feat: support eslint-plugin-unicorn@^64.0.0 2026-04-07 10:13:02 +02:00
4 changed files with 748 additions and 809 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"
}
} }
``` ```

1459
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -49,7 +49,7 @@
"peerDependencies": { "peerDependencies": {
"eslint": "^9.22.0", "eslint": "^9.22.0",
"eslint-plugin-promise": "^7.2.1", "eslint-plugin-promise": "^7.2.1",
"eslint-plugin-unicorn": "^61.0.0 || ^62.0.0 || ^63.0.0", "eslint-plugin-unicorn": "^61.0.0 || ^62.0.0 || ^63.0.0 || ^64.0.0",
"eslint-plugin-import-x": "^4.6.1", "eslint-plugin-import-x": "^4.6.1",
"globals": "^16.0.0 || ^17.0.0", "globals": "^16.0.0 || ^17.0.0",
"typescript-eslint": "^8.32.0" "typescript-eslint": "^8.32.0"
@@ -75,18 +75,18 @@
} }
}, },
"devDependencies": { "devDependencies": {
"@types/node": "25.3.0", "@types/node": "25.5.2",
"globals": "17.3.0", "globals": "17.4.0",
"editorconfig-checker": "6.1.1", "editorconfig-checker": "6.1.1",
"oxlint": "1.49.0", "oxlint": "1.59.0",
"@oxlint/migrate": "1.49.0", "@oxlint/migrate": "1.58.0",
"eslint": "9.39.2", "eslint": "9.39.4",
"eslint-plugin-promise": "7.2.1", "eslint-plugin-promise": "7.2.1",
"eslint-plugin-unicorn": "63.0.0", "eslint-plugin-unicorn": "64.0.0",
"eslint-plugin-import-x": "4.16.1", "eslint-plugin-import-x": "4.16.2",
"typescript-eslint": "8.56.0", "typescript-eslint": "8.58.0",
"prettier": "3.8.1", "prettier": "3.8.1",
"semantic-release": "25.0.3", "semantic-release": "25.0.3",
"typescript": "5.9.3" "typescript": "6.0.2"
} }
} }