Skip to content
Open
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .changeset/changelog.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const getReleaseLine = async (changeset) => {
.split('\n')
.map((l) => l.trimEnd());

if (!nextLines.length) return `- ${firstLine}`;
if (nextLines.length === 0) return `- ${firstLine}`;

return `- ${firstLine}\n${nextLines.join('\n')}`;
};
Expand Down
12 changes: 10 additions & 2 deletions .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,18 @@
"changelog": "./changelog.cjs",
"commit": false,
"fixed": [],
"linked": [["rehype-pretty-code", "@rehype-pretty/transformers"]],
"linked": [
[
"rehype-pretty-code",
"@rehype-pretty/transformers"
]
],
"access": "public",
"baseBranch": "master",
"ignore": ["docs", "example-*"],
"ignore": [
"docs",
"example-*"
],
"updateInternalDependencies": "patch",
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
"onlyUpdatePeerDependentsWhenOutOfRange": true
Expand Down
3 changes: 1 addition & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
* text=auto
* text=auto encoding=utf-8

**/test/results/** linguist-generated
**/test/fixtures/** linguist-generated text eol=lf

biome.json linguist-language=JSON-with-Comments
.vscode/*.json linguist-language=JSON-with-Comments
3 changes: 1 addition & 2 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Checks
name: 'Checks'
on:
pull_request:
workflow_dispatch:
Expand All @@ -15,7 +15,6 @@ env:
NEXT_TELEMETRY_DISABLED: '1'
ASTRO_TELEMETRY_DISABLED: '1'
NODE_OPTIONS: '--no-warnings'
FORCE_COLOR: 1

jobs:
checks:
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/preview.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
name: Preview
name: 'Preview'

# pkg.pr.new won't publish anything to NPM; instead,
# it leverages its own URLs, which are npm-compatible.

# npm install https://pkg.pr.new/${owner}/${repo}/${package}@${commit}

# learn more: https://github.com/stackblitz-labs/pkg.pr.new/blob/main/README.md

on:
push:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release
name: 'Release'

on:
push:
Expand All @@ -18,7 +18,6 @@ env:
NEXT_TELEMETRY_DISABLED: '1'
ASTRO_TELEMETRY_DISABLED: '1'
NODE_OPTIONS: '--no-warnings'
FORCE_COLOR: 1

jobs:
release:
Expand Down
49 changes: 37 additions & 12 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true,
"typescript.inlayHints.parameterNames.enabled": "all",
"typescript.preferences.importModuleSpecifier": "shortest",
"typescript.preferences.importModuleSpecifier": "relative",
"javascript.preferences.importModuleSpecifier": "relative",
"typescript.preferences.preferTypeOnlyAutoImports": true,
"references.preferredLocation": "peek",
"editor.quickSuggestions": {
"strings": "on"
},
Expand All @@ -19,15 +18,33 @@
"quickfix.biome": "always"
},
"editor.defaultFormatter": "biomejs.biome",
"[typescript]": { "editor.defaultFormatter": "biomejs.biome" },
"[javascript]": { "editor.defaultFormatter": "biomejs.biome" },
"[typescriptreact]": { "editor.defaultFormatter": "biomejs.biome" },
"[javascriptreact]": { "editor.defaultFormatter": "biomejs.biome" },
"[json]": { "editor.defaultFormatter": "biomejs.biome" },
"[jsonc]": { "editor.defaultFormatter": "biomejs.biome" },
"[astro]": { "editor.defaultFormatter": "astro-build.astro-vscode" },
"[svelte]": { "editor.defaultFormatter": "svelte.svelte-vscode" },
"[vue]": { "editor.defaultFormatter": "vue.volar" },
"[typescript]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[javascript]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[typescriptreact]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[javascriptreact]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[json]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[jsonc]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[astro]": {
"editor.defaultFormatter": "astro-build.astro-vscode"
},
"[svelte]": {
"editor.defaultFormatter": "svelte.svelte-vscode"
},
"[css]": {
"editor.defaultFormatter": "svelte.svelte-vscode"
},
"files.associations": {
"biome.json": "jsonc",
"*.css": "tailwindcss",
Expand All @@ -42,6 +59,14 @@
"**/package-lock.json": true
},
"files.exclude": {
".zed": true,
"**/build": true,
".gitignore": true,
"**/LICENSE": true,
"**/.turbo/**": true,
"**/.astro/**": true,
"pnpm-lock.yaml": true,
"**/.svelte-kit": true,
"**/*.timestamp-*": true
},
"[markdown]": {
Expand Down
78 changes: 68 additions & 10 deletions biome.json → biome.jsonc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/1.8.2/schema.json",
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"vcs": {
"root": ".",
"enabled": true,
Expand Down Expand Up @@ -29,7 +29,7 @@
"examples/astro/src/globals.css",
"examples/sveltekit/src/app.css",
"examples/next/src/app/globals.css",
"docs/.vitepress/theme/styles/index.css"
"moonlight-ii.json"
],
"ignoreUnknown": true
},
Expand All @@ -48,6 +48,7 @@
"enabled": true
},
"parser": {
"cssModules": true,
"allowWrongLineComments": true
}
},
Expand Down Expand Up @@ -75,22 +76,28 @@
"noUnusedTemplateLiteral": "off",
"useConsistentArrayType": {
"level": "warn",
"options": { "syntax": "generic" }
"options": {
"syntax": "generic"
}
}
},
"performance": {
"noBarrelFile": "off",
"noAccumulatingSpread": "off"
},
"a11y": { "noSvgWithoutTitle": "off" },
"a11y": {
"noSvgWithoutTitle": "off"
},
"correctness": {
"noNodejsModules": "off",
"noUndeclaredVariables": "off"
"noUndeclaredVariables": "off",
"noUndeclaredDependencies": "off"
},
"suspicious": {
"useAwait": "off",
"noConsoleLog": "off",
"noExplicitAny": "off",
"noFocusedTests": "off",
"noEmptyInterface": "off",
"noConfusingVoidType": "off"
},
Expand All @@ -106,14 +113,21 @@
}
},
"json": {
"linter": {
"enabled": true
},
"parser": {
"allowComments": true
"allowComments": true,
"allowTrailingCommas": true
},
"formatter": {
"enabled": true
}
},
"javascript": {
"linter": {
"enabled": true
},
"globals": [
"NodeJS",
"Astro",
Expand All @@ -140,23 +154,53 @@
"quoteProperties": "asNeeded"
}
},
/**
* biome monorepo support is not great atm so we need overrides
* https://biomejs.dev/guides/big-projects/#monorepos
*/
"overrides": [
/**
* override to have one item per line in json/jsonc files
*/
{
"include": ["test", "scripts"],
"include": [
"*.json",
"*.jsonc"
],
"ignore": [
"theme/**",
"moonlight-ii.json"
],
"json": {
"formatter": {
"lineWidth": 1
}
}
},
{
"include": [
"test",
"scripts",
"examples"
],
"linter": {
"rules": {
"suspicious": {
"noConsole": "off",
"noConsoleLog": "off"
}
}
}
},
{
"include": ["*.astro"],
"include": [
"*.astro"
],
"linter": {
"rules": {
"correctness": {
"noUnusedImports": "off"
"noUnusedImports": "off",
"noUnusedVariables": "off"
},
"style": {
"useImportType": "off",
Expand All @@ -166,7 +210,9 @@
}
},
{
"include": ["*.svelte"],
"include": [
"*.svelte"
],
"linter": {
"rules": {
"correctness": {
Expand All @@ -184,6 +230,18 @@
}
}
}
},
{
"include": [
"*.tsx"
],
"linter": {
"rules": {
"suspicious": {
"noReactSpecificProps": "off"
}
}
}
}
]
}
Loading