fix(lint): surface deprecation warnings in CI checks #13
No reviewers
Labels
No labels
bug
code
docs
duplicate
enhancement
help wanted
invalid
question
styles
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
uwayss/muhsin!13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "claude/deprecation-warnings-11"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #11
Problem
tsc --noEmitnever fails on@deprecated-tagged APIs (its a pure editor hint), andeslint-config-expo's TypeScript rules dont include type-aware linting, so@typescript-eslint/no-deprecated(which needs type info) was never active. Deprecation warnings like'runOnJS' is deprecated.only showed up in the IDE, never innpm run checks:*.Fix
eslint.config.js: enabled type-aware linting for.ts/.tsxviaprojectService: true, and turned on@typescript-eslint/no-deprecatedas awarn(matches severity of the other rules in that config, so it surfaces without failing the build).Running this against the current codebase caught two real deprecations already present (different from the
runOnJSone in the screenshot, which is not present in this code, but the same class of problem):SegmentedControl.tsx:TouchableOpacityfromreact-native-gesture-handleris deprecated → switched toPressablefromreact-native.NotificationsScreen.tsx:DateTimePicker'sonChangeprop is deprecated → split intoonValueChange(applies the selected time) andonDismiss(closes the picker without a change).npm run checks:pr(lint + tsc + format) passes clean with 0 errors/warnings.8f2c840cd1toa1c72f0f3a