Skip to content

Commit

Permalink
chore: bump module replacements to 2.2.0 (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
43081j authored Jul 18, 2024
1 parent ab4718d commit e3ef053
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions src/test/rules/ban-dependencies_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ ruleTester.run('ban-dependencies', rule, {
messageId: 'simpleReplacement',
data: {
name: 'is-number',
replacement: `Use typeof v === "number"`
replacement: `Use typeof v === "number" || (typeof v === "string" && Number.isFinite(+v))`
}
}
]
Expand All @@ -116,7 +116,7 @@ ruleTester.run('ban-dependencies', rule, {
messageId: 'simpleReplacement',
data: {
name: 'is-number',
replacement: `Use typeof v === "number"`
replacement: `Use typeof v === "number" || (typeof v === "string" && Number.isFinite(+v))`
}
}
]
Expand All @@ -130,7 +130,7 @@ ruleTester.run('ban-dependencies', rule, {
messageId: 'simpleReplacement',
data: {
name: 'is-number',
replacement: `Use typeof v === "number"`
replacement: `Use typeof v === "number" || (typeof v === "string" && Number.isFinite(+v))`
}
}
]
Expand All @@ -145,7 +145,7 @@ ruleTester.run('ban-dependencies', rule, {
messageId: 'simpleReplacement',
data: {
name: 'is-number',
replacement: `Use typeof v === "number"`
replacement: `Use typeof v === "number" || (typeof v === "string" && Number.isFinite(+v))`
}
}
]
Expand Down

0 comments on commit e3ef053

Please sign in to comment.