{ "$schema": "./node_modules/oxlint/configuration_schema.json", "categories": { "correctness": "error", "suspicious": "warn", "pedantic": "warn", "perf": "warn" }, "plugins": ["typescript", "import", "unicorn", "promise", "node"], "rules": { "eslint/no-useless-return": "off", "eslint/no-shadow": "off", "eslint/eqeqeq": "error", "eslint/no-throw-literal": "off", "eslint/no-control-regex": "off", "typescript/no-misused-promises": "error", "typescript/return-await": "error", "typescript/only-throw-error": "error", "import/no-cycle": "error", "import/no-self-import": "error", "import/no-unassigned-import": "off", "unicorn/prefer-node-protocol": "error", "unicorn/no-useless-undefined": "off", "unicorn/no-lonely-if": "off", "unicorn/no-array-callback-reference": "off", "typescript/prefer-promise-reject-errors": "off", "typescript/no-unsafe-function-type": "off", "typescript/no-unsafe-argument": "off", "typescript/no-unsafe-assignment": "off", "typescript/no-unsafe-call": "off", "typescript/no-unsafe-member-access": "off", "typescript/no-unsafe-return": "off", "eslint/no-console": "warn", "typescript/no-explicit-any": "off", "typescript/no-non-null-assertion": "off", "typescript/use-unknown-in-catch-callback-variable": "off", "typescript/consistent-type-imports": "off", "typescript/ban-types": "off", "import/first": "warn", "import/extensions": [ "error", "ignorePackages", { "js": "never", "ts": "never", "tsx": "never" } ], "import/no-duplicates": "warn", "import/no-mutable-exports": "warn", "unicorn/error-message": "warn", "unicorn/throw-new-error": "warn", "unicorn/catch-error-name": "warn", "unicorn/prefer-add-event-listener": "off", "node/no-new-require": "warn", "node/no-path-concat": "warn", "promise/no-callback-in-promise": "warn", "promise/valid-params": "warn", "promise/no-return-in-finally": "warn", "promise/always-return": "off", "eslint/max-classes-per-file": "off", "eslint/max-depth": "off", "eslint/max-lines": "off", "eslint/max-lines-per-function": "off", "eslint/max-nested-callbacks": "off", "eslint/no-warning-comments": "off", "eslint/no-inline-comments": "off", "eslint/no-negated-condition": "off", "eslint/no-await-in-loop": "off", "eslint/require-await": "off", "typescript/require-await": "off", "eslint/sort-vars": "off", "eslint/radix": "off", "eslint/symbol-description": "off", "typescript/consistent-return": "off", "unicorn/consistent-function-scoping": "off", "typescript/no-deprecated": "off", "typescript/no-unsafe-type-assertion": "off", "typescript/strict-boolean-expressions": "off", "typescript/no-duplicate-type-constituents": "off", "import/max-dependencies": "off" }, "overrides": [ { "files": ["**/examples/**/*.ts", "**/examples/**/*.tsx"], "rules": { "eslint/no-console": "off" } }, { "files": ["packages/kosong/src/providers/**/*.ts"], "rules": { "typescript/no-unsafe-argument": "off", "typescript/no-unsafe-assignment": "off", "typescript/no-unsafe-call": "off", "typescript/no-unsafe-member-access": "off", "typescript/no-unsafe-return": "off" } }, { "files": [ "**/*.test.ts", "**/*.test.tsx", "**/*.spec.ts", "**/*.spec.tsx", "**/test/**/*.ts", "**/test/**/*.tsx" ], "plugins": ["vitest"], "rules": { "typescript/no-explicit-any": "off", "typescript/no-unsafe-assignment": "off", "typescript/no-unsafe-argument": "off", "typescript/no-non-null-assertion": "off", "typescript/unbound-method": "off", "typescript/no-redundant-type-constituents": "off", "eslint/no-console": "off", "eslint/no-promise-executor-return": "off", "typescript/no-unsafe-member-access": "off", "vitest/require-mock-type-parameters": "off", "eslint/no-shadow": "off", "unicorn/prefer-event-target": "off", "jest/no-disabled-tests": "off", "vitest/no-disabled-tests": "off", "eslint/no-control-regex": "off", "eslint/no-unused-vars": "off", "eslint/no-unsafe-optional-chaining": "off", "jest/valid-expect": "off", "unicorn/no-useless-spread": "off", "import/no-cycle": "off", "typescript/no-meaningless-void-operator": "off", "typescript/require-array-sort-compare": "off", "vitest/expect-expect": "error", "vitest/no-conditional-tests": "error", "vitest/no-focused-tests": "error", "vitest/no-identical-title": "error", "vitest/valid-expect": "off", "vitest/valid-describe-callback": "error", "vitest/no-standalone-expect": "error", "vitest/warn-todo": "off" } } ], "ignorePatterns": [ "dist/", "coverage/", "node_modules/", "apps/*/scripts/", "docs/smoke-archive/", "*.generated.ts" ] }