fix error with event not defined and add flowtype to ESLint

This commit is contained in:
mlorb 2017-11-10 09:30:55 +01:00
parent dfb2689fbf
commit fd743ec2d5
2 changed files with 2 additions and 2 deletions

View file

@ -5,7 +5,7 @@
"es6": true, "es6": true,
"node": true "node": true
}, },
"plugins": ["react", "prettier"], "plugins": ["flowtype", "react", "prettier"],
"extends": ["airbnb", "prettier", "prettier/react"], "extends": ["airbnb", "prettier", "prettier/react"],
"parser": "babel-eslint", "parser": "babel-eslint",
"parserOptions": { "parserOptions": {

View file

@ -61,7 +61,7 @@ export default class SettingsPage extends Component<*, State> {
(this: any).setState({ teamsTableSizePerPage }); (this: any).setState({ teamsTableSizePerPage });
} }
handleSelect(eventKey: string): void { handleSelect(eventKey: string, event: SyntheticEvent<*>): void {
event.preventDefault(); event.preventDefault();
(this: any).setState({ active: eventKey }); (this: any).setState({ active: eventKey });
} }