eslint-plugin-react-css-module-hints

1.0.1 • Public • Published

eslint-plugin-react-css-module-hints

Well, what is it?

The plugin's goal is to warn you when you import a css/scss module and then attempt to use a class which does not exist there. Pretty simple, it addition it will provide a list of all available classes from that module in hints, so that you can fix the problem.

Installation

Obviously requires eslint to run, since it is merely its plugin. Install with npm:

npm i -D eslint-plugin-react-css-module-hints

or yarn:

yarn add -D eslint-plugin-react-css-module-hints

Then plug it in in your eslint configuration file, i.e. in .eslintrc.json:

{
  "plugins": ["react-css-module-hints"],
  "rules": {
    "react-css-module-hints/no-non-existant-classes": "warn"
  }
}

That's it, you're ready to go.

Demo: Intellisense

Package Sidebar

Install

npm i eslint-plugin-react-css-module-hints

Weekly Downloads

339

Version

1.0.1

License

MIT

Unpacked Size

4.32 kB

Total Files

3

Last publish

Collaborators

  • bwca