Skip to content

Commit f91a5a2

Browse files
authored
Merge branch 'next' into docs/algolia/index-per-branch
2 parents ddca0cb + 945acc1 commit f91a5a2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+1848
-1137
lines changed

.eslintrc.js

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
const { defineConfig } = require('eslint-define-config');
33
const { readGitignoreFiles } = require('eslint-gitignore');
44

5+
/// <reference types="@eslint-types/deprecation" />
6+
/// <reference types="@eslint-types/jsdoc" />
7+
/// <reference types="@eslint-types/prettier" />
8+
/// <reference types="@eslint-types/typescript-eslint" />
9+
/// <reference types="@eslint-types/unicorn" />
10+
511
module.exports = defineConfig({
612
ignorePatterns: [
713
...readGitignoreFiles(),
@@ -29,6 +35,7 @@ module.exports = defineConfig({
2935
eqeqeq: ['error', 'always', { null: 'ignore' }],
3036
'no-else-return': 'error',
3137
'no-restricted-globals': ['error', 'Intl'],
38+
'prefer-exponentiation-operator': 'error',
3239
'prefer-template': 'error',
3340

3441
'unicorn/no-nested-ternary': 'off', // incompatible with prettier
@@ -54,7 +61,6 @@ module.exports = defineConfig({
5461
'unicorn/no-object-as-default-parameter': 'off',
5562
'unicorn/no-useless-switch-case': 'off',
5663
'unicorn/numeric-separators-style': 'off',
57-
'unicorn/prefer-code-point': 'off',
5864
'unicorn/prefer-export-from': 'off',
5965
'unicorn/prefer-string-slice': 'off',
6066
'unicorn/prevent-abbreviations': 'off',
@@ -100,7 +106,10 @@ module.exports = defineConfig({
100106
'error',
101107
{ allowNumber: true, allowBoolean: true },
102108
],
103-
'@typescript-eslint/switch-exhaustiveness-check': 'error',
109+
'@typescript-eslint/switch-exhaustiveness-check': [
110+
'error',
111+
{ requireDefaultForNonUnion: true },
112+
],
104113
'@typescript-eslint/unbound-method': 'off',
105114
'@typescript-eslint/unified-signatures': 'off', // incompatible with our api docs generation
106115

.github/workflows/comment-issue.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
issues: write
1414
steps:
1515
- name: Add Comment For User Interest
16-
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1
16+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
1717
with:
1818
script: |
1919
github.rest.issues.createComment({
@@ -49,7 +49,7 @@ jobs:
4949
})
5050
5151
- name: React to Issue
52-
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1
52+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
5353
with:
5454
script: |
5555
github.rest.reactions.createForIssue({

.github/workflows/pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
run: pnpm exec tsc .github/workflows/commentCodeGeneration.ts --outDir .github/workflows
5454

5555
- name: Comment
56-
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1
56+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
5757
with:
5858
script: |
5959
const script = require('${{ github.workspace }}/.github/workflows/commentCodeGeneration.js')

.prettierrc.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import type { Options } from 'prettier';
2+
3+
declare const options: Options;
4+
export = options;

docs/.vitepress/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ const config = defineConfig({
148148
link: '/api/',
149149
},
150150
{
151-
text: 'Ecosystem',
151+
text: 'Try it',
152152
items: [{ text: 'StackBlitz ', link: 'https://fakerjs.dev/new' }],
153153
},
154154
{

package.json

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -89,31 +89,36 @@
8989
"devDependencies": {
9090
"@actions/github": "~6.0.0",
9191
"@algolia/client-search": "~4.19.1",
92-
"@types/markdown-it": "~13.0.6",
93-
"@types/node": "~20.9.0",
94-
"@types/sanitize-html": "~2.9.4",
95-
"@types/semver": "~7.5.5",
96-
"@types/validator": "~13.11.6",
97-
"@typescript-eslint/eslint-plugin": "~6.10.0",
98-
"@typescript-eslint/parser": "~6.10.0",
92+
"@eslint-types/deprecation": "2.0.0-1",
93+
"@eslint-types/jsdoc": "~46.9.1",
94+
"@eslint-types/prettier": "5.1.2",
95+
"@eslint-types/typescript-eslint": "~6.16.0",
96+
"@eslint-types/unicorn": "~49.0.0",
97+
"@types/markdown-it": "~13.0.7",
98+
"@types/node": "~20.10.5",
99+
"@types/sanitize-html": "~2.9.5",
100+
"@types/semver": "~7.5.6",
101+
"@types/validator": "~13.11.7",
102+
"@typescript-eslint/eslint-plugin": "~6.16.0",
103+
"@typescript-eslint/parser": "~6.16.0",
99104
"@vitest/coverage-v8": "~0.34.6",
100105
"@vitest/ui": "~0.34.7",
101-
"@vueuse/core": "~10.6.0",
106+
"@vueuse/core": "~10.7.1",
102107
"conventional-changelog-cli": "~4.1.0",
103-
"cypress": "~13.5.0",
104-
"esbuild": "~0.19.5",
105-
"eslint": "~8.53.0",
106-
"eslint-config-prettier": "~9.0.0",
107-
"eslint-define-config": "~1.24.1",
108+
"cypress": "~13.6.2",
109+
"esbuild": "~0.19.10",
110+
"eslint": "~8.56.0",
111+
"eslint-config-prettier": "~9.1.0",
112+
"eslint-define-config": "~2.1.0",
108113
"eslint-gitignore": "~0.1.0",
109114
"eslint-plugin-deprecation": "~2.0.0",
110-
"eslint-plugin-jsdoc": "~46.9.0",
111-
"eslint-plugin-prettier": "~5.0.1",
115+
"eslint-plugin-jsdoc": "~46.9.1",
116+
"eslint-plugin-prettier": "~5.1.2",
112117
"eslint-plugin-unicorn": "~49.0.0",
113-
"eslint-plugin-vitest": "~0.3.9",
118+
"eslint-plugin-vitest": "~0.3.20",
114119
"glob": "~10.3.10",
115120
"npm-run-all": "~4.1.5",
116-
"prettier": "3.1.0",
121+
"prettier": "3.1.1",
117122
"prettier-plugin-organize-imports": "~3.2.4",
118123
"rimraf": "~5.0.5",
119124
"sanitize-html": "~2.11.0",
@@ -123,10 +128,10 @@
123128
"typedoc": "~0.24.8",
124129
"typescript": "~4.9.5",
125130
"validator": "~13.11.0",
126-
"vite": "~4.5.0",
131+
"vite": "~4.5.1",
127132
"vitepress": "1.0.0-beta.7",
128133
"vitest": "~0.34.6",
129-
"vue": "~3.3.8"
134+
"vue": "~3.3.13"
130135
},
131136
"packageManager": "pnpm@8.5.1",
132137
"engines": {

0 commit comments

Comments
 (0)