Skip to content

Commit

Permalink
Apply Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Nitrrine committed Nov 3, 2024
1 parent 8810594 commit f9526b1
Showing 20 changed files with 2,462 additions and 1,954 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -12,23 +12,23 @@ permissions:
id-token: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install, build and upload
uses: withastro/action@v2
with:
package-manager: pnpm@latest
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install, build and upload
uses: withastro/action@v2
with:
package-manager: pnpm@latest

deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules/**
pnpm-lock.yaml
27 changes: 15 additions & 12 deletions .prettierrc.mjs
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
/** @type {import('prettier').Config} */
export default {
printWidth: 120,
bracketSameLine: true,
plugins: ["prettier-plugin-astro", "prettier-plugin-tailwindcss"],
overrides: [
{
files: ["*.astro"],
options: {
parser: "astro",
},
},
],
};
printWidth: 120,
bracketSameLine: true,
plugins: ["prettier-plugin-astro", "prettier-plugin-tailwindcss"],
overrides: [
{
files: ["*.astro"],
options: {
parser: "astro",
},
},
],
semi: false,
useTabs: false,
tabWidth: 2,
}
4 changes: 2 additions & 2 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"recommendations": ["astro-build.astro-vscode", "esbenp.prettier-vscode"],
"unwantedRecommendations": []
"recommendations": ["astro-build.astro-vscode", "esbenp.prettier-vscode"],
"unwantedRecommendations": []
}
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
}
8 changes: 4 additions & 4 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { defineConfig } from "astro/config";
import { defineConfig } from "astro/config"

import tailwind from "@astrojs/tailwind";
import tailwind from "@astrojs/tailwind"

// https://astro.build/config
export default defineConfig({
integrations: [tailwind()],
});
integrations: [tailwind()],
})
48 changes: 24 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
{
"name": "vital-website",
"type": "module",
"version": "0.0.1",
"scripts": {
"dev": "astro dev",
"start": "astro dev",
"build": "astro check && astro build",
"preview": "astro preview",
"astro": "astro"
},
"dependencies": {
"@astrojs/check": "^0.9.3",
"@astrojs/tailwind": "^5.1.1",
"@astropub/md": "^1.0.0",
"astro": "^4.15.9",
"lucide-astro": "^0.446.0",
"tailwindcss": "^3.4.13",
"typescript": "^5.6.2"
},
"devDependencies": {
"prettier": "^3.3.3",
"prettier-plugin-astro": "^0.14.1",
"prettier-plugin-tailwindcss": "^0.6.8"
}
"name": "vital-website",
"type": "module",
"version": "0.0.1",
"scripts": {
"dev": "astro dev",
"start": "astro dev",
"build": "astro check && astro build",
"preview": "astro preview",
"astro": "astro"
},
"dependencies": {
"@astrojs/check": "^0.9.3",
"@astrojs/tailwind": "^5.1.1",
"@astropub/md": "^1.0.0",
"astro": "^4.15.9",
"lucide-astro": "^0.446.0",
"tailwindcss": "^3.4.13",
"typescript": "^5.6.2"
},
"devDependencies": {
"prettier": "^3.3.3",
"prettier-plugin-astro": "^0.14.1",
"prettier-plugin-tailwindcss": "^0.6.8"
}
}
Loading

0 comments on commit f9526b1

Please sign in to comment.