Run Prettier on Flow libdef on precommit (#3495)

This commit is contained in:
Ashoat Tevosyan
2018-02-12 17:45:50 -05:00
parent 3a31758f2d
commit b033e5d960
2 changed files with 11 additions and 7 deletions

View File

@@ -332,12 +332,12 @@ declare module 'react-navigation' {
navigationOptions?: ?NavigationScreenConfig<Options>,
};
declare export type NavigationRouteConfig =
| NavigationComponent
| {
navigationOptions?: NavigationScreenConfig<*>,
path?: string,
} & NavigationScreenRouteConfig;
declare export type NavigationRouteConfig =
| NavigationComponent
| ({
navigationOptions?: NavigationScreenConfig<*>,
path?: string,
} & NavigationScreenRouteConfig);
declare export type NavigationScreenRouteConfig =
| NavigationComponent

View File

@@ -72,6 +72,10 @@
"modulePathIgnorePatterns": ["examples"]
},
"lint-staged": {
"*.js": ["eslint --fix", "git add"]
"*.js": [
"eslint --fix",
"prettier --write flow/react-navigation.js",
"git add"
]
}
}