-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2ab3250
commit f33d379
Showing
12 changed files
with
285 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,139 @@ | ||
// For a full list of overridable settings, and general information on folder-specific settings, | ||
// see the documentation: https://zed.dev/docs/configuring-zed#settings-files | ||
{ | ||
"languages": { | ||
"JavaScript": { | ||
"formatter": { | ||
"code_actions": { | ||
"source.fixAll.eslint": true | ||
} | ||
} | ||
}, | ||
"TypeScript": { | ||
"formatter": { | ||
"code_actions": { | ||
"source.fixAll.eslint": true | ||
} | ||
} | ||
}, | ||
"HTML": { | ||
"formatter": { | ||
"code_actions": { | ||
"source.fixAll.eslint": true | ||
} | ||
} | ||
}, | ||
"CSS": { | ||
"formatter": { | ||
"code_actions": { | ||
"source.fixAll.eslint": true | ||
} | ||
} | ||
}, | ||
"Markdown": { | ||
"formatter": { | ||
"code_actions": { | ||
"source.fixAll.eslint": true | ||
} | ||
} | ||
}, | ||
"JSON": { | ||
"formatter": { | ||
"code_actions": { | ||
"source.fixAll.eslint": true | ||
} | ||
} | ||
}, | ||
"JSONC": { | ||
"formatter": { | ||
"code_actions": { | ||
"source.fixAll.eslint": true | ||
} | ||
} | ||
}, | ||
"YAML": { | ||
"formatter": { | ||
"code_actions": { | ||
"source.fixAll.eslint": true | ||
} | ||
} | ||
}, | ||
"XML": { | ||
"formatter": { | ||
"code_actions": { | ||
"source.fixAll.eslint": true | ||
} | ||
} | ||
}, | ||
"TOML": { | ||
"formatter": { | ||
"code_actions": { | ||
"source.fixAll.eslint": true | ||
} | ||
} | ||
} | ||
}, | ||
"lsp": { | ||
"eslint": { | ||
"settings": { | ||
"rulesCustomizations": [ | ||
{ | ||
"rule": "style/*", | ||
"severity": "off", | ||
"fixable": true | ||
}, | ||
{ | ||
"rule": "format/*", | ||
"severity": "off", | ||
"fixable": true | ||
}, | ||
{ | ||
"rule": "*-indent", | ||
"severity": "off", | ||
"fixable": true | ||
}, | ||
{ | ||
"rule": "*-spacing", | ||
"severity": "off", | ||
"fixable": true | ||
}, | ||
{ | ||
"rule": "*-spaces", | ||
"severity": "off", | ||
"fixable": true | ||
}, | ||
{ | ||
"rule": "*-order", | ||
"severity": "off", | ||
"fixable": true | ||
}, | ||
{ | ||
"rule": "*-dangle", | ||
"severity": "off", | ||
"fixable": true | ||
}, | ||
{ | ||
"rule": "*-newline", | ||
"severity": "off", | ||
"fixable": true | ||
}, | ||
{ | ||
"rule": "*quotes", | ||
"severity": "off", | ||
"fixable": true | ||
}, | ||
{ | ||
"rule": "*semi", | ||
"severity": "off", | ||
"fixable": true | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"file_types": { | ||
"JavaScript": [ | ||
"buddy" | ||
] | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,12 @@ | ||
import stacks from '@stacksjs/eslint-config' | ||
|
||
export default stacks({ | ||
// Enable stylistic formatting rules | ||
// stylistic: true, | ||
|
||
// Or customize the stylistic rules | ||
stylistic: { | ||
indent: 2, // 4, or 'tab' | ||
quotes: 'single', // or 'double' | ||
indent: 2, | ||
quotes: 'single', | ||
}, | ||
|
||
typescript: true, | ||
vue: true, | ||
jsonc: true, | ||
yaml: true, | ||
unocss: true, | ||
|
||
ignores: [ | ||
'**/fixtures', | ||
// ...globs | ||
], | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
dependencies: | ||
bun.sh: ^1.0.30 | ||
bun.sh: ^1.1.34 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
import { loadConfig } from 'c12' | ||
import type { ReverseProxyConfig } from './types' | ||
import { loadConfig } from 'bun-config' | ||
|
||
// Get loaded config | ||
const { config } = await loadConfig({ | ||
// eslint-disable-next-line antfu/no-top-level-await | ||
const config: ReverseProxyConfig = await loadConfig({ | ||
name: 'reverse-proxy', | ||
defaultConfig: { | ||
'localhost:5173': 'stacks.localhost', | ||
}, | ||
}) | ||
|
||
export { config } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
export interface ReverseProxyOption { | ||
hostname?: string | ||
port?: number | ||
from?: string // domain to proxy from, defaults to localhost:3000 | ||
to?: string // domain to proxy to, defaults to stacks.localhost | ||
key?: string // content of the key | ||
keyPath?: string // absolute path to the key | ||
cert?: string // content of the cert | ||
certPath?: string // absolute path to the cert | ||
httpsRedirect?: boolean // redirect http to https, defaults to true | ||
verbose?: boolean | ||
export interface ReverseProxyConfig { | ||
hostname: string | ||
port: number | ||
from: string // domain to proxy from, defaults to localhost:3000 | ||
to: string // domain to proxy to, defaults to stacks.localhost | ||
key: string // content of the key | ||
keyPath: string // absolute path to the key | ||
cert: string // content of the cert | ||
certPath: string // absolute path to the cert | ||
httpsRedirect: boolean // redirect http to https, defaults to true | ||
verbose: boolean | ||
} | ||
|
||
export type ReverseProxyOption = Partial<ReverseProxyConfig> | ||
export type ReverseProxyOptions = ReverseProxyOption | ReverseProxyOption[] |
Oops, something went wrong.