export default {
  root: true,
  env: {
    node: true,
    es2021: true,
    es6: true,
  },
  extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"],
  parser: "@typescript-eslint/parser",
  parserOptions: {
    ecmaVersion: 2022,
    sourceType: "module",
    project: "./tsconfig.json",
    tsconfigRootDir: import.meta.dirname,
    extraFileExtensions: [".mjs"],
  },
  plugins: ["@typescript-eslint"],
  ignorePatterns: ["dist/**", "node_modules/**", "*.config.js", ".eslintrc.mjs", "jest.config.cjs"],
  rules: {
    "@typescript-eslint/no-var-requires": "off",
  },
}
