{ "$schema": "./node_modules/oxlint/configuration_schema.json", "categories": { "correctness": "error", "suspicious": "error", "perf": "error" }, "env": { "builtin": true }, "plugins": ["typescript", "import", "unicorn"], "options": { "typeAware": true, "typeCheck": true, "reportUnusedDisableDirectives": "error" }, "rules": { // 2026-02-16 migration from eslint skipped 15 unsupported rules // - import/no-extraneous-dependencies: [ // "error", // { // devDependencies: [ // "test/**", // "tests/**", // "spec/**", // "**/__tests__/**", // "**/__mocks__/**", // "test.{js,jsx}", // "test.{ts,tsx}", // "test-*.{js,jsx}", // "test-*.{ts,tsx}", // "**/*{.,_}{test,spec}.{js,jsx}", // "**/*{.,_}{test,spec}.{ts,tsx}", // "**/*.config.{js,ts,cjs,mjs,cts,mts}", // "**/*.stories.@(ts|tsx|js|jsx|mjs|cjs)", // ], // optionalDependencies: false, // }, // ], // - typescript/dot-notation // - typescript/method-signature-style // - typescript/naming-convention // - typescript/no-unnecessary-type-conversion // - typescript/no-unnecessary-type-parameters // - typescript/no-useless-default-assignment // - typescript/prefer-find // - typescript/prefer-regexp-exec // - typescript/prefer-string-starts-ends-with "arrow-body-style": "error", "class-methods-use-this": "error", "default-param-last": ["error"], "func-style": ["error", "expression"], "import/extensions": [ "error", "ignorePackages", { "js": "never", "jsx": "never", "mjs": "never", "ts": "never", "tsx": "never" } ], "import/no-default-export": ["error"], "import/no-duplicates": [ "error", { "prefer-inline": true } ], "no-array-constructor": "error", "no-case-declarations": "error", "no-empty": "error", "no-empty-function": "error", "no-fallthrough": "error", "no-loop-func": ["error"], "no-prototype-builtins": "error", "no-regex-spaces": "error", "no-unused-expressions": [ "error", { "allowShortCircuit": false, "allowTaggedTemplates": false, "allowTernary": false, "enforceForJSX": false } ], "no-unused-vars": [ "error", { "args": "after-used", "argsIgnorePattern": "^_", "ignoreRestSiblings": true, "vars": "all" } ], "no-use-before-define": [ "error", { "classes": true, "functions": true, "variables": true } ], "no-var": "error", "object-shorthand": "error", "prefer-const": "error", "prefer-rest-params": "error", "prefer-spread": "error", "typescript/adjacent-overload-signatures": "error", "typescript/array-type": "error", "typescript/ban-ts-comment": [ "error", { "ts-check": false, "ts-expect-error": "allow-with-description", "ts-ignore": true, "ts-nocheck": true } ], "typescript/ban-tslint-comment": "error", "typescript/class-literal-property-style": "error", "typescript/consistent-generic-constructors": "error", "typescript/consistent-indexed-object-style": "error", "typescript/consistent-type-assertions": "error", "typescript/consistent-type-definitions": ["error", "type"], "typescript/consistent-type-imports": [ "error", { "fixStyle": "inline-type-imports" } ], "typescript/no-confusing-void-expression": "error", "typescript/no-deprecated": "error", "typescript/no-dynamic-delete": "error", "typescript/no-empty-object-type": "error", "typescript/no-explicit-any": "error", "typescript/no-import-type-side-effects": "error", "typescript/no-inferrable-types": "error", "typescript/no-invalid-void-type": "error", "typescript/no-misused-promises": "error", "typescript/no-mixed-enums": "error", "typescript/no-namespace": "error", "typescript/no-non-null-asserted-nullish-coalescing": "error", "typescript/no-non-null-assertion": "error", "typescript/no-require-imports": "error", "typescript/no-unnecessary-condition": "error", "typescript/no-unsafe-argument": "error", "typescript/no-unsafe-assignment": "error", "typescript/no-unsafe-call": "error", "typescript/no-unsafe-function-type": "error", "typescript/no-unsafe-member-access": "error", "typescript/no-unsafe-return": "error", "typescript/non-nullable-type-assertion-style": "error", "typescript/only-throw-error": "error", "typescript/prefer-enum-initializers": "error", "typescript/prefer-for-of": "error", "typescript/prefer-function-type": "error", "typescript/prefer-includes": "error", "typescript/prefer-literal-enum-member": "error", "typescript/prefer-nullish-coalescing": [ "error", { "ignorePrimitives": { "boolean": true, "string": true } } ], "typescript/prefer-optional-chain": "error", "typescript/prefer-promise-reject-errors": "error", "typescript/prefer-reduce-type-parameter": "error", "typescript/prefer-return-this-type": "error", "typescript/promise-function-async": "error", "typescript/related-getter-setter-pairs": "error", "typescript/restrict-plus-operands": [ "error", { "allowAny": false, "allowBoolean": false, "allowNullish": false, "allowNumberAndString": false, "allowRegExp": false } ], "typescript/restrict-template-expressions": [ "error", { "allowNumber": true } ], "typescript/return-await": ["error", "error-handling-correctness-only"], "typescript/strict-boolean-expressions": [ "error", { "allowNullableBoolean": true, "allowNullableString": true } ], "typescript/switch-exhaustiveness-check": [ "error", { "allowDefaultCaseForExhaustiveSwitch": true, "considerDefaultExhaustiveForUnions": false, "requireDefaultForNonUnion": true } ], "typescript/unified-signatures": "error", "typescript/use-unknown-in-catch-callback-variable": "error" }, "overrides": [ { "files": ["**/*.config.*", "**/.storybook/**/*", "**/*.stories.tsx"], "rules": { "import/no-default-export": "off" } }, { "files": ["**/*.test.ts"], "rules": { "eslint/no-await-in-loop": "off", "typescript/ban-ts-comment": [ "error", { "ts-expect-error": false, "ts-ignore": true, "ts-nocheck": true, "ts-check": false } ] } }, { "files": ["**/*.d.ts"], "rules": { "typescript/no-empty-object-type": "off", "typescript/consistent-type-definitions": "off", "typescript/consistent-indexed-object-style": "off", "unicorn/require-module-specifiers": "off" } } ] }