{ "$schema": "./node_modules/oxlint/configuration_schema.json", "ignorePatterns": [ ".agent/**", ".agents/**", ".claude/**", ".codex/**", ".continue/**", ".cursor/**", ".gemini/**", ".opencode/**", ".pi/**", ".roo/**", ".windsurf/**", "tools/oxlint/anti-slop/**", "node_modules/**", "dist/**", "coverage/**" ], "jsPlugins": [ { "name": "anti-slop", "specifier": "./tools/oxlint/anti-slop/index.ts" } ], "rules": { "typescript/no-explicit-any": "error", "typescript/ban-ts-comment": "error", "typescript/no-non-null-assertion": "error", "max-lines": [ "error", { "max": 600, "skipBlankLines": true, "skipComments": true } ], "max-lines-per-function": "off", "complexity": ["error", 20], "max-depth": ["error", 4], "max-params": ["error", 5], "typescript/no-floating-promises": "error", "typescript/no-misused-promises": "error", "typescript/no-unsafe-argument": "error", "typescript/no-unsafe-assignment": "error", "typescript/no-unsafe-call": "error", "typescript/no-unsafe-member-access": "error", "typescript/no-unsafe-return": "error", "typescript/no-unsafe-enum-comparison": "error", "typescript/no-unsafe-unary-minus": "error", "typescript/no-unsafe-type-assertion": "error", "typescript/no-unnecessary-condition": "error", "typescript/strict-boolean-expressions": "error", "typescript/switch-exhaustiveness-check": "error", "anti-slop/no-chained-type-assertions": "error", "anti-slop/no-conditional-empty-object-spread": "error", "anti-slop/no-known-value-widening": "error", "anti-slop/no-module-mocking": "error", "anti-slop/no-object-parameters": "error", "anti-slop/no-reflect-apply": "error", "anti-slop/no-reflect-get": "error", "anti-slop/no-runtime-typeof": "error", "anti-slop/no-shape-in-symbol-names": "error", "anti-slop/no-unknown-parameters": "error", "anti-slop/no-unknown-returns": "error", "anti-slop/no-unknown-type-aliases": "error", "anti-slop/no-unsafe-dictionary-type": "error", "anti-slop/no-widen-then-assert": "error", "anti-slop/require-safety-comment-for-type-assertion": "error", "typescript/prefer-readonly-parameter-types": "off", "eslint/require-await": "off", "eslint/no-await-in-loop": "off", "import/max-dependencies": [ "error", { "max": 15 } ], "typescript/require-await": "off", "typescript/consistent-return": "off", "eslint/no-underscore-dangle": "off", "unicorn/prefer-top-level-await": "off", "unicorn/no-useless-undefined": [ "error", { "checkArguments": false, "checkArrowFunctionBody": false } ], "oxc/no-map-spread": "off", "eslint/no-useless-return": "off" }, "plugins": ["typescript", "unicorn", "oxc", "import", "promise"], "categories": { "correctness": "error", "suspicious": "error", "pedantic": "error", "perf": "error" }, "overrides": [ { "files": ["tests/**"], "rules": { "typescript/no-unsafe-type-assertion": "off", "typescript/await-thenable": "off", "typescript/no-confusing-void-expression": "off" } }, { "files": ["**/*.tsx", "tests/tui.test.ts"], "rules": { "typescript/no-unsafe-return": "off", "typescript/no-unsafe-assignment": "off", "typescript/no-unsafe-member-access": "off" } } ] }