eslint-plugin-orbit-components
Collection of ESLint rules to enforce the best usage practices of @kiwicom/orbit-components
Last updated a year ago by vepor .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install eslint-plugin-orbit-components 
SYNC missed versions from official npm registry.

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",
  }
}

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

Current Tags

  • 0.2.0-develop.1                                ...           develop (a year ago)
  • 0.2.0                                ...           latest (a year ago)

13 Versions

  • 0.2.0                                ...           a year ago
  • 0.2.0-develop.1                                ...           a year ago
  • 0.2.0-develop                                ...           a year ago
  • 0.1.0                                ...           a year ago
  • 0.0.0-development.8 [deprecated]           ...           a year ago
  • 0.0.0-development.7 [deprecated]           ...           a year ago
  • 0.0.0-development.6 [deprecated]           ...           a year ago
  • 0.0.0-development.5 [deprecated]           ...           a year ago
  • 0.0.0-development.4 [deprecated]           ...           a year ago
  • 0.0.0-development.3 [deprecated]           ...           a year ago
  • 0.0.0-development.2 [deprecated]           ...           a year ago
  • 0.0.0-development.1 [deprecated]           ...           a year ago
  • 0.0.0-development [deprecated]           ...           a year ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (11)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |