import eslint from "@eslint/js"; import tsEslint from "typescript-eslint"; import prettierEslintRecommended from "eslint-plugin-prettier/recommended"; export default tsEslint.config( eslint.configs.recommended, ...tsEslint.configs.strictTypeChecked, ...tsEslint.configs.stylisticTypeChecked, prettierEslintRecommended, { languageOptions: { parserOptions: { projectService: true, tsconfigRootDir: import.meta.dirname, }, }, }, { rules: { "@typescript-eslint/restrict-template-expressions": [ "error", { allowNumber: true, allowNever: true }, ], }, }, { files: ["**/*.spec.*"], rules: { "@typescript-eslint/require-await": "off", }, }, );