Socket
Socket
Sign inDemoInstall

eslint-plugin-react-hmr-export-checker

Package Overview
Dependencies
89
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    eslint-plugin-react-hmr-export-checker

Only export react components or typescript functions/variables


Version published
Maintainers
1
Install size
24.7 kB
Created

Readme

Source

eslint-plugin-react-hmr-export-checker

npmV githubLastCommit npmDM

Only export react components or typescript functions/variables.

WARNING i made this rule because my hmr was broken, i probably have not thought about all possible scenarios so it might not work correctly.

WARNING default export with other exports are not allowed/supported because im to lazy to implement it.

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-react-hmr-export-checker:

npm install eslint-plugin-react-hmr-export-checker --save-dev

Usage

Add react-hmr-export-checker to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "react-hmr-export-checker"
    ]
}

Then configure the rules you want to use under the rules section.

{
    "rules": {
        "react-hmr-export-checker/rule-name": 2
    }
}

Supported Rules

  • Fill in provided rules here

  • only-export-react-components

Copyright (c) 2022 Leonard Grosoli Licensed under the MIT license.

Keywords

FAQs

Last updated on 09 Jun 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc