aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorST-DDT <[email protected]>2023-12-28 15:27:37 +0100
committerGitHub <[email protected]>2023-12-28 14:27:37 +0000
commit1fc1bcc5d4d5ac842156cbc00901649dc4c2f624 (patch)
tree6d91957a631cefa9692ede22478cc7846bb736c5
parent293f12741acb188fd8c7d9d6b3dc2dd9b52d4214 (diff)
downloadfaker-1fc1bcc5d4d5ac842156cbc00901649dc4c2f624.tar.xz
faker-1fc1bcc5d4d5ac842156cbc00901649dc4c2f624.zip
chore(typescript-eslint): no-useless-template-literals (#2589)
-rw-r--r--src/modules/commerce/index.ts2
-rw-r--r--src/modules/lorem/index.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/commerce/index.ts b/src/modules/commerce/index.ts
index 425bc848..6750299b 100644
--- a/src/modules/commerce/index.ts
+++ b/src/modules/commerce/index.ts
@@ -283,7 +283,7 @@ export class CommerceModule extends ModuleBase {
const { dec = 2, max = 1000, min = 1, symbol = '' } = options;
if (min < 0 || max < 0) {
- return `${symbol}${0.0}`;
+ return `${symbol}0`;
}
// TODO @Shinigami92 2022-11-24: https://github.com/faker-js/faker/issues/350
diff --git a/src/modules/lorem/index.ts b/src/modules/lorem/index.ts
index ca71afdf..1f9ba026 100644
--- a/src/modules/lorem/index.ts
+++ b/src/modules/lorem/index.ts
@@ -327,7 +327,7 @@ export class LoremModule extends ModuleBase {
const method = this.faker.helpers.arrayElement(methods);
- return `${this[method]()}`;
+ return this[method]();
}
/**