Skip to content

Commit

Permalink
chore: add stacks/biome-config
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbbreuer committed Oct 8, 2024
1 parent bfb06a4 commit 553492b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 80 deletions.
77 changes: 1 addition & 76 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,79 +1,4 @@
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"organizeImports": {
"enabled": true
},
"overrides": [
{
"include": [".vscode/**"],
"json": {
"parser": {
"allowComments": true,
"allowTrailingCommas": true
}
}
}
],
"javascript": {
"formatter": {
"jsxQuoteStyle": "double",
"quoteProperties": "asNeeded",
"trailingComma": "all",
"semicolons": "asNeeded",
"arrowParentheses": "always",
"bracketSpacing": true,
"bracketSameLine": false,
"quoteStyle": "single",
"attributePosition": "auto",
"indentStyle": "space",
"indentWidth": 2,
"lineEnding": "lf",
"lineWidth": 120
}
},
"json": {
"formatter": {
"indentStyle": "space",
"indentWidth": 2,
"lineEnding": "lf"
}
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"style": {
"noParameterAssign": "off",
"noUnusedTemplateLiteral": "off",
"useBlockStatements": "off"
},
"complexity": {
"noForEach": "off",
"noStaticOnlyClass": "off",
"noThisInStatic": "off",
"noBannedTypes": "off"
},
"suspicious": {
"noExplicitAny": "off",
"noShadowRestrictedNames": "off",
"noImplicitAnyLet": "off"
}
}
},
"files": {
"ignore": [
"storage/framework/types/*",
"storage/framework/cache/*",
"storage/framework/server/*",
"storage/framework/core/vite-config/src/*.ts.timestamp*",
"storage/framework/core/orm/src/generated/*",
"storage/framework/core/components/notification/packages/Toast.vue"
]
},
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true,
"defaultBranch": "main"
}
"extends": ["@stacksjs/biome-config"]
}
Binary file modified bun.lockb
Binary file not shown.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
},
"devDependencies": {
"@biomejs/biome": "1.9.3",
"@stacksjs/biome-config": "0.1.5",
"@stacksjs/development": "^0.64.6",
"@types/bun": "^1.1.10",
"bun-plugin-dts-auto": "^0.20.5",
Expand Down
6 changes: 2 additions & 4 deletions test/reverse-proxy.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import { afterEach, beforeEach, describe, expect, it, mock, spyOn } from 'bun:test'
import * as http from 'node:http'
import * as net from 'node:net'
import { afterEach, beforeEach, describe, expect, it, mock } from 'bun:test'
import { setupReverseProxy, startHttpRedirectServer, startProxies, startProxy, startServer } from '../src/start'
import type { ReverseProxyOption } from '../src/types'

Expand Down Expand Up @@ -45,7 +43,7 @@ describe('@stacksjs/reverse-proxy', () => {
connect: mockConnect,
}))

await expect(startServer()).rejects.toThrow('Cannot start reverse proxy because localhost:3000 is unreachable.')
expect(startServer()).rejects.toThrow('Cannot start reverse proxy because localhost:3000 is unreachable.')
})
})

Expand Down

0 comments on commit 553492b

Please sign in to comment.