mirror of
https://github.com/status-im/react-native.git
synced 2025-02-04 05:34:15 +00:00
Enforce Prettier for @format
Reviewed By: zertosh Differential Revision: D5392376 fbshipit-source-id: 6f09a4d8f4542c3a74aadb8d62fd216529a4f2bc
This commit is contained in:
parent
d7f671135c
commit
10230707cb
@ -1,6 +1,6 @@
|
||||
{
|
||||
"root": true,
|
||||
|
||||
|
||||
"parser": "babel-eslint",
|
||||
|
||||
"ecmaFeatures": {
|
||||
@ -14,6 +14,7 @@
|
||||
|
||||
"plugins": [
|
||||
"flowtype",
|
||||
"prettier",
|
||||
"react"
|
||||
],
|
||||
|
||||
@ -163,6 +164,10 @@
|
||||
"no-restricted-modules": 1, // restrict usage of specified node modules (off by default)
|
||||
"no-sync": 0, // disallow use of synchronous methods (off by default)
|
||||
|
||||
// Prettier Plugin
|
||||
// https://github.com/prettier/eslint-plugin-prettier
|
||||
"prettier/prettier": [2, "fb", "@format"],
|
||||
|
||||
// Stylistic Issues
|
||||
// These rules are purely matters of style and are quite subjective.
|
||||
|
||||
|
@ -60,9 +60,13 @@ module.exports = {
|
||||
];
|
||||
return (
|
||||
<FlatList
|
||||
renderItem={(
|
||||
info, // $FlowExpectedError - bad widgetCount type 6, should be Object
|
||||
) => <span>{info.item.widget.missingProp}</span>}
|
||||
renderItem={info =>
|
||||
<span>
|
||||
{
|
||||
// $FlowExpectedError - bad widgetCount type 6, should be Object
|
||||
info.item.widget.missingProp
|
||||
}
|
||||
</span>}
|
||||
data={data}
|
||||
/>
|
||||
);
|
||||
|
@ -225,12 +225,14 @@
|
||||
"eslint-config-fbjs": "^1.1.1",
|
||||
"eslint-plugin-babel": "^4.1.1",
|
||||
"eslint-plugin-flowtype": "^2.33.0",
|
||||
"eslint-plugin-prettier": "2.1.1",
|
||||
"eslint-plugin-react": "^7.0.1",
|
||||
"flow-bin": "^0.49.1",
|
||||
"jest": "20.1.0-alpha.3",
|
||||
"jest-repl": "20.1.0-alpha.3",
|
||||
"jest-runtime": "20.1.0-alpha.3",
|
||||
"mock-fs": "^4.4.1",
|
||||
"prettier": "1.5.2",
|
||||
"react": "16.0.0-alpha.12",
|
||||
"react-test-renderer": "16.0.0-alpha.12",
|
||||
"shelljs": "0.6.0",
|
||||
|
Loading…
x
Reference in New Issue
Block a user