Skip to content

Commit

Permalink
chore: use @stacksjs/biome-config
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbbreuer committed Sep 24, 2024
1 parent 1c665df commit 41fe368
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 82 deletions.
2 changes: 0 additions & 2 deletions bin/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@ cli
.usage('tlsx secure <domain> [options]')
.example('tlsx secure example.com --output /etc/ssl')
.action(async (domain: string, options?: Options) => {

domain = domain ?? config?.ssl?.altNameURIs[0]


log.info(`Generating a self-signed SSL certificate for: ${domain}`)
log.debug('Options:', options)

Expand Down
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.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@
"compile": "bun build ./bin/cli.ts --compile --external rollup --minify --sourcemap --outfile dist/tlsx",
"postcompile": "bun ./scripts/post-compile.ts",
"lint": "bunx biome check .",
"lint:fix": "bunx biome check --apply .",
"lint:fix-unsafe": "bunx biome check --apply-unsafe .",
"lint:fix": "bunx biome check --write .",
"lint:fix-unsafe": "bunx biome check --write-unsafe .",
"fresh": "bunx rimraf node_modules/ bun.lock && bun i",
"commit": "git cz",
"changelog": "bunx changelogen --output CHANGELOG.md",
Expand All @@ -75,7 +75,7 @@
},
"devDependencies": {
"@biomejs/biome": "1.9.2",
"@stacksjs/biome-config": "^0.1.4",
"@stacksjs/biome-config": "^0.1.5",
"@stacksjs/development": "^0.64.6",
"@types/bun": "^1.1.10",
"@types/node-forge": "^1.3.11",
Expand All @@ -87,7 +87,7 @@
"commit-msg": "bunx --no -- commitlint --edit $1"
},
"lint-staged": {
"*.{js,jsx,ts,tsx,vue}": "bunx biome check --apply ."
"*.{js,jsx,ts,tsx,vue}": "bunx biome check --write ."
},
"config": {
"commitizen": {
Expand Down

0 comments on commit 41fe368

Please sign in to comment.