-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[No QA] Remove redundant prettier rule #57172
[No QA] Remove redundant prettier rule #57172
Conversation
be4ddfa
to
ea9a170
Compare
@@ -14,3 +14,4 @@ web/gtm.js | |||
src/libs/SearchParser/searchParser.js | |||
src/libs/SearchParser/autocompleteParser.js | |||
help/_scripts/** | |||
Mobile-Expensify/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ESLint breaks locally for developers with access to Mobile-Expensify. Adding Mobile-Expensify to .eslintignore
fixes the problem.
@@ -203,6 +203,7 @@ module.exports = { | |||
'es/no-nullish-coalescing-operators': 'off', | |||
'es/no-optional-chaining': 'off', | |||
'deprecation/deprecation': 'off', | |||
'arrow-body-style': 'off', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This rule was suppressed by prettier-plugin
but is not suppressed by prettier-config
. Leaving it on, results in 153 ESLint errors. You can find more information about this rule on https://eslint.org/docs/latest/rules/arrow-body-style
Similar problem is with prefer-arrow-callback
rule for .js files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changes LGTM 👍🏼
A non-scientific comparison between the ESLint run on this branch vs some recent runs on other branches:
- https://github.com/Expensify/App/actions/runs/13535021713/job/37824989618
- https://github.com/Expensify/App/actions/runs/13534698309/job/37824092919
- https://github.com/Expensify/App/actions/runs/13534668137/job/37824011196
- https://github.com/Expensify/App/actions/runs/13534085621/job/37822392263
Indicates that this change reduces the ESLint runs by about 30-60 seconds. Not bad!
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/roryabraham in version: 9.1.7-0 🚀
|
Explanation of Change
This pr removes redundant
prettier/prettier
ESLint rule but still leavespettier-config
suppressing formatting rules from ESLint core andtypescript-eslint
. More info here https://github.com/prettier/eslint-config-prettierFixed Issues
$ #57016
PROPOSAL:
Tests
N/A
Offline tests
QA Steps
N/A
// TODO: These must be filled out, or the issue title must include "[No QA]."
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
N/A
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop