You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/rules/template-no-restricted-invocations.md
+13-41Lines changed: 13 additions & 41 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,72 +6,44 @@ Disallow certain components, helpers or modifiers from being used.
6
6
7
7
Use cases include:
8
8
9
-
- You bring in some addon with helpers or components, but your team deems one or many not suitable and wants to guard against their usage
9
+
- You bring in some addon like ember-composable-helpers, but your team deems one or many of the helpers not suitable and wants to guard against their usage
10
10
- You want to discourage use of a deprecated component
-`string[]` - helpers or components to disallow (using kebab-case names like `nested-scope/component-name`)
49
-
-`object[]` - with the following keys:
50
-
-`names` - `string[]` - helpers or components to disallow
51
-
-`message` - `string` - custom error message to report for violations
52
-
53
-
```js
54
-
// .eslintrc.js
55
-
module.exports= {
56
-
rules: {
57
-
'ember/template-no-restricted-invocations': [
58
-
'error',
59
-
[
60
-
'foo-bar',
61
-
{
62
-
names: ['deprecated-component'],
63
-
message:'Use new-component instead',
64
-
},
65
-
],
66
-
],
67
-
},
68
-
};
69
-
```
38
+
- string[] - helpers or components to disallow (using kebab-case names like `nested-scope/component-name`)
39
+
- object[] - with the following keys:
40
+
-`names` - string[] - helpers or components to disallow (using kebab-case names like `nested-scope/component-name`)
41
+
-`message` - string - custom error message to report for violations (typically a deprecation notice / explanation of why not to use it and a recommended replacement)
0 commit comments