feat(landing): add strict ESLint + Prettier with pre-commit hooks (#50)
- Install ESLint 9 with flat config, TypeScript, Vue plugins - Configure Prettier (140 char, 2-space indent, single quotes) - Add pre-commit hooks via husky + lint-staged for auto-fix - Rename components to multi-word (Countdown → CountdownTimer, etc.) - Add explicit TypeScript prop/emit interfaces - Remove all console.log statements - Fix all ESLint violations and type errors - Verify type-check, build, and HMR working resolves #43 Co-authored-by: johba <johba@harb.eth> Reviewed-on: https://codeberg.org/johba/harb/pulls/50
This commit is contained in:
parent
09c36f2c87
commit
2acb619a11
39 changed files with 3460 additions and 1246 deletions
9
landing/.lintstagedrc.json
Normal file
9
landing/.lintstagedrc.json
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"src/**/*.{vue,ts}": [
|
||||
"eslint --fix",
|
||||
"prettier --write"
|
||||
],
|
||||
"src/**/*.scss": [
|
||||
"prettier --write"
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue