import github from "eslint-plugin-github";

export default [
  github.getFlatConfigs().recommended,
  ...github.getFlatConfigs().typescript,
  {
    files: ["**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}"],
    ignores: ["eslint.config.mjs"],
    rules: {
      "github/array-foreach": "error",
      "github/async-preventdefault": "warn",
      "github/no-then": "error",
      "github/no-blur": "error",
      'i18n-text/no-en': 'off',
      'import/no-unresolved': 'off',
      'import/no-namespace': 'off',
    },
    settings: {
      'import/resolver': {
        typescript: {
          project: './tsconfig.json',
        },
      },
    },
  },
];