Skip to content

Commit 25f5269

Browse files
committed
before running prettier
1 parent 7dd2a78 commit 25f5269

10 files changed

Lines changed: 543 additions & 460 deletions

File tree

trgmc/.prettierrc

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"arrowParens": "always",
3+
"bracketSpacing": true,
4+
"endOfLine": "lf",
5+
"htmlWhitespaceSensitivity": "css",
6+
"insertPragma": false,
7+
"singleAttributePerLine": false,
8+
"bracketSameLine": false,
9+
"jsxSingleQuote": false,
10+
"printWidth": 160,
11+
"proseWrap": "preserve",
12+
"quoteProps": "as-needed",
13+
"requirePragma": false,
14+
"semi": true,
15+
"singleQuote": false,
16+
"tabWidth": 2,
17+
"trailingComma": "es5",
18+
"useTabs": false,
19+
"embeddedLanguageFormatting": "auto",
20+
"vueIndentScriptAndStyle": false
21+
}

trgmc/README.md

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,11 @@ Currently, two official plugins are available:
1717
# Todo
1818

1919
## Important
20-
- re-fix all the input boxes
21-
-- form validation (no -ve numbers)
22-
-- why "56-" shows NaN
23-
--- make monthly payment small
24-
- all inputs should be string, so middle character can be deleted without cursor moving
25-
- property tax with monthly input
26-
-- hoa and insurance
27-
- test everything
28-
-- no console issues
29-
- percents should have 2 decimal points
30-
-- Make sure all numbers are treated as strings
3120
- Show breakdown of total repayments
32-
- Fix rounding issue which means final payment != monthly payment
3321
- get a domain, make the site live
34-
- Crashes when put a letter into loan length. Or 0
22+
- fix total repayment when overpayment & refinance added
23+
- show amount saved by doing overpayment
24+
3525

3626
## Later
3727
- hover over explains how th eboxes were calculated
@@ -54,15 +44,32 @@ Currently, two official plugins are available:
5444
- build run a strict linter
5545
- put input in URL
5646
- little padlock showing that value won't change?
47+
- typing '.' at the end of homeVal adds a zero to the front?
48+
- setting downpay cash to 15%, make homeValue big, make homeValue small
5749

5850

5951

6052

6153

6254
# Done
55+
- limit % to <100
56+
- Crashes when put a letter into loan length. Or 0
57+
- Fix rounding issue which means final payment != monthly payment
58+
- percents should have 2 decimal points
59+
-- Make sure all numbers are treated as strings
60+
-- no console issues
61+
- test everything
62+
- re-fix all the input boxes
63+
-- Property tax can't be bigger than monthly payment
64+
- all inputs should be string, so middle character can be deleted without cursor moving
65+
- when box contains just 0 and user types '5', display '5' not '05'
66+
-- form validation (no -ve numbers)
67+
-- why "56-" shows NaN
68+
-- All loan maths should happen on first render, and after user input. Not on every render. This means previous results can be saved if invalid input is given
6369
- when edit event then highlight the text temporarily
6470
-- Put all the user changes into a reducer function. This will allow easier flash handling, and less prop drilling
65-
71+
- property tax with monthly input
72+
-- hoa and insurance
6673
- separate tax, hoa and insurance. Use nice color separation
6774
- RE-FORMAT
6875
-- Finish mobile optimization

trgmc/bun.lockb

360 Bytes
Binary file not shown.

trgmc/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"type": "module",
66
"scripts": {
77
"dev": "vite",
8-
"build": "vite build",
8+
"build": "eslint src && vite build",
99
"lint": "eslint src",
1010
"preview": "vite preview"
1111
},
@@ -30,6 +30,7 @@
3030
"eslint-plugin-react-hooks": "^4.6.0",
3131
"eslint-plugin-react-refresh": "^0.4.5",
3232
"globals": "^15.3.0",
33+
"prettier": "3.2.5",
3334
"typescript-eslint": "^7.10.0",
3435
"vite": "^5.0.8"
3536
},

trgmc/src/App.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ html {
55
.custom-tooltip {
66
--bs-tooltip-bg: var(--bd-violet-bg);
77
--bs-tooltip-color: var(--bs-white);
8-
}
8+
}

0 commit comments

Comments
 (0)