next.js 359 B

12345678910111213141516171819
  1. import pluginNext from "@next/eslint-plugin-next"
  2. import { reactConfig } from "./react.js"
  3. /**
  4. * @type {import("eslint").Linter.Config[]}
  5. */
  6. export const nextJsConfig = [
  7. ...reactConfig,
  8. {
  9. plugins: {
  10. "@next/next": pluginNext,
  11. },
  12. rules: {
  13. ...pluginNext.configs.recommended.rules,
  14. ...pluginNext.configs["core-web-vitals"].rules,
  15. },
  16. },
  17. ]