Skip to content

Commit 73b8eae

Browse files
committed
chore: lint
1 parent 6c3ac8a commit 73b8eae

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

src/commands/hoist-regexp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export const hoistRegExp: Command = {
3939
ctx.report({
4040
node: regexNode,
4141
message: `Hoist regular expression to ${name}`,
42-
*fix(fixer) {
42+
* fix(fixer) {
4343
yield fixer.insertTextBefore(parent, `const ${name} = ${ctx.source.getText(regexNode)}\n`)
4444
yield fixer.replaceText(regexNode, name)
4545
},

src/commands/no-shorthand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const noShorthand: Command = {
1515
ctx.report({
1616
nodes,
1717
message: 'Expand shorthand',
18-
*fix(fixer) {
18+
* fix(fixer) {
1919
for (const node of nodes)
2020
yield fixer.insertTextAfter(node.key, `: ${ctx.getTextOf(node.key)}`)
2121
},

src/commands/no-type.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const noType: Command = {
1616
ctx.report({
1717
nodes,
1818
message: 'Remove type',
19-
*fix(fixer) {
19+
* fix(fixer) {
2020
for (const node of nodes.reverse()) {
2121
if (node.type === 'TSAsExpression' // foo as number
2222
|| node.type === 'TSSatisfiesExpression' // foo satisfies T

src/commands/to-string-literal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const toStringLiteral: Command = {
1919
ctx.report({
2020
nodes,
2121
message: 'Convert to string literal',
22-
*fix(fixer) {
22+
* fix(fixer) {
2323
for (const node of getNodesByIndexes(nodes, indexes)) {
2424
const ids = extractIdentifiers(node)
2525
let raw = JSON.stringify(ctx.source.getText(node).slice(1, -1)).slice(1, -1)

src/commands/to-template-literal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export const toTemplateLiteral: Command = {
3434
ctx.report({
3535
nodes,
3636
message: 'Convert to template literal',
37-
*fix(fixer) {
37+
* fix(fixer) {
3838
for (const node of nodes.reverse()) {
3939
if (node.type === 'BinaryExpression')
4040
yield fixer.replaceText(node, `\`${traverseBinaryExpression(node)}\``)

src/context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export class CommandContext {
102102
message,
103103
...report.data,
104104
},
105-
*fix(fixer) {
105+
* fix(fixer) {
106106
if (report.fix) {
107107
const result = report.fix(fixer)
108108
// if is generator

0 commit comments

Comments
 (0)