Skip to content

armgit / orca

Public Imported from GitHub
0

Orca is the place for working with a fleet of agents (e.g. Grok Bot, Claude Code). Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.

2.9 KB
Raw Blame
{
  "$schema": "../node_modules/oxlint/configuration_schema.json",
  "plugins": [],
  "jsPlugins": [
    {
      "name": "anti-slop",
      "specifier": "./oxlint-plugins/anti-slop-prefilter.mjs"
    }
  ],
  "categories": {
    "correctness": "off",
    "suspicious": "off",
    "pedantic": "off",
    "perf": "off",
    "style": "off",
    "restriction": "off",
    "nursery": "off"
  },
  "ignorePatterns": [
    "**/node_modules",
    "**/dist",
    "**/out",
    "cloud/**",
    "src/shared/rpc-contract/rpc-params-catalog.generated.ts",
    "tests/e2e/.cross-version-checkouts"
  ],
  "rules": {
    "anti-slop/no-array-filter-map": "off",
    "anti-slop/no-chained-type-assertions": "off",
    "anti-slop/no-conditional-empty-object-spread": "off",
    "anti-slop/no-known-value-widening": "off",
    "anti-slop/no-module-mocking": "error",
    "anti-slop/no-object-parameters": "error",
    "anti-slop/no-reduce-accumulator-copy": "error",
    "anti-slop/no-reflect-apply": "error",
    "anti-slop/no-reflect-get": "error",
    "anti-slop/no-runtime-typeof": "off",
    // Naming preferences do not justify a visitor on every identifier.
    "anti-slop/no-shape-in-symbol-names": "off",
    "anti-slop/no-unknown-parameters": "off",
    "anti-slop/no-unknown-returns": "off",
    "anti-slop/no-unknown-type-aliases": "error",
    "anti-slop/no-unsafe-dictionary-type": "off",
    "anti-slop/no-widen-then-assert": "error",
    "anti-slop/require-readable-spacing": "off",
    "anti-slop/require-safety-comment-for-type-assertion": "off"
  },
  "overrides": [
    {
      "files": [
        "**/*.test.{ts,tsx,mjs}",
        "**/*.spec.{ts,tsx}",
        // Vitest support modules shared by split suites; only test files import them.
        "**/*-test-harness.{ts,tsx}",
        "**/*-test-fixture.{ts,tsx}",
        "**/*-test-fixtures.{ts,tsx}",
        "**/*.test-fixture.{ts,tsx}",
        "tests/**/*.{ts,tsx}",
        "**/__mocks__/**"
      ],
      "rules": {
        "anti-slop/no-module-mocking": "off"
      }
    },
    // mock-descendant-sweep.ts (daemon and relay) is a test-only side-effect shim: its whole body
    // is one vi.mock that keeps mock PTY PIDs away from the host process table, and it exists so
    // 60 suites do not each inline the same hoisted factory. It is never imported by product code.
    {
      "files": ["**/mock-descendant-sweep.ts"],
      "rules": {
        "anti-slop/no-module-mocking": "off"
      }
    },
    // Test-only builtin adapter publishing Node-compatible behavior.
    {
      "files": ["**/vitest-bun-node-builtins.ts"],
      "rules": {
        "anti-slop/no-module-mocking": "off"
      }
    },
    // Mobile's test-only setup supplies SVG host primitives without loading native Flow code.
    // The shared fixture preserves native module boundaries in Node-based render tests.
    {
      "files": ["**/mobile/vitest.setup.ts"],
      "rules": {
        "anti-slop/no-module-mocking": "off"
      }
    }
  ]
}