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:
parent
d900a7231d
commit
077eba3ede
2 changed files with 10 additions and 10 deletions
|
|
@ -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() });
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue