Socket
Socket
Sign inDemoInstall

eslint-plugin-grommet

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-grommet

Lint rules to use with Grommet.


Version published
Weekly downloads
102
increased by43.66%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-plugin-grommet

Lint rules to use with Grommet.

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-grommet:

$ npm install eslint-plugin-grommet --save-dev

Usage

To use the recommended set of rules, add plugin:grommet/recommended to the extends section of your .eslintrc configuration file. The plugin: prefix informs ESLint that the configuration lives within an eslint-plugin- package as opposed to an eslint-config- package.

{
  "extends": ["plugin:grommet/recommended"]
}

Opting into and out of specific rules

To opt-in or opt-out of specific rules, add grommet to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
  "plugins": ["grommet"]
}

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

{
  "rules": {
    "grommet/rule-name": 2
  }
}

Example configuration

In the configuration below, the recommended rules are all being enforced except for formfield-prefer-children. Be mindful when disabling rules from the recommended configuration as this may result in accessibility errors or other missed best practice guidance.

{
  "extends": ["plugin:grommet/recommended"],
  "plugins": ["grommet"],
  "rules": {
    "grommet/formfield-prefer-children": 0
  }
}

Supported Rules

Keywords

FAQs

Package last updated on 23 May 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