diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..1014ba7 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,12 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +indent_style = space +indent_size = 2 +trim_trailing_whitespace = true + +[*.md] +trim_trailing_whitespace = false diff --git a/.prettierrc.json b/.prettierrc.json new file mode 100644 index 0000000..e809346 --- /dev/null +++ b/.prettierrc.json @@ -0,0 +1,7 @@ +{ + "singleQuote": true, + "semi": false, + "trailingComma": "es5", + "printWidth": 100, + "arrowParens": "always" +} diff --git a/refactor-strategy.md b/refactor-strategy.md index d3ff5ab..4210b9e 100644 --- a/refactor-strategy.md +++ b/refactor-strategy.md @@ -31,14 +31,14 @@ Outcome: Routing logic is centralized and testable; pages redirect consistently Outcome: Feature modules call cohesive services; logic for mapping/normalization is isolated and testable. ### Phase 3 — Composables (UI-Facing Logic) -- [ ] Add `src/composables/useAuth.js` (user ref, ensureAuth) +- [x] Add `src/composables/useAuth.js` (user ref, ensureAuth) - [ ] Add `src/composables/useMeals.js` (fetch and mutate meals) - [ ] Refactor pages to use composables and `