Update to current eslint

This has a new rule `quote-props`, adjust the code accordingly:

    29:24  error  Unnecessarily quoted property 'hostname' found  quote-props
    32:29  error  Unnecessarily quoted property 'hostname' found  quote-props
This commit is contained in:
Martin Pitt 2019-07-11 13:17:13 +02:00 committed by Katerina Koukiou
parent d900a7231d
commit 077eba3ede
2 changed files with 10 additions and 10 deletions

View file

@ -26,10 +26,10 @@ const _ = cockpit.gettext;
export class Application extends React.Component {
constructor() {
super();
this.state = { 'hostname': _("Unknown") };
this.state = { hostname: _("Unknown") };
cockpit.file('/etc/hostname').watch(content => {
this.setState({ 'hostname': content.trim() });
this.setState({ hostname: content.trim() });
});
}