Skip to content

Commit

Permalink
chore: auto format
Browse files Browse the repository at this point in the history
  • Loading branch information
ST-DDT committed Dec 29, 2024
1 parent 5b7e38f commit 24406d0
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"build": "run-s build:clean build:code",
"generate": "run-s generate:locales generate:api-docs",
"generate:api-docs": "tsx ./scripts/apidocs.ts",
"generate:examples": "tsx ./scripts/examples.ts",
"generate:examples": "tsx ./scripts/examples.ts && pnpm run format",
"generate:locales": "tsx ./scripts/generate-locales.ts",
"docs:build": "run-s generate:api-docs docs:build:run",
"docs:build:run": "vitepress build docs",
Expand Down
2 changes: 1 addition & 1 deletion src/modules/git/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class GitModule extends ModuleBase {
* // 'commit fdb9e9df8bbce110cbdfbab2e3eb95bac0dddef7
* // Author: Humberto Beier <Humberto.Beier98@yahoo.com>
* // Date: Tue Dec 31 04:00:46 2024 -0800
* //
* //
* //     override cross-platform hard drive

Check failure on line 43 in src/modules/git/index.ts

View workflow job for this annotation

GitHub Actions / Lint: node-22, ubuntu-latest

Irregular whitespace not allowed
* // '
*
Expand Down
4 changes: 2 additions & 2 deletions src/modules/helpers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1002,10 +1002,10 @@ export class SimpleHelpersModule extends SimpleModuleBase {
* @example
* enum Color { Red, Green, Blue }
* faker.helpers.enumValue(Color) // 1
*
*
* enum Direction { North = 'North', South = 'South'}
* faker.helpers.enumValue(Direction) // 'South'
*
*
* enum HttpStatus { Ok = 200, Created = 201, BadRequest = 400, Unauthorized = 401 }
* faker.helpers.enumValue(HttpStatus) // 400
*
Expand Down
12 changes: 6 additions & 6 deletions src/modules/lorem/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,18 +266,18 @@ export class LoremModule extends ModuleBase {
* // 'Sumo pax impedit curriculum sint debitis vallum. Credo textilis eveniet minus vespillo aeneus alias accusator tristis tergo. Volutabrum thermae deinde termes angustus rerum arbitro vinco enim.
* // Celo teres defleo minus accusamus quae. Provident villa statim contigo debilito subiungo adulescens. Spargo bene aperiam comedo convoco molestiae decens voveo.
* // Bellicus arx solitudo. Deleniti caries articulus amor sollicito. Auxilium corporis trado alter.'
*
*
* faker.lorem.paragraphs(5)
* // 'Alo voluptatibus delicate voluptatibus pecco tactus adflicto cimentarius animi. Angustus cometes cupio advoco stultus. Cena eos aliquid nemo vetus comis sopor.
* // Sumptus clam auctus occaecati. Tricesimus abeo spiritus. Tabesco vivo carpo nemo omnis.
* // Cado viridis dedecor tyrannus subnecto coadunatio torqueo. Uxor nobis uxor stultus surgo desino. Sequi curriculum pecto accusantium cogito solutio clam quae curto appositus.
* // Molestiae officiis natus solitudo solio. Vel corona debeo vapulus timidus succurro. Verto summopere vulticulus.
* // Ustilo ascisco possimus anser. Timor modi cum aegrus subiungo defetiscor suppono usitas voluptates. Absum contigo sustineo astrum eligendi adopto aveho accusamus textus.'
*
*
* faker.lorem.paragraphs(2, '<br/>\n')
* // 'Coniuratio vestrum succurro addo. Quas neque capio victus. Facilis officia sustineo color cubicularis bellum audentia.&lt;br/>
* // Tactus depraedor calcar caterva adsuesco damno color subito crapula attero. Aegre spoliatio defetiscor. Vel vulariter bis somnus celer accusator tempora.'
*
*
* faker.lorem.paragraphs({ min: 1, max: 3 }) // 'Odio tripudio quo uter certus theologus. Viridis stips bibo vinitor. Catena benigne eaque acies beatus currus corrumpo delectus.'
*
* @since 2.0.1
Expand Down Expand Up @@ -340,17 +340,17 @@ export class LoremModule extends ModuleBase {
* // 'Pax impedit curriculum sint debitis vallum vix credo.
* // Eveniet minus vespillo aeneus alias accusator tristis tergo usus.
* // Thermae deinde termes angustus rerum arbitro vinco enim cuppedia celo.'
*
*
* faker.lorem.lines()
* // 'Minus accusamus quae perspiciatis provident villa.
* // Contigo debilito subiungo adulescens sopor spargo bene aperiam.
* // Convoco molestiae decens voveo ambitus.
* // Arx solitudo catena deleniti.'
*
*
* faker.lorem.lines(2)
* // 'Articulus amor sollicito aptus.
* // Corporis trado alter tum.'
*
*
* faker.lorem.lines({ min: 1, max: 3 }) // 'Delicate voluptatibus pecco tactus adflicto cimentarius animi clementia angustus cometes.'
*
* @since 3.1.0
Expand Down
24 changes: 12 additions & 12 deletions src/simple-faker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,22 +48,22 @@ export class SimpleFaker {
*
* @example
* faker.seed(1234); // 1234
*
*
* // Default behavior
* // faker.setDefaultRefDate();
* faker.date.past(); // '2024-03-11T20:42:37.195Z'
*
*
* // Use a static ref date
* faker.setDefaultRefDate(new Date('2020-01-01')); // undefined
* faker.date.past(); // '2019-08-16T01:40:21.582Z'
*
*
* // Use a ref date that changes every time it is used
* let clock = new Date("2020-01-01").getTime();
* faker.setDefaultRefDate(() => {
* clock += 1000; // +1s
* return new Date(clock);
* }); // undefined
*
*
* faker.defaultRefDate() // '2020-01-01T00:00:01.000Z'
* faker.defaultRefDate() // '2020-01-01T00:00:02.000Z'
*
Expand Down Expand Up @@ -171,11 +171,11 @@ export class SimpleFaker {
* faker.seed(42) // 42
* faker.number.int(10); // 4
* faker.number.int(10); // 10
*
*
* faker.seed(42) // 42
* faker.number.int(10); // 4
* faker.number.int(10); // 10
*
*
* // Random but reproducible tests:
* // Simply log the seed, and if you need to reproduce it, insert the seed here
* console.log('Running test with seed:', faker.seed());
Expand Down Expand Up @@ -208,11 +208,11 @@ export class SimpleFaker {
* faker.seed([42, 13, 17]) // [ 42, 13, 17 ]
* faker.number.int(10); // 3
* faker.number.int(10); // 10
*
*
* faker.seed([42, 13, 17]) // [ 42, 13, 17 ]
* faker.number.int(10); // 3
* faker.number.int(10); // 10
*
*
* // Random but reproducible tests:
* // Simply log the seed, and if you need to reproduce it, insert the seed here
* console.log('Running test with seed:', faker.seed());
Expand Down Expand Up @@ -245,20 +245,20 @@ export class SimpleFaker {
* faker.seed(42) // 42
* faker.number.int(10); // 4
* faker.number.int(10); // 10
*
*
* faker.seed(42) // 42
* faker.number.int(10); // 4
* faker.number.int(10); // 10
*
*
* // Consistent values for tests (using an array):
* faker.seed([42, 13, 17]) // [ 42, 13, 17 ]
* faker.number.int(10); // 3
* faker.number.int(10); // 10
*
*
* faker.seed([42, 13, 17]) // [ 42, 13, 17 ]
* faker.number.int(10); // 3
* faker.number.int(10); // 10
*
*
* // Random but reproducible tests:
* // Simply log the seed, and if you need to reproduce it, insert the seed here
* console.log('Running test with seed:', faker.seed());
Expand Down

0 comments on commit 24406d0

Please sign in to comment.