| 1 | // @ts-check |
| 2 | import eslint from '@eslint/js'; |
| 3 | import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'; |
| 4 | import globals from 'globals'; |
| 5 | import tseslint from 'typescript-eslint'; |
| 6 | |
| 7 | export default tseslint.config( |
| 8 | { |
| 9 | ignores: ['eslint.config.mjs'], |
| 10 | }, |
| 11 | eslint.configs.recommended, |
| 12 | ...tseslint.configs.recommendedTypeChecked, |
| 13 | eslintPluginPrettierRecommended, |
| 14 | { |
| 15 | languageOptions: { |
| 16 | globals: { |
| 17 | ...globals.node, |
| 18 | ...globals.jest, |
| 19 | }, |
| 20 | sourceType: 'commonjs', |
| 21 | parserOptions: { |
| 22 | projectService: true, |
| 23 | tsconfigRootDir: import.meta.dirname, |
| 24 | }, |
| 25 | }, |
| 26 | }, |
| 27 | { |
| 28 | rules: { |
| 29 | '@typescript-eslint/no-explicit-any': 'off', |
| 30 | '@typescript-eslint/no-floating-promises': 'warn', |
| 31 | '@typescript-eslint/no-unsafe-argument': 'warn', |
| 32 | "prettier/prettier": ["error", { endOfLine: "auto" }], |
| 33 | }, |
| 34 | }, |
| 35 | ); |