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

eslint-plugin-orbit-components

Package Overview
Dependencies
Maintainers
7
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-orbit-components

Collection of ESLint rules to enforce the best usage practices of @kiwicom/orbit-components

  • 0.6.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
331
decreased by-4.89%
Maintainers
7
Weekly downloads
 
Created
Source

eslint-plugin-orbit-components

Collection of ESLint rules to enforce the best usage practices of @kiwicom/orbit-components.

Installation

Assuming you already have ESLint installed, run:

# npm
npm install eslint-plugin-orbit-components --save-dev

# yarn
yarn add eslint-plugin-orbit-components --dev

Then add it to your ESLint configuration:

{
  "plugins": [
    // ...
    "orbit-components"
  ],
  "rules": {
    // ...
    "orbit-components/button-has-title": "error",
    "orbit-components/unnecessary-text": "error",
  }
}

or via extending our recommended config:

  {
    "extends": [
      "plugin:orbit-components/recommended",
    ]
  }

Supported Rules

  • button-has-title: Enforces that Button and ButtonLink do have either children or title property.
  • unnecessary-text: Enforces that children of Button or Heading are not wrapped in Text component.

License

MIT

Keywords

FAQs

Package last updated on 01 Jun 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