mirror of
https://github.com/rjNemo/meal_planner
synced 2026-06-06 02:26:49 +00:00
prettier and esling
This commit is contained in:
parent
e63805539b
commit
a7554b9801
9 changed files with 19 additions and 4 deletions
1
.prettierignore
Normal file
1
.prettierignore
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
src/
|
||||||
2
TODO.md
2
TODO.md
|
|
@ -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
BIN
bun.lockb
Binary file not shown.
|
|
@ -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
6
eslint.config.mjs
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
// @ts-check
|
||||||
|
import withNuxt from "./.nuxt/eslint.config.mjs";
|
||||||
|
|
||||||
|
export default withNuxt({
|
||||||
|
ignores: ["**/src/*"],
|
||||||
|
});
|
||||||
|
|
@ -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: {},
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -27,4 +27,4 @@
|
||||||
"display": "standalone",
|
"display": "standalone",
|
||||||
"theme_color": "#ff6d00",
|
"theme_color": "#ff6d00",
|
||||||
"background_color": "#ffffff"
|
"background_color": "#ffffff"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue