Skip to content

Configure ESLint rules to ignore inline styles and unused variables, …#3

Merged
SM8UTI merged 4 commits intomainfrom
new-v2
Mar 7, 2026
Merged

Configure ESLint rules to ignore inline styles and unused variables, …#3
SM8UTI merged 4 commits intomainfrom
new-v2

Conversation

@SM8UTI
Copy link
Copy Markdown
Owner

@SM8UTI SM8UTI commented Mar 7, 2026

…silence useEffect dependency warnings, and remove unused code.

…silence `useEffect` dependency warnings, and remove unused code.
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses ESLint warnings across the codebase by: (1) globally disabling the react-native/no-inline-styles rule and downgrading @typescript-eslint/no-unused-vars to a warning (with an ignore pattern for _-prefixed names), (2) adding // eslint-disable-next-line react-hooks/exhaustive-deps comments to intentional one-shot or scope-limited useEffect calls, and (3) removing genuinely unused code (imports, variables, and state).

Changes:

  • Configure .eslintrc.js to turn off inline-style warnings and soften unused-variable errors.
  • Add eslint-disable-next-line comments to silence intentional useEffect dependency warnings across multiple screens and components.
  • Remove unused imports (Image, Shield, Lock, Dimensions destructor SCREEN_HEIGHT), an unused isSecure state, and unused STATUS_ORDER/TaskStatus definitions; add setTaskStatus to the GlobalCelebration effect dependency array.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
.eslintrc.js Adds two new rules: disables inline-style warnings and configures unused-vars as a warning
src/components/BottomSheet.tsx Removes the unused SCREEN_HEIGHT constant (but leaves Dimensions import orphaned)
src/components/PrivacyStatus.tsx Removes unused isSecure state and Shield/Lock icon imports
src/components/TaskCard.tsx Removes unused Image import
src/components/TaskDetailsInfo.tsx Removes locally-unused STATUS_ORDER/TaskStatus; replaces with explanatory comment
src/components/GlobalCelebration.tsx Adds setTaskStatus to useEffect dependency array
src/components/ChooseDestinationBottomSheet.tsx Adds eslint-disable comment for intentional deps omission
src/components/AddTaskBottomSheet.tsx Adds eslint-disable comment for intentional deps omission
src/screens/FocusScreen.tsx Adds eslint-disable comments for three intentional deps omissions
src/screens/FocusSetupScreen.tsx Adds eslint-disable comment for run-once animation effect

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/components/BottomSheet.tsx
Comment thread src/components/TaskDetailsInfo.tsx
@SM8UTI SM8UTI merged commit 4540a72 into main Mar 7, 2026
1 check passed
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.

2 participants