Skip to content

Commit 8743641

Browse files
committed
Lint:Fix
1 parent da96c63 commit 8743641

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ rules in templates can be disabled with eslint directives with mustache or html
288288
| [no-observers](docs/rules/no-observers.md) | disallow usage of observers || | |
289289
| [no-old-shims](docs/rules/no-old-shims.md) | disallow usage of old shims for modules || 🔧 | |
290290
| [no-string-prototype-extensions](docs/rules/no-string-prototype-extensions.md) | disallow usage of `String` prototype extensions || | |
291-
| [template-deprecated-inline-view-helper](docs/rules/template-deprecated-inline-view-helper.md) | disallow inline {{view}} helper | | | |
291+
| [template-deprecated-inline-view-helper](docs/rules/template-deprecated-inline-view-helper.md) | disallow inline {{view}} helper | | 🔧 | |
292292
| [template-no-action](docs/rules/template-no-action.md) | disallow {{action}} helper | | | |
293293
| [template-no-attrs-in-components](docs/rules/template-no-attrs-in-components.md) | disallow attrs in component templates | | | |
294294
| [template-no-link-to-positional-params](docs/rules/template-no-link-to-positional-params.md) | disallow positional params in LinkTo component | | | |

docs/rules/template-deprecated-inline-view-helper.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# ember/template-deprecated-inline-view-helper
22

3+
🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).
4+
35
> **HBS Only**: This rule applies to classic `.hbs` template files only (loose mode). It is not relevant for `gjs`/`gts` files (strict mode), where these patterns cannot occur.
46
57
<!-- end auto-generated rule header -->

lib/rules/template-deprecated-inline-view-helper.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ module.exports = {
8484
if (node.params && node.params.length > 0) {
8585
// {{view 'component-name'}} with a single string param is fixable
8686
const firstParam = node.params[0];
87-
const isFixable = node.params.length === 1 && firstParam.type === 'GlimmerStringLiteral';
87+
const isFixable =
88+
node.params.length === 1 && firstParam.type === 'GlimmerStringLiteral';
8889
context.report({
8990
node,
9091
messageId: 'deprecated',

0 commit comments

Comments
 (0)