UNPKG

@jimmy.codes/eslint-config

Version:

A simple, modern ESLint config that covers most use cases.

24 lines (21 loc) 715 B
import { GLOB_NEXTJS } from "./globs-CRO5v7xy.js"; import { interopDefault } from "./interop-default-D4l3hsYQ.js"; import { upwarn } from "./upwarn-C7t3ub-R.js"; //#region src/rules/nextjs.ts const nextjsRules = async () => { const nextjsPlugin = await interopDefault(import("@next/eslint-plugin-next")); return upwarn(nextjsPlugin.configs.recommended.rules); }; //#endregion //#region src/configs/nextjs.ts async function nextjsConfig() { const nextjsPlugin = await interopDefault(import("@next/eslint-plugin-next")); return [{ files: GLOB_NEXTJS, name: "jimmy.codes/nextjs", plugins: { "@next/next": nextjsPlugin }, rules: await nextjsRules() }]; } //#endregion export { nextjsConfig as default };