Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-css-modules-es

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-css-modules-es

Check no default import and camelCaseOnly use of css modules

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

eslint-plugin-css-modules-es

Check no default import and camelCaseOnly use of css modules, visit this blog for more details.

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-css-modules-es:

npm install eslint-plugin-css-modules-es --save-dev

Usage

Add css-modules-es to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "css-modules-es"
    ]
}

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

{
    "rules": {
        "css-modules-es/rule-name": 2
    }
}

Specifying file extensions

You can specify a list of file extensions to validate css modules via plugin settings in .eslintrc.

{
  "settings": {
    "css-modules-es": {
      "extensions": [".modules.css", ".modules.less"]
    }
  }
}

The default extensions is [".modules.css"]

Supported Rules

  • no-default-import-css-modules
  • only-camelcase-key-css-modules

📄 License

MIT license

Keywords

FAQs

Package last updated on 29 Apr 2022

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc