mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
move prettier to peerDeps in eslint-config-react-native-community (#28637)
Summary: In monorepo environment, prettier-plugin in some editor load from nearest `node_modules`. Older version of eslint-config-react-native-community includes prettier v1 in their dependencies. It cause conflict of code style inside the monorepo. ## Changelog <!-- Help reviewers and the release process by writing your own changelog entry. For an example, see: https://github.com/facebook/react-native/wiki/Changelog --> [Internal] [Fixed] - move prettier to peerDependencies in eslint-config-react-native-community Pull Request resolved: https://github.com/facebook/react-native/pull/28637 Test Plan: I think it would be good with no plan to test. Reviewed By: yungsters Differential Revision: D30648134 Pulled By: charlesbdudley fbshipit-source-id: 6c01226d6e4cc37ddbc86be260563deb093758d0
This commit is contained in:
committed by
Facebook GitHub Bot
parent
19f8d2f7da
commit
de1a72acae
@@ -26,9 +26,11 @@
|
||||
"prettier": "^2.0.2"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"eslint": ">=7"
|
||||
"eslint": ">=7",
|
||||
"prettier": ">=2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "7.12.0"
|
||||
"eslint": "7.12.0",
|
||||
"prettier": "^2.3.2"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user