0.1.4 • Published 12 months ago

eslint-plugin-react-hmr-export-checker v0.1.4

Weekly downloads
-
License
MIT
Repository
-
Last release
12 months ago

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.

0.1.4

12 months ago

0.1.2

1 year ago

0.1.3

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

2 years ago

0.0.1

2 years ago