Skip to content

how to use antfu eslint with next js eslint ? #627

Answered by guigaribalde
yes-oo asked this question in Q&A
Discussion options

You must be logged in to vote

your suggestion doesnt work for so many reasons hahaha. Sending below a sugestion on how to make it properly:

eslint.config.js

import antfu from '@antfu/eslint-config';
import nextPlugin from '@next/eslint-plugin-next';
import jestDom from 'eslint-plugin-jest-dom';
import jsxA11y from 'eslint-plugin-jsx-a11y';
import playwright from 'eslint-plugin-playwright';
import tailwind from 'eslint-plugin-tailwindcss';
import testingLibrary from 'eslint-plugin-testing-library';

export default antfu(
  {
    react: true,
    typescript: true,

    lessOpinionated: true,
    isInEditor: false,

    stylistic: {
      semi: true,
    },

    formatters: {
      css: true,
    },

    ignores: ['migra…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@guigaribalde
Comment options

Answer selected by yes-oo
@guigaribalde
Comment options

@guigaribalde
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants