Skip to content

Commit

Permalink
chore: prettier and lint updates
Browse files Browse the repository at this point in the history
  • Loading branch information
judemanutd committed Jan 8, 2025
1 parent 2d1f2f3 commit 27afd09
Show file tree
Hide file tree
Showing 7 changed files with 188 additions and 9 deletions.
7 changes: 0 additions & 7 deletions .prettierrc

This file was deleted.

16 changes: 16 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"plugins": ["prettier-plugin-astro", "prettier-plugin-tailwindcss"],
"overrides": [
{
"files": "*.astro",
"options": {
"parser": "astro"
}
}
],
"printWidth": 100,
"trailingComma": "all",
"bracketSpacing": true,
"tabWidth": 2,
"semi": true
}
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"prettier.documentSelectors": ["**/*.astro"],
"[astro]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"version": "0.0.1",
"scripts": {
"dev": "astro dev",
"build": "astro build",
"build": "astro check && astro build",
"preview": "astro preview",
"astro": "astro",
"lint": "eslint --fix \"src/**/*.{js,ts,jsx,tsx,astro}\"",
Expand All @@ -14,6 +14,7 @@
"dependencies": {
"@astrojs/react": "^4.1.2",
"@astrojs/tailwind": "^5.1.4",
"@astrojs/ts-plugin": "^1.10.4",
"@radix-ui/react-avatar": "^1.1.2",
"@radix-ui/react-navigation-menu": "^1.2.3",
"@radix-ui/react-slot": "^1.1.1",
Expand Down Expand Up @@ -50,6 +51,8 @@
"eslint-plugin-unicorn": "^56.0.1",
"postcss": "^8.4.49",
"prettier": "^3.4.2",
"prettier-plugin-astro": "^0.14.1",
"prettier-plugin-tailwindcss": "^0.6.9",
"pretty-quick": "^4.0.0",
"tailwind-variants": "^0.3.0",
"tailwindcss": "^3.4.17",
Expand Down
155 changes: 155 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@
@apply border-border;
}
body {
@apply font-sans antialiased bg-background text-foreground;
@apply bg-background font-sans text-foreground antialiased;
}
}
6 changes: 6 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
"paths": {
"@/*": ["./src/*"]
},
"plugins": [
{
"name": "@astrojs/ts-plugin"
}
],
"jsx": "react-jsx",
"jsxImportSource": "react",
"target": "ES2024",
Expand All @@ -21,6 +26,7 @@
"strict": true,
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": true,
"verbatimModuleSyntax": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
Expand Down

0 comments on commit 27afd09

Please sign in to comment.