Skip to content
Discussion options

You must be logged in to vote

Looks like an issue within the documentation of ignores in ESLint:

Moving ignores to its own entry in the config does the trick:

const eslintConfig = [
  ...compat.extends('next/core-web-vitals', 'next/typescript'),
  {
    rules: {
      '@typescript-eslint/no-empty-object-type': 'off'
    }
  },
  {
    ignores: ['node_modules/**', '.next/**', 'out/**', 'build/**', 'next-env.d.ts']
  }
];

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@jcubic
Comment options

Answer selected by jcubic
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants