mirror of
https://github.com/prdlk/website.git
synced 2026-08-02 17:31:41 +00:00
feat(config): add biome configuration and update project settings
This commit is contained in:
+83
@@ -0,0 +1,83 @@
|
|||||||
|
{
|
||||||
|
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
|
||||||
|
"files": {
|
||||||
|
"includes": [
|
||||||
|
"**",
|
||||||
|
"!**/build",
|
||||||
|
"!**/dist",
|
||||||
|
"!**/node_modules",
|
||||||
|
"!**/.vercel",
|
||||||
|
"!**/.netlify",
|
||||||
|
"!**/.vscode",
|
||||||
|
"!**/.astro"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"formatter": {
|
||||||
|
"enabled": true,
|
||||||
|
"indentStyle": "tab",
|
||||||
|
"lineEnding": "lf",
|
||||||
|
"lineWidth": 100,
|
||||||
|
"expand": "auto"
|
||||||
|
},
|
||||||
|
"vcs": { "enabled": true, "clientKind": "git", "useIgnoreFile": true },
|
||||||
|
"assist": {
|
||||||
|
"actions": {
|
||||||
|
"source": {
|
||||||
|
"organizeImports": "on"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"linter": {
|
||||||
|
"enabled": true,
|
||||||
|
"rules": {
|
||||||
|
"recommended": true,
|
||||||
|
"a11y": {
|
||||||
|
"noSvgWithoutTitle": "off"
|
||||||
|
},
|
||||||
|
"style": {
|
||||||
|
"noParameterAssign": "error",
|
||||||
|
"useAsConstAssertion": "error",
|
||||||
|
"useDefaultParameterLast": "error",
|
||||||
|
"useEnumInitializers": "error",
|
||||||
|
"useSelfClosingElements": "error",
|
||||||
|
"useSingleVarDeclarator": "error",
|
||||||
|
"noUnusedTemplateLiteral": "error",
|
||||||
|
"useNumberNamespace": "error",
|
||||||
|
"noInferrableTypes": "error",
|
||||||
|
"noUselessElse": "error",
|
||||||
|
"useImportType": "error"
|
||||||
|
},
|
||||||
|
"suspicious": { "noExplicitAny": "warn" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"javascript": {
|
||||||
|
"formatter": {
|
||||||
|
"trailingCommas": "all",
|
||||||
|
"semicolons": "always",
|
||||||
|
"bracketSameLine": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"html": { "formatter": { "selfCloseVoidElements": "always" } },
|
||||||
|
"css": {
|
||||||
|
"parser": {
|
||||||
|
"tailwindDirectives": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"overrides": [
|
||||||
|
{
|
||||||
|
"includes": ["**/*.astro"],
|
||||||
|
"linter": {
|
||||||
|
"rules": {
|
||||||
|
"style": {
|
||||||
|
"useConst": "off",
|
||||||
|
"useImportType": "off"
|
||||||
|
},
|
||||||
|
"correctness": {
|
||||||
|
"noUnusedVariables": "off",
|
||||||
|
"noUnusedImports": "off"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
+63
-41
@@ -1,43 +1,65 @@
|
|||||||
{
|
{
|
||||||
"name": "tailwindui-template",
|
"name": "prad.nu",
|
||||||
"version": "0.1.0",
|
"type": "module",
|
||||||
"private": true,
|
"version": "7.2.0",
|
||||||
"scripts": {
|
"private": false,
|
||||||
"dev": "next dev",
|
"scripts": {
|
||||||
"build": "next build",
|
"postinstall": "npm rebuild sharp --force",
|
||||||
"start": "next start",
|
"dev": "astro dev",
|
||||||
"lint": "next lint"
|
"start": "astro dev",
|
||||||
},
|
"build": "astro build",
|
||||||
"browserslist": "defaults, not ie <= 11",
|
"postbuild": "pagefind --site dist",
|
||||||
"dependencies": {
|
"preview": "astro preview",
|
||||||
"@headlessui/react": "^1.7.13",
|
"check": "astro check && biome check",
|
||||||
"@mapbox/rehype-prism": "^0.8.0",
|
"lint": "biome check --write",
|
||||||
"@mdx-js/loader": "^2.3.0",
|
"format": "prettier -w . --cache"
|
||||||
"@mdx-js/react": "^2.3.0",
|
},
|
||||||
"@next/mdx": "13.4.16",
|
"dependencies": {
|
||||||
"@tailwindcss/typography": "^0.5.4",
|
"@astrojs/markdown-remark": "^7.1.2",
|
||||||
"@types/node": "20.4.7",
|
"@astrojs/mdx": "5.0.6",
|
||||||
"@types/react": "18.2.18",
|
"@astrojs/rss": "4.0.18",
|
||||||
"@types/react-dom": "18.2.7",
|
"@astrojs/sitemap": "3.7.2",
|
||||||
"@types/webpack-env": "^1.18.1",
|
"@pagefind/component-ui": "^1.5.2",
|
||||||
"autoprefixer": "^10.4.12",
|
"@tailwindcss/vite": "4.3.0",
|
||||||
"cheerio": "^1.0.0-rc.12",
|
"astro": "6.3.3",
|
||||||
"clsx": "^1.2.1",
|
"astro-expressive-code": "^0.42.0",
|
||||||
"fast-glob": "^3.2.11",
|
"astro-icon": "^1.1.5",
|
||||||
"feed": "^4.2.2",
|
"astro-robots-txt": "^1.0.0",
|
||||||
"next": "13.4.16",
|
"astro-webmanifest": "^1.0.0",
|
||||||
"next-themes": "^0.2.1",
|
"cssnano": "^8.0.1",
|
||||||
"react": "18.2.0",
|
"hastscript": "^9.0.0",
|
||||||
"react-dom": "18.2.0",
|
"mdast-util-directive": "^3.0.0",
|
||||||
"remark-gfm": "^3.0.1",
|
"mdast-util-to-markdown": "^2.1.2",
|
||||||
"tailwindcss": "^3.3.3",
|
"mdast-util-to-string": "^4.0.0",
|
||||||
"typescript": "5.1.6"
|
"rehype-autolink-headings": "^7.1.0",
|
||||||
},
|
"rehype-external-links": "^3.0.0",
|
||||||
"devDependencies": {
|
"rehype-unwrap-images": "^1.0.0",
|
||||||
"eslint": "8.45.0",
|
"remark-directive": "^4.0.0",
|
||||||
"eslint-config-next": "13.4.16",
|
"satori": "0.26.0",
|
||||||
"prettier": "^3.0.1",
|
"satori-html": "^0.3.2",
|
||||||
"prettier-plugin-tailwindcss": "^0.5.2",
|
"sharp": "^0.34.5",
|
||||||
"sharp": "^0.32.0"
|
"tailwindcss": "^4.3.0",
|
||||||
}
|
"unified": "^11.0.5",
|
||||||
|
"unist-util-visit": "^5.1.0"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@astrojs/check": "^0.9.9",
|
||||||
|
"@biomejs/biome": "^2.4.15",
|
||||||
|
"@iconify-json/mdi": "^1.2.2",
|
||||||
|
"@pagefind/default-ui": "^1.5.2",
|
||||||
|
"@tailwindcss/typography": "^0.5.19",
|
||||||
|
"@types/hast": "^3.0.4",
|
||||||
|
"@types/mdast": "^4.0.4",
|
||||||
|
"@types/node": "^25.8.0",
|
||||||
|
"autoprefixer": "^10.5.0",
|
||||||
|
"pagefind": "^1.5.2",
|
||||||
|
"prettier": "^3.8.3",
|
||||||
|
"prettier-plugin-astro": "0.14.1",
|
||||||
|
"prettier-plugin-tailwindcss": "^0.8.0",
|
||||||
|
"reading-time": "^1.5.0",
|
||||||
|
"typescript": "^6.0.3"
|
||||||
|
},
|
||||||
|
"overrides": {
|
||||||
|
"sharp": "^0.34.5"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
overrides:
|
||||||
|
sharp: ^0.34.5
|
||||||
|
allowBuilds:
|
||||||
|
"@biomejs/biome": true
|
||||||
|
"@tailwindcss/oxide": true
|
||||||
|
esbuild: true
|
||||||
|
sharp: true
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
/** @type {import('prettier').Options} */
|
|
||||||
module.exports = {
|
|
||||||
singleQuote: true,
|
|
||||||
semi: false,
|
|
||||||
plugins: ['prettier-plugin-tailwindcss'],
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user