Skip to content

Add react-refresh eslint plugin for react config #59

@ezhlobo

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 },
  ],
},

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