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

import {
  exs
} from "../../../../chunk-L3HFTASV.js";
import "../../../../chunk-IAWYWZSL.js";
import "../../../../chunk-DHZ7AZKP.js";

// ../../boilerplates/eslint/dist/files/$package.json.js
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __commonJS = (cb, mod) => function __require() {
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
  // If the importer is in node compatibility mode or this is not an ESM
  // file that has been converted to a CommonJS file using a Babel-
  // compatible transform (i.e. "__esModule" has not been set), then set
  // "default" to the CommonJS "module.exports" for node compatibility.
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
  mod
));
var require_package = __commonJS({
  "package.json"(exports, module) {
    module.exports = {
      name: "@batijs/eslint",
      private: true,
      version: "0.0.1",
      description: "",
      type: "module",
      keywords: [],
      author: "",
      license: "MIT",
      scripts: {
        "check-types": "tsc --noEmit",
        build: "bati-compile-boilerplate"
      },
      devDependencies: {
        "@batijs/compile": "workspace:^",
        "@eslint/js": "^9.39.0",
        eslint: "^9.39.0",
        "eslint-config-prettier": "^10.1.8",
        "eslint-plugin-prettier": "^5.5.4",
        "eslint-plugin-react": "^7.37.5",
        "eslint-plugin-solid": "^0.14.5",
        "eslint-plugin-vue": "^10.5.1",
        globals: "^16.5.0",
        "typescript-eslint": "^8.46.2",
        "vue-eslint-parser": "^10.2.0"
      },
      dependencies: {
        "@batijs/core": "workspace:*"
      },
      files: [
        "dist/"
      ],
      bati: {
        if: {
          flag: "eslint"
        }
      },
      exports: {
        "./eslint.config": {
          types: "./dist/types/eslint.config.d.ts"
        }
      },
      typesVersions: {
        "*": {
          "eslint.config": [
            "./dist/types/eslint.config.d.ts"
          ]
        }
      }
    };
  }
});
async function getPackageJson(props) {
  const packageJson = await exs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
  return packageJson.setScript("lint", {
    value: "eslint .",
    precedence: 0
  }).addDevDependencies(["eslint", "@eslint/js", "typescript-eslint", "globals"]).addDevDependencies(["eslint-plugin-prettier", "eslint-config-prettier"], props.meta.BATI.has("prettier")).addDevDependencies(["eslint-plugin-vue", "vue-eslint-parser"], props.meta.BATI.has("vue")).addDevDependencies(["eslint-plugin-react"], props.meta.BATI.has("react")).addDevDependencies(["eslint-plugin-solid"], props.meta.BATI.has("solid"));
}
export {
  getPackageJson as default
};
