Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(eslint-config): Clashes with prettier (#26847)
Summary: Currently, react-native-community config package extends from prettier/recommended which comes with default settings from prettier. However there are still some eslint rules in the config that either clash or duplicate the settings from prettier. This results in eslint fixing the formatting and then prettier undoing it. This PR removes the style specific rules from eslint and place them in the prettier section. ## Changelog [General] [Fixed] - Remove style rules from eslint config for prettier options Pull Request resolved: #26847 Test Plan: I created a repo for you to test with https://github.com/iRoachie/eslint-bug-replicate. You can see that running `yarn lint --fix` will never fix the issue. Eslint will complain about double quotes and subsequently after fixing it will complain about single quotes. Here's a gif of the behaviour (vscode eslint plugin `"eslint.autoFixOnSave": true`): ![Kapture 2019-10-13 at 23 34 15](https://user-images.githubusercontent.com/5962998/66728290-ff80da00-ee11-11e9-8993-4d1b679c270b.gif) Differential Revision: D18173919 Pulled By: cpojer fbshipit-source-id: b333469652b4c8e72287718af94378505e9b7d59
- Loading branch information