/**
 * Base Oxlint shared config for erp-kit consumer projects.
 *
 * Internal building block: the module/backend/frontend configs extend this.
 * Not a public subpath — consumers extend `@tailor-platform/erp-kit/oxlint/<target>`.
 *
 * `ignorePatterns` is intentionally omitted: Oxlint does NOT inherit `ignorePatterns`
 * across `extends` (the innermost config replaces it), so each consumer declares its
 * own project-specific patterns locally.
 */
export default {
  plugins: ["eslint", "typescript", "unicorn", "oxc", "import"],
  jsPlugins: [{ name: "erp-kit", specifier: "@tailor-platform/erp-kit/oxlint-plugin" }],
  options: {
    typeAware: true,
  },
  env: {
    builtin: true,
  },
  rules: {
    "no-unused-vars": ["error", { argsIgnorePattern: "^_", varsIgnorePattern: "^_" }],
    "erp-kit/no-relative-packages": "error",
    "typescript/no-explicit-any": "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/require-await": "error",
  },
};
