Skip to content

Commit

Permalink
refactor: renamed to be more general
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksteffens authored Feb 8, 2021
1 parent 576974f commit 74df6a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The following sets of rules are available for your `ember-template-lint` configu
| Name | Description |
| :--------------------- | :------------------------------------------------------------------- |
| `avoid-possible-typos` | Rules meant to catch possible typos in your templates |
| `avoid-b-and-i-tags` | Rules meant to catch `<b>` and `<i>` tags, use `<strong>` and `<em>` |
| `avoid-deprecated-elements` | Rules meant to catch `<b>` and `<i>` tags, use `<strong>` and `<em>` |
| `base` | The base set of rules used across all Movable Ink projects |

## Usage
Expand All @@ -40,7 +40,7 @@ module.exports = {
extends: [
// You can extend a whole set of rules
'@movable/template-lint-plugin:avoid-possible-typos',
'@movable/template-lint-plugin:avoid-b-and-i-tags',
'@movable/template-lint-plugin:avoid-deprecated-elements',
],

rules: [
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ module.exports = {
'no-expression-like-strings': true,
},
},
'avoid-b-and-i-tags': {
'avoid-deprecated-elements': {
rules: {
'no-forbidden-elements': ['b', 'i']
}
},
base: {
extends: ['recommended', '@movable/template-lint-plugin:avoid-possible-typos', '@movable/template-lint-plugin:avoid-b-and-i-tags'],
extends: ['recommended', '@movable/template-lint-plugin:avoid-possible-typos', '@movable/template-lint-plugin:avoid-deprecated-elements'],
rules: {
// Overrides to built-in "recommended" rules
'no-inline-styles': {
Expand Down

0 comments on commit 74df6a9

Please sign in to comment.