Skip to content

chore: add ESLint (expo flat config) + Prettier#5

Open
jaxhemopo wants to merge 1 commit into
mainfrom
chore/eslint-prettier
Open

chore: add ESLint (expo flat config) + Prettier#5
jaxhemopo wants to merge 1 commit into
mainfrom
chore/eslint-prettier

Conversation

@jaxhemopo
Copy link
Copy Markdown
Owner

Establishes a lint/format floor — none existed (audit #5).

  • eslint-config-expo (flat) + eslint@9; eslint-config-prettier so Prettier owns formatting. Ignores android/ios/dist/.expo/Safekeep/scripts/assets and supabase/functions (Deno).
  • Disabled two noisy rules for this legacy baseline: import/no-unresolved (Metro/TS resolve RN/Expo modules; false positives on @expo/vector-icons) and react/no-unescaped-entities.
  • Prettier config + lint, lint:fix, format, format:check scripts.
  • Applied safe eslint --fix only (3 files: dedupe imports, hoist imports, Objectobject).

Did not mass-run prettier --write (would reformat ~100 files and destroy blame). Baseline after setup: 21 errors / 254 warnings — the errors are pre-existing real bugs (no-undef, no-dupe-keys) left for focused follow-up, not hidden.

🤖 Generated with Claude Code

No linting or formatting was enforced; 117 files with no floor.

- eslint-config-expo (flat) + eslint@9; eslint-config-prettier so Prettier
  owns formatting. Ignore android/ios/dist/.expo/Safekeep/scripts/assets and
  supabase/functions (Deno).
- Disable two noisy rules for this legacy baseline: import/no-unresolved
  (Metro/TS resolve RN/Expo modules; false positives on @expo/vector-icons)
  and react/no-unescaped-entities (fine in RN copy).
- Prettier config (.prettierrc/.prettierignore) + lint, lint:fix, format,
  format:check scripts.
- Applied safe `eslint --fix` (3 files: dedupe imports, hoist imports, Object->object).

Did NOT mass-run `prettier --write` (would reformat ~100 files, destroy blame,
and conflict with the other Phase 1 branches) — formatting applies going forward.

Baseline after setup: 21 errors / 254 warnings. Errors are all pre-existing
real bugs (no-undef, no-dupe-keys) left for focused follow-up, not hidden.

Audit item #5.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant