Skip to content

Commit fd4491a

Browse files
committed
Fix prettier formatting
1 parent fdf1b0b commit fd4491a

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

lib/rules/template-no-input-tagname.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,7 @@ module.exports = {
6060
visitors.ImportDeclaration = function (node) {
6161
if (node.source.value === '@ember/component') {
6262
for (const specifier of node.specifiers) {
63-
if (
64-
specifier.type === 'ImportSpecifier' &&
65-
specifier.imported.name === 'Input'
66-
) {
63+
if (specifier.type === 'ImportSpecifier' && specifier.imported.name === 'Input') {
6764
importedComponents.set(specifier.local.name, 'Input');
6865
}
6966
}

tests/lib/rules/template-no-input-tagname.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ ruleTester.run('template-no-input-tagname', rule, {
2626
invalid: [
2727
{
2828
filename: 'test.gjs',
29-
code: "import { Input } from '@ember/component';\n<template><Input @tagName=\"button\" /></template>",
29+
code: 'import { Input } from \'@ember/component\';\n<template><Input @tagName="button" /></template>',
3030
output: null,
3131
errors: [{ messageId: 'unexpected' }],
3232
},
3333
{
3434
filename: 'test.gts',
35-
code: "import { Input as Field } from '@ember/component';\n<template><Field @tagName=\"span\" /></template>",
35+
code: 'import { Input as Field } from \'@ember/component\';\n<template><Field @tagName="span" /></template>',
3636
output: null,
3737
errors: [{ messageId: 'unexpected' }],
3838
},

0 commit comments

Comments
 (0)