UNPKG

create-eth

Version:
41 lines (39 loc) 1.01 kB
import nextCoreWebVitals from "eslint-config-next/core-web-vitals"; import nextTypescript from "eslint-config-next/typescript"; import prettierConfig from "eslint-config-prettier"; import prettierPlugin from "eslint-plugin-prettier"; import { defineConfig } from "eslint/config"; export default defineConfig([ ...nextCoreWebVitals, ...nextTypescript, prettierConfig, { plugins: { prettier: prettierPlugin, }, rules: { "@typescript-eslint/no-explicit-any": "off", "@typescript-eslint/ban-ts-comment": "off", "react-hooks/set-state-in-effect": "off", "prettier/prettier": [ "warn", { endOfLine: "auto", }, ], }, ignores: [".next", "next-env.d.ts"], }, { files: ["**/*.ts", "**/*.tsx"], languageOptions: { parserOptions: { projectService: true, tsconfigRootDir: import.meta.dirname, }, }, rules: { "@typescript-eslint/no-deprecated": "warn", }, }, ]);