prettier and esling

This commit is contained in:
Ruidy 2024-04-27 01:43:39 +02:00
parent e63805539b
commit a7554b9801
No known key found for this signature in database
GPG key ID: E00F51288CB857CC
9 changed files with 19 additions and 4 deletions

1
.prettierignore Normal file
View file

@ -0,0 +1 @@
src/

View file

@ -5,6 +5,8 @@
- [x] rewrite the random page, the current landing page - [x] rewrite the random page, the current landing page
- [ ] rewrite the recipe page - [ ] rewrite the recipe page
- [ ] deploy - [ ] deploy
- [ ] nuxt image
- [x] prettier and eslint
- [ ] pwa - [ ] pwa
- [ ] seo, robots.txt - [ ] seo, robots.txt
- [ ] update the README - [ ] update the README

BIN
bun.lockb

Binary file not shown.

View file

@ -26,7 +26,7 @@
</ul> </ul>
</div> </div>
<nuxt-link to="/" class="btn btn-ghost text-xl"> <nuxt-link to="/" class="btn btn-ghost text-xl">
<img src="/public/logo192.png" width="50" /> <img src="/public/logo192.png" width="50" >
<span style="font-family: cursive"> Chefs </span> <span style="font-family: cursive"> Chefs </span>
</nuxt-link> </nuxt-link>
</div> </div>

6
eslint.config.mjs Normal file
View file

@ -0,0 +1,6 @@
// @ts-check
import withNuxt from "./.nuxt/eslint.config.mjs";
export default withNuxt({
ignores: ["**/src/*"],
});

View file

@ -2,6 +2,7 @@
export default defineNuxtConfig({ export default defineNuxtConfig({
devtools: { enabled: true }, devtools: { enabled: true },
css: ["~/assets/css/main.css"], css: ["~/assets/css/main.css"],
modules: ["@nuxt/eslint"],
postcss: { postcss: {
plugins: { plugins: {
tailwindcss: {}, tailwindcss: {},

View file

@ -7,9 +7,13 @@
"dev": "nuxt dev --port=3009", "dev": "nuxt dev --port=3009",
"generate": "nuxt generate", "generate": "nuxt generate",
"preview": "nuxt preview", "preview": "nuxt preview",
"postinstall": "nuxt prepare" "postinstall": "nuxt prepare",
"format": "bun prettier . --write",
"lint": "eslint .",
"lint:fix": "eslint . --fix"
}, },
"dependencies": { "dependencies": {
"@nuxt/eslint": "^0.3.10",
"nuxt": "^3.11.2", "nuxt": "^3.11.2",
"vue": "^3.4.21", "vue": "^3.4.21",
"vue-router": "^4.3.0" "vue-router": "^4.3.0"
@ -19,6 +23,7 @@
"autoprefixer": "^10.4.19", "autoprefixer": "^10.4.19",
"daisyui": "^4.10.2", "daisyui": "^4.10.2",
"postcss": "^8.4.38", "postcss": "^8.4.38",
"prettier": "3.2.5",
"tailwindcss": "^3.4.3" "tailwindcss": "^3.4.3"
} }
} }

View file

@ -5,7 +5,7 @@
<div> <div>
<h1 class="text-5xl font-bold prose">Eat Something New</h1> <h1 class="text-5xl font-bold prose">Eat Something New</h1>
<p class="py-6 prose">Generate a random recipe.</p> <p class="py-6 prose">Generate a random recipe.</p>
<NuxtLink to="/random" class="btn btn-primary" <NuxtLink to="/random" class="btn btn-primary">
>Random Recipe Now >Random Recipe Now
</NuxtLink> </NuxtLink>
</div> </div>