'use strict';

var chunkUJJENY47_cjs = require('./chunk-UJJENY47.cjs');
var chunkAF3E2D32_cjs = require('./chunk-AF3E2D32.cjs');
var types = require('@storm-software/config-tools/types');
var joinPaths = require('@stryke/path/join-paths');

async function writeDefaultEslintConfig(log, context, type = "recommended") {
  const eslintConfigFile = joinPaths.joinPaths(context.workspaceConfig.workspaceRoot, "eslint.config.js");
  const eslintConfig = `
import { getConfig } from "eslint-config-storm-stack";

Error.stackTraceLimit = Number.POSITIVE_INFINITY;

export default getConfig({
  repositoryName: "${context.workspaceConfig.name || context.name || "storm-stack"}",
  "storm-stack": "${type}",
});
`;
  log(types.LogLevelLabel.INFO, `Writing a default ESLint config file to ${eslintConfigFile}`);
  return chunkUJJENY47_cjs.writeFile(log, eslintConfigFile, eslintConfig);
}
chunkAF3E2D32_cjs.__name(writeDefaultEslintConfig, "writeDefaultEslintConfig");

exports.writeDefaultEslintConfig = writeDefaultEslintConfig;
//# sourceMappingURL=chunk-YANASJV2.cjs.map
//# sourceMappingURL=chunk-YANASJV2.cjs.map