mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 01:35:34 +08:00
fix error with event not defined and add flowtype to ESLint
This commit is contained in:
parent
dfb2689fbf
commit
fd743ec2d5
2 changed files with 2 additions and 2 deletions
|
@ -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": {
|
||||||
|
|
|
@ -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 });
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue