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
Revert .github changes
Remove attribute indentation rule. We have prettier for formatting concerns
Port over gjs/gts relevant ember-template-lint
cleanup
Add documentation and test files for removed ember rules
feat(rules): add template-require-valid-form-groups and template-template-length rules
- Introduced `template-require-valid-form-groups` rule to enforce proper grouping of form controls using `<fieldset>`/`<legend>` or WAI-ARIA roles.
- Added `template-template-length` rule to enforce size constraints on templates, allowing configuration for minimum and maximum line lengths.
- Updated documentation for existing rules to include configuration details.
- Added tests for both new rules to ensure correct functionality and error reporting.
Cleanup
Fix
fix
Update documentation links from ember-template-lint to eslint-plugin-ember
- Changed references in various rule documentation files to point to the new eslint-plugin-ember URLs instead of ember-template-lint.
- Updated tests to reflect the change in rule naming conventions.
Add scope checking to template-no-arguments-for-html-elements
Fix
oof
Cleanup
Enhance linting rules: refine messages and add checks for `this.attrs`, `this.this`, and yield scenarios
Refactor rule and tests for template-no-attrs-in-components: specify `this.attrs` usage and update examples
lint:fix
Fix AI garbage
ope
ope
In progress copying more tests over
Refactor lint rules and update test cases for improved clarity and functionality
Fixes
Docs updates
Fix
ope
ope
ope
Test fixes
Fix
cleanup
Copy file name to clipboardExpand all lines: docs/rules/no-array-prototype-extensions.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -139,6 +139,6 @@ arr.uniq();
139
139
140
140
## Related Rules
141
141
142
-
-[no-array-prototype-extensions](https://github.com/ember-template-lint/ember-template-lint/blob/master/docs/rule/no-array-prototype-extensions.md) from ember-template-lint
142
+
-[template-no-array-prototype-extensions](https://github.com/ember-cli/eslint-plugin-ember/blob/master/docs/rules/template-no-array-prototype-extensions.md) from eslint-plugin-ember
For more examples, see [the docs on ember-template-lint](https://github.com/ember-template-lint/ember-template-lint/blob/master/docs/rule/no-at-ember-render-modifiers.md).
48
+
For more examples, see [the docs on eslint-plugin-ember](https://github.com/ember-cli/eslint-plugin-ember/blob/master/docs/rules/template-no-at-ember-render-modifiers.md).
-[Avoiding Lifecycle in Component](https://nullvoxpopuli.com/avoiding-lifecycle)
56
-
-[The `ember-template-lint` version of this rule](https://github.com/ember-template-lint/ember-template-lint/blob/master/docs/rule/no-at-ember-render-modifiers.md)
56
+
-[The `eslint-plugin-ember` version of this rule](https://github.com/ember-cli/eslint-plugin-ember/blob/master/docs/rules/template-no-at-ember-render-modifiers.md)
-ember-template-lint has a [no-triple-curlies](https://github.com/ember-template-lint/ember-template-lint/blob/master/docs/rule/no-triple-curlies.md) rule for the template equivalent of this rule.
112
+
-eslint-plugin-ember has a [template-no-triple-curlies](https://github.com/ember-cli/eslint-plugin-ember/blob/master/docs/rules/template-no-triple-curlies.md) rule for the template equivalent of this rule.
Copy file name to clipboardExpand all lines: docs/rules/no-restricted-service-injections.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,4 +60,4 @@ Accepts an array of the objects with the following options:
60
60
## Related Rules
61
61
62
62
- The [no-restricted-imports](https://eslint.org/docs/rules/no-restricted-imports) or [import/no-restricted-paths](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-restricted-paths.md) rules are the JavaScript import statement equivalent of this rule.
63
-
-ember-template-lint has a [no-restricted-invocations](https://github.com/ember-template-lint/ember-template-lint/blob/master/docs/rule/no-restricted-invocations.md) rule for disallowing component usages.
63
+
-eslint-plugin-ember has a [template-no-restricted-invocations](https://github.com/ember-cli/eslint-plugin-ember/blob/master/docs/rules/template-no-restricted-invocations.md) rule for disallowing component usages.
|`order`|`string[]`|`["arguments", "attributes", "modifiers"]`| The order of token type groups. Valid values: `"arguments"`, `"attributes"`, `"modifiers"`, `"splattributes"`, `"comments"`. |
60
+
|`alphabetize`|`boolean`|`true`| Whether to alphabetize attributes within each group. |
In Ember 1.12, support for invoking the inline View helper was deprecated.
6
+
7
+
## Rule Details
8
+
9
+
This rule flags `{{view}}` mustache or block statements that have hash pair arguments (e.g., `{{view 'foo' key=value}}`). Simple `{{view.property}}` path expressions or other usages without hash pairs are not flagged.
10
+
11
+
## Examples
12
+
13
+
This rule **forbids** the following:
14
+
15
+
```gjs
16
+
<template>
17
+
{{view 'this-is-bad' tagName="span"}}
18
+
19
+
{{#view tagName="span"}}content{{/view}}
20
+
</template>
21
+
```
22
+
23
+
This rule **allows** the following:
24
+
25
+
```gjs
26
+
<template>
27
+
{{this-is-better}}
28
+
29
+
{{qux-qaz this=good}}
30
+
31
+
<div foo={{bar}}></div>
32
+
</template>
33
+
```
34
+
35
+
## References
36
+
37
+
- More information is available at the [Deprecation Guide](http://emberjs.com/deprecations/v1.x/#toc_ember-view).
0 commit comments