Skip to content

The open alternative to Salesforce, designed for AI.

947 B
Raw Blame
{
  "$schema": "./node_modules/oxlint/configuration_schema.json",
  "plugins": ["typescript"],
  "categories": {
    "correctness": "off"
  },
  "ignorePatterns": ["node_modules", "dist"],
  "rules": {
    "no-unused-vars": "off",

    "typescript/no-unused-vars": [
      "warn",
      {
        "argsIgnorePattern": "^_"
      }
    ],
    "typescript/no-explicit-any": "off"
  },
  "overrides": [
    {
      "files": ["**/*.logic-function.ts", "**/logic-functions/**/*.ts"],
      "rules": {
        "no-restricted-imports": [
          "error",
          {
            "patterns": [
              {
                "group": ["twenty-shared", "twenty-shared/*"],
                "message": "Logic functions must not import from twenty-shared directly. Import runtime types and helpers from `twenty-sdk/logic-function` instead so the logic-function bundle stays minimal."
              }
            ]
          }
        ]
      }
    }
  ]
}