Compare commits

...

2 commits

Author SHA1 Message Date
Simon Ser
8ff1cd8317 eslint: add no-invalid-this and prefer-arrow-callback 2024-11-15 02:19:28 +01:00
Simon Ser
f6e8f83d4e components/app: simplify connectParams object field 2024-11-15 02:19:28 +01:00
2 changed files with 3 additions and 1 deletions

View file

@ -383,7 +383,7 @@ export default class App extends Component {
} }
} }
this.setState({ loading: false, connectParams: connectParams }); this.setState({ loading: false, connectParams });
if (connectParams.autoconnect) { if (connectParams.autoconnect) {
this.setState({ connectForm: false }); this.setState({ connectForm: false });

View file

@ -24,6 +24,8 @@ export default [
}], }],
"no-var": "error", "no-var": "error",
"eqeqeq": "error", "eqeqeq": "error",
"no-invalid-this": "error",
"prefer-arrow-callback": "error",
"@stylistic/js/indent": ["warn", "tab"], "@stylistic/js/indent": ["warn", "tab"],
"@stylistic/js/quotes": ["warn", "double"], "@stylistic/js/quotes": ["warn", "double"],
"@stylistic/js/semi": "warn", "@stylistic/js/semi": "warn",