Socket
Socket
Sign inDemoInstall

eslint-plugin-mui-unused-classes

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-mui-unused-classes

eslint plugin to detect unused material-ui styling classes


Version published
Weekly downloads
8.1K
increased by15.17%
Maintainers
1
Weekly downloads
 
Created
Source

Detect unused Material-UI classes

This eslint plugin lets you detect unused Material UI classes:

Example image of the rule working

Usage

  1. Add the dependency:
npm i --save-dev eslint-plugin-mui-unused-classes
  1. Add it at the end of your plugin list in your .eslintrc.js:
module.exports = {
  // ...
  plugins: [
    // ...
    'mui-unused-classes'
  ]
}

That's it! You should now get a warning if you have unused classes. One could also make it an error by adding the actual rule to the rule entry in .eslintrc.js:

module.exports = {
  // ...
  plugins: [
    // ...
    'mui-unused-classes'
  ],
  rules: {
    'mui-unused-classes/unused-classes': 2
  }
}

Keywords

FAQs

Package last updated on 17 Mar 2023

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