Skip to content

Add react-refresh eslint plugin for react config #59

Description

@ezhlobo

I recently started react project with vite's default template. And I noticed they include eslint-plugin-react-refresh by default. I'm not sure how useful it is, but I guess it sounds like a good thing to have just in case.

What do you think?

See default vite configuration for react-refresh:
plugins: {
  'react-refresh': reactRefresh,
},
rules: {
  'react-refresh/only-export-components': [
    'warn',
    { allowConstantExport: true },
  ],
},

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions