0.6.10 • Published 2 years ago
eslint-plugin-orbit-components v0.6.10
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 --devThen 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
ButtonandButtonLinkdo have eitherchildrenortitleproperty. - unnecessary-text: Enforces that children of
ButtonorHeadingare not wrapped inTextcomponent.
License
MIT
0.6.9
2 years ago
0.6.8
2 years ago
0.6.10
2 years ago
0.6.7
2 years ago
0.6.6
2 years ago
0.6.5
2 years ago
0.6.4
2 years ago
0.6.3
3 years ago
0.6.2
3 years ago
0.6.1
3 years ago
0.5.6
3 years ago
0.5.5
4 years ago
0.5.4
4 years ago
0.5.3
4 years ago
0.5.2
4 years ago
0.5.1
5 years ago
0.5.0
5 years ago
0.4.0
5 years ago
0.3.2
5 years ago
0.3.1
5 years ago
0.3.0
5 years ago
0.2.3
5 years ago
0.2.2
5 years ago
0.2.1
5 years ago
0.2.0
6 years ago
0.2.0-develop.1
6 years ago
0.2.0-develop
6 years ago
0.1.0
6 years ago
0.0.0-development.8
6 years ago
0.0.0-development.7
6 years ago
0.0.0-development.6
6 years ago
0.0.0-development.5
6 years ago
0.0.0-development.4
6 years ago
0.0.0-development.3
6 years ago
0.0.0-development.2
6 years ago
0.0.0-development.1
6 years ago
0.0.0-development
6 years ago