// @ts-check import eslint from "@eslint/js"; import tseslint from "typescript-eslint"; export default tseslint.config( { ignores: ["**/*.js"], }, eslint.configs.recommended, tseslint.configs.strictTypeChecked, tseslint.configs.stylisticTypeChecked, { languageOptions: { parserOptions: { projectService: true, tsconfigRootDir: import.meta.dirname, }, }, }, { rules: { "@typescript-eslint/no-misused-promises": "off", "@typescript-eslint/no-unsafe-assignment": "off", "@typescript-eslint/no-unsafe-call": "off", "@typescript-eslint/no-unsafe-member-access": "off", "@typescript-eslint/no-confusing-void-expression": "off", "@typescript-eslint/restrict-template-expressions": "off", "@typescript-eslint/consistent-type-definitions": ["error", "type"], "@typescript-eslint/no-unsafe-argument": "off", "@typescript-eslint/no-extraneous-class": "off", "@typescript-eslint/unbound-method": "off", "@typescript-eslint/no-floating-promises": "off", }, }, );