aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com>2023-09-10 20:42:01 +0200
committerGitHub <[email protected]>2023-09-10 20:42:01 +0200
commita8e608085fa0d199d4236734c34a5f000667b56e (patch)
tree3199b4f5e6fa036f74aaeb0374cfb7a2da056de4
parent769a4892cb56f293cb784cf87d45d3883a234002 (diff)
downloadfaker-a8e608085fa0d199d4236734c34a5f000667b56e.tar.xz
faker-a8e608085fa0d199d4236734c34a5f000667b56e.zip
chore(deps): update dependency prettier to v3.0.3 (#2375)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Shinigami92 <[email protected]>
-rw-r--r--.prettierrc.js6
-rw-r--r--README.md2
-rw-r--r--docs/guide/frameworks.md4
-rw-r--r--docs/guide/localization.md2
-rw-r--r--docs/guide/upgrading.md6
-rw-r--r--package.json2
-rw-r--r--pnpm-lock.yaml20
7 files changed, 24 insertions, 18 deletions
diff --git a/.prettierrc.js b/.prettierrc.js
index e851e51a..a81147f9 100644
--- a/.prettierrc.js
+++ b/.prettierrc.js
@@ -17,5 +17,11 @@ module.exports = {
trailingComma: 'none',
},
},
+ {
+ files: '*.md',
+ options: {
+ organizeImportsSkipDestructiveCodeActions: true,
+ },
+ },
],
};
diff --git a/README.md b/README.md
index 6ee30005..ceb80928 100644
--- a/README.md
+++ b/README.md
@@ -123,7 +123,7 @@ we fall back to English in such a case as this is the most complete and most com
If you don't want that or prefer a different fallback, you can also build your own instances.
```ts
-import { Faker, de, de_CH } from '@faker-js/faker';
+import { de, de_CH, Faker } from '@faker-js/faker';
export const faker = new Faker({
locale: [de_CH, de],
diff --git a/docs/guide/frameworks.md b/docs/guide/frameworks.md
index e7151638..4dec853f 100644
--- a/docs/guide/frameworks.md
+++ b/docs/guide/frameworks.md
@@ -13,8 +13,8 @@ Simply crop that line out for a Jest integration.
These frameworks work about exactly as you would expect with Faker. Here's a minimal example:
```ts
-import { describe, it, expect } from 'vitest';
import { faker } from '@faker-js/faker/locale/en';
+import { describe, expect, it } from 'vitest';
describe('reverse array', () => {
it('should reverse the array', () => {
@@ -36,8 +36,8 @@ These are especially useful in tests that are meant to be deterministic, such as
- [Snapshots in Jest](https://jestjs.io/docs/snapshot-testing)
```ts
-import { afterEach, describe, it, expect } from 'vitest';
import { faker } from '@faker-js/faker/locale/en';
+import { afterEach, describe, expect, it } from 'vitest';
// We might want other tests to *not* be seeded. This will re-seed our faker instance after each test.
afterEach(() => {
diff --git a/docs/guide/localization.md b/docs/guide/localization.md
index 44392f97..44f5f2fe 100644
--- a/docs/guide/localization.md
+++ b/docs/guide/localization.md
@@ -44,7 +44,7 @@ If our built-in faker instances don't satisfy your needs, you can build your own
```ts
import type { LocaleDefinition } from '@faker-js/faker';
-import { Faker, de_CH, de, en, base } from '@faker-js/faker';
+import { base, de, de_CH, en, Faker } from '@faker-js/faker';
const customLocale: LocaleDefinition = {
title: 'My custom locale',
diff --git a/docs/guide/upgrading.md b/docs/guide/upgrading.md
index 85b8fe6f..85b75268 100644
--- a/docs/guide/upgrading.md
+++ b/docs/guide/upgrading.md
@@ -58,7 +58,7 @@ const b = customFaker.internet.emoji();
**New**
```ts
-import { Faker, de_CH, de, en, base } from '@faker-js/faker';
+import { base, de, de_CH, en, Faker } from '@faker-js/faker';
// same as fakerDE_CH
export const customFaker = new Faker({
@@ -110,7 +110,7 @@ This will also give you detailed information which data are missing.
If you want to check for data you can either use `entry in faker.definitions.category` or use `faker.rawDefinitions.category?.entry` instead.
```ts
-import { Faker, fakerES, es } from '@faker-js/faker';
+import { es, Faker, fakerES } from '@faker-js/faker';
const fakerES_noFallbacks = new Faker({
locale: [es],
@@ -125,7 +125,7 @@ fakerES_noFallbacks.music.songName(); // throws a FakerError
This also has an impact on data that aren't applicable to a locale, for example Hong Kong (`en_HK`) doesn't use ZIP codes/postcodes.
```ts
-import { fakerEN_US, fakerEN_HK } from '@faker-js/faker';
+import { fakerEN_HK, fakerEN_US } from '@faker-js/faker';
fakerEN_US.location.zipCode(); // 90210
fakerEN_HK.location.zipCode(); // throws a FakerError
```
diff --git a/package.json b/package.json
index fc7b8d13..1fd8c437 100644
--- a/package.json
+++ b/package.json
@@ -112,7 +112,7 @@
"eslint-plugin-vitest": "~0.3.1",
"glob": "~10.3.4",
"npm-run-all": "~4.1.5",
- "prettier": "3.0.2",
+ "prettier": "3.0.3",
"prettier-plugin-organize-imports": "~3.2.3",
"rimraf": "~5.0.1",
"sanitize-html": "~2.11.0",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index c4ca0c3c..c2f6e25e 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -66,7 +66,7 @@ devDependencies:
version: 46.5.1([email protected])
eslint-plugin-prettier:
specifier: ~5.0.0
eslint-plugin-vitest:
specifier: ~0.3.1
version: 0.3.1(@typescript-eslint/[email protected])([email protected])([email protected])
@@ -77,11 +77,11 @@ devDependencies:
specifier: ~4.1.5
version: 4.1.5
prettier:
- specifier: 3.0.2
- version: 3.0.2
+ specifier: 3.0.3
+ version: 3.0.3
prettier-plugin-organize-imports:
specifier: ~3.2.3
rimraf:
specifier: ~5.0.1
version: 5.0.1
@@ -3003,7 +3003,7 @@ packages:
- supports-color
dev: true
resolution: {integrity: sha512-AgaZCVuYDXHUGxj/ZGu1u8H8CYgDY3iG6w5kUFw4AzMVXzB7VvbKgYR4nATIN+OvUrghMbiDLeimVjVY5ilq3w==}
engines: {node: ^14.18.0 || >=16.0.0}
peerDependencies:
@@ -3019,7 +3019,7 @@ packages:
dependencies:
eslint: 8.48.0
eslint-config-prettier: 9.0.0([email protected])
- prettier: 3.0.2
+ prettier: 3.0.3
prettier-linter-helpers: 1.0.0
synckit: 0.8.5
dev: true
@@ -4892,7 +4892,7 @@ packages:
fast-diff: 1.3.0
dev: true
resolution: {integrity: sha512-KFvk8C/zGyvUaE3RvxN2MhCLwzV6OBbFSkwZ2OamCrs9ZY4i5L77jQ/w4UmUr+lqX8qbaqVq6bZZkApn+IgJSg==}
peerDependencies:
'@volar/vue-language-plugin-pug': ^1.0.4
@@ -4905,12 +4905,12 @@ packages:
'@volar/vue-typescript':
optional: true
dependencies:
- prettier: 3.0.2
+ prettier: 3.0.3
typescript: 4.9.5
dev: true
- resolution: {integrity: sha512-o2YR9qtniXvwEZlOKbveKfDQVyqxbEIWn48Z8m3ZJjBjcCmUy3xZGIv+7AkaeuaTr6yPXJjwv07ZWlsWbEy1rQ==}
+ resolution: {integrity: sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==}
engines: {node: '>=14'}
hasBin: true
dev: true