[No QA] Remove redundant prettier rule#57172
Conversation
be4ddfa to
ea9a170
Compare
| src/libs/SearchParser/searchParser.js | ||
| src/libs/SearchParser/autocompleteParser.js | ||
| help/_scripts/** | ||
| Mobile-Expensify/** |
There was a problem hiding this comment.
ESLint breaks locally for developers with access to Mobile-Expensify. Adding Mobile-Expensify to .eslintignore fixes the problem.
| '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.
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
roryabraham
left a comment
There was a problem hiding this comment.
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 🚀
|
|
🚀 Deployed to production by https://github.com/puneetlath in version: 9.1.7-2 🚀
|
Explanation of Change
This pr removes redundant
prettier/prettierESLint rule but still leavespettier-configsuppressing 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 Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
N/A
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop