UNPKG

@tcd-devkit/eslint-config-next

Version:

ESLint Flat Configuration for Next.js projects. This package provides ESLint rules specific to Next.js, integrating `@next/eslint-plugin-next` for optimal Next.js development.

15 lines (13 loc) 538 B
import nextPlugin from '@next/eslint-plugin-next'; import { defineConfig } from 'eslint/config'; const { flatConfig: nextPluginConfigs } = nextPlugin; const nextCoreWebVitals = nextPluginConfigs.coreWebVitals; const nextConfig = defineConfig({ name: "@tcd-devkit/eslint-config-next", extends: [nextCoreWebVitals], files: ["**/*.{js,jsx,ts,tsx,mjs,cjs}"] }); var next_linter_default = nextConfig; export { next_linter_default as default, nextConfig }; //# sourceMappingURL=next.linter.js.map //# sourceMappingURL=next.linter.js.map