0.6.10 • Published 11 months ago

eslint-plugin-orbit-components v0.6.10

Weekly downloads
3,319
License
MIT
Repository
github
Last release
11 months ago

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

0.6.9

11 months ago

0.6.8

11 months ago

0.6.10

11 months ago

0.6.7

11 months ago

0.6.6

11 months ago

0.6.5

11 months ago

0.6.4

11 months ago

0.6.3

1 year ago

0.6.2

1 year ago

0.6.1

1 year ago

0.5.6

2 years ago

0.5.5

2 years ago

0.5.4

3 years ago

0.5.3

3 years ago

0.5.2

3 years ago

0.5.1

3 years ago

0.5.0

3 years ago

0.4.0

3 years ago

0.3.2

3 years ago

0.3.1

3 years ago

0.3.0

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

4 years ago

0.2.0-develop.1

5 years ago

0.2.0-develop

5 years ago

0.1.0

5 years ago