eslint-plugin-orbit-components
Advanced tools
Comparing version 0.1.0 to 0.2.0-develop
@@ -8,2 +8,4 @@ "use strict"; | ||
var _buttonHasTitle = _interopRequireDefault(require("./rules/buttonHasTitle")); | ||
var _unnecessaryText = _interopRequireDefault(require("./rules/unnecessaryText")); | ||
@@ -14,4 +16,5 @@ | ||
var rules = { | ||
"button-has-title": _buttonHasTitle.default, | ||
"unnecessary-text": _unnecessaryText.default | ||
}; | ||
exports.rules = rules; |
{ | ||
"name": "eslint-plugin-orbit-components", | ||
"version": "0.1.0", | ||
"version": "0.2.0-develop", | ||
"description": "Collection of ESLint rules to enforce the best usage practices of @kiwicom/orbit-components", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -27,2 +27,3 @@ # eslint-plugin-orbit-components | ||
// ... | ||
"orbit-components/button-has-title": "error", | ||
"orbit-components/unnecessary-text": "error", | ||
@@ -35,2 +36,3 @@ } | ||
- [button-has-title](docs/rules/button-has-title.md): Enforces that `Button` and `ButtonLink` do have either `children` or `title` property. | ||
- [unnecessary-text](docs/rules/unnecessary-text.md): Enforces that children of `Button` or `Heading` are not wrapped in `Text` component. | ||
@@ -37,0 +39,0 @@ |
216699
10
187
41