Skip to content

How do I use eslint-plugin-react-compiler with eslint 9? #25

Discussion options

You must be logged in to vote

Hello,

I have never used eslint before and I would like to give eslint-plugin-react-compiler a shot.

The ESlint docs do not mention an .eslintrc file like the React readme says.

The ESLint ecosystem is currently transitioning from legacy config files (.eslintrc) to "flat config" files (eslint.config.js). It seems like this plugin's docs haven’t been updated to explain how to use it with a flat config.

I'm quite confused how to configure this. Would this be a correct eslint.config.js file?

import reactCompilerPlugin from 'eslint-plugin-react-compiler';

export default [
    {
        plugins: {
            "react-compiler": reactCompilerPlugin
        },
        rules: {
            "re…

Replies: 1 comment 3 replies

Comment options

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

@fibonacid
Comment options

@michaelfaith
Comment options

Answer selected by nojaf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants