#!/usr/bin/env node
import { createRequire as createRequire_BATI_CLI } from 'module';
const require = createRequire_BATI_CLI(import.meta.url);

import "../../../../chunk-DHZ7AZKP.js";

// ../../boilerplates/biome/dist/files/$biome.json.js
async function getBiomeJson(props) {
  const additionalLinter = {};
  const additionalConfig = {};
  if (props.meta.BATI.has("vue")) {
    additionalLinter.domains = {
      vue: "recommended"
    };
    additionalLinter.rules = {
      style: {
        useConst: "off",
        useImportType: "off"
      },
      correctness: {
        noUnusedVariables: "off",
        noUnusedImports: "off"
      }
    };
  }
  if (props.meta.BATI.has("react")) {
    additionalLinter.domains = {
      react: "recommended"
    };
  }
  if (props.meta.BATI.has("solid")) {
    additionalLinter.domains = {
      solid: "recommended"
    };
  }
  if (props.meta.BATI.has("tailwindcss") || props.meta.BATI.has("shadcn-ui")) {
    additionalConfig.overrides ??= [];
    additionalConfig.overrides.push({
      includes: ["**/*.css"],
      linter: {
        rules: {
          suspicious: {
            noUnknownAtRules: "off"
          }
        }
      }
    });
  }
  return {
    $schema: "./node_modules/@biomejs/biome/configuration_schema.json",
    formatter: {
      indentWidth: 2,
      indentStyle: "space"
    },
    linter: {
      enabled: true,
      rules: {
        recommended: true
      },
      ...additionalLinter
    },
    assist: {
      enabled: true,
      actions: {
        source: {
          organizeImports: "on"
        }
      }
    },
    files: {
      includes: [
        "**",
        "!*.cjs",
        "!*.js",
        "!*.mjs",
        "!*.spec.ts",
        "!**/*.ts.build-*.mjs",
        "!dist/*",
        "!node_modules/*",
        "!**/.DS_Store"
      ]
    },
    vcs: {
      enabled: true,
      clientKind: "git",
      useIgnoreFile: true
    },
    ...additionalConfig
  };
}
export {
  getBiomeJson as default
};
