Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore/biome #890

Merged
merged 7 commits into from
Mar 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
13 changes: 2 additions & 11 deletions .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,7 @@
}
],
"commit": false,
"fixed": [
[
"@kubb/*"
]
],
"fixed": [["@kubb/*"]],
"linked": [],
"access": "restricted",
"baseBranch": "main",
Expand All @@ -20,10 +16,5 @@
"onlyUpdatePeerDependentsWhenOutOfRange": true
},
"useCalculatedVersion": true,
"ignore": [
"kubb",
"kubb-docs",
"e2e",
"*-pet-store"
]
"ignore": ["kubb", "kubb-docs", "e2e", "*-pet-store"]
}
51 changes: 0 additions & 51 deletions .dprint.jsonc

This file was deleted.

13 changes: 0 additions & 13 deletions .eslintignore

This file was deleted.

1 change: 0 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
public-hoist-pattern[]=*eslint*
public-hoist-pattern[]=*prettier*
53 changes: 0 additions & 53 deletions .prettierignore

This file was deleted.

8 changes: 5 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{
"prettier.configPath": "configs/prettier.config.cjs",
"editor.defaultFormatter": "dprint.dprint",
"editor.defaultFormatter": "biomejs.biome",
"editor.codeActionsOnSave": {
"source.organizeImports.biome": "explicit"
},
"[json]": {
"editor.defaultFormatter": "dprint.dprint"
"editor.defaultFormatter": "biomejs.biome"
},
"files.exclude": {
"**/.git": true,
Expand Down
4 changes: 4 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$schema": "https://biomejs.dev/schemas/1.6.3/schema.json",
"extends": ["@kubb/biome-config/biome"]
}
52 changes: 0 additions & 52 deletions configs/prettier.config.cjs

This file was deleted.

26 changes: 18 additions & 8 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,12 @@ export default defineConfig({
['meta', { property: 'twitter:description', content: description }],
['link', { rel: 'icon', href: '/logo.png', type: 'image/png' }],
['link', { rel: 'mask-icon', href: '/logo.png', color: '#ffffff' }],
['script', { src: 'https://cdn.jsdelivr.net/npm/[email protected]/dist/confetti.browser.min.js' }],
[
'script',
{
src: 'https://cdn.jsdelivr.net/npm/[email protected]/dist/confetti.browser.min.js',
},
],
],
transformHtml: (code, id, { pageData }) => {
if (!/[\\/]404\.html$/.test(id)) {
Expand Down Expand Up @@ -520,15 +525,21 @@ export default defineConfig({
{
text: 'Plugins',
activeMatch: 'plugins',
items: [
...pluginsMenu,
],
items: [...pluginsMenu],
},
{
text: 'Reference',
link: '/reference/overview',
activeMatch: 'reference',
},
{ text: 'Reference', link: '/reference/overview', activeMatch: 'reference' },
{
text: 'Try Out',
items: [
{ text: 'Examples', link: '/examples/typescript', activeMatch: 'examples' },
{
text: 'Examples',
link: '/examples/typescript',
activeMatch: 'examples',
},
{ text: 'Playground', link: '/playground' },
],
},
Expand Down Expand Up @@ -566,8 +577,7 @@ export default defineConfig({
],
},
{
text:
`<iframe src="https://github.com/sponsors/stijnvanhulle/button" title="Sponsor stijnvanhulle" height="32" width="114" style="border: 0; border-radius: 6px;"></iframe>
text: `<iframe src="https://github.com/sponsors/stijnvanhulle/button" title="Sponsor stijnvanhulle" height="32" width="114" style="border: 0; border-radius: 6px;"></iframe>
`,
link: '',
},
Expand Down
95 changes: 58 additions & 37 deletions e2e/kubb.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,13 @@ const baseConfig = {
done: ['pnpm typecheck'],
},
plugins: [
['@kubb/swagger', {
output: false,
validate: true,
}],
[
'@kubb/swagger',
{
output: false,
validate: true,
},
],
[
'@kubb/swagger-ts',
{
Expand All @@ -50,46 +53,64 @@ const baseConfig = {
enumType: 'asPascalConst',
},
],
['@kubb/swagger-tanstack-query', {
output: {
path: './clients/hooks',
},
group: { type: 'tag' },
mutate: {
variablesType: 'mutate',
[
'@kubb/swagger-tanstack-query',
{
output: {
path: './clients/hooks',
},
group: { type: 'tag' },
mutate: {
variablesType: 'mutate',
},
},
}],
['@kubb/swagger-swr', {
output: {
path: './clients/swr',
],
[
'@kubb/swagger-swr',
{
output: {
path: './clients/swr',
},
group: { type: 'tag' },
},
group: { type: 'tag' },
}],
['@kubb/swagger-client', {
output: {
path: './clients/axios',
],
[
'@kubb/swagger-client',
{
output: {
path: './clients/axios',
},
group: { type: 'tag', output: './clients/axios/{{tag}}Service' },
},
group: { type: 'tag', output: './clients/axios/{{tag}}Service' },
}],
['@kubb/swagger-zod', {
output: {
path: './zod',
],
[
'@kubb/swagger-zod',
{
output: {
path: './zod',
},
group: { type: 'tag' },
},
group: { type: 'tag' },
}],
],
['@kubb/swagger-zodios', { output: { path: 'zodios.ts' } }],
['@kubb/swagger-faker', {
output: {
path: 'mocks',
[
'@kubb/swagger-faker',
{
output: {
path: 'mocks',
},
group: { type: 'tag' },
},
group: { type: 'tag' },
}],
['@kubb/swagger-msw', {
output: {
path: 'msw',
],
[
'@kubb/swagger-msw',
{
output: {
path: 'msw',
},
group: { type: 'tag' },
},
group: { type: 'tag' },
}],
],
],
}

Expand Down
Loading
Loading