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.

20 lines (18 loc) 602 B
import eslintPluginNext from '@next/eslint-plugin-next'; import { defineConfig } from 'eslint/config'; import globals from 'globals'; const nextCoreWebVitals = eslintPluginNext.configs["core-web-vitals"]; const nextConfig = defineConfig({ name: "@tcd-devkit/eslint-config-next", languageOptions: { globals: { ...globals.node } }, 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