From 01519b18783e531a002940267b4e1c0ca67a49b7 Mon Sep 17 00:00:00 2001 From: Kitteh Date: Fri, 7 May 2021 11:30:41 +0100 Subject: [PATCH] Make eslint happy. --- .eslintrc.yml | 5 ++--- src/pages/Login.js | 1 + src/pages/SetVaultURL.js | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.eslintrc.yml b/.eslintrc.yml index 3504314..81b1f52 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -8,13 +8,12 @@ plugins: - sort-imports-es6-autofix parserOptions: - ecmaVersion: 8 + ecmaVersion: 9 sourceType: module + experimentalObjectRestSpread: true globals: - pageState: writable pageContent: writable - realPages: writable module: writable diff --git a/src/pages/Login.js b/src/pages/Login.js index e3476e8..1441d25 100644 --- a/src/pages/Login.js +++ b/src/pages/Login.js @@ -4,6 +4,7 @@ import { Page } from "../types/Page.js"; import { changePage, setErrorText, setPageContent } from "../pageUtils.js"; import { lookupSelf, usernameLogin } from "../api.js"; import { makeElement } from "../htmlUtils.js"; +import { pageState } from "../globalPageState.js"; import i18next from 'i18next'; export class LoginPage extends Page { diff --git a/src/pages/SetVaultURL.js b/src/pages/SetVaultURL.js index 0b457b7..2fbd2c9 100644 --- a/src/pages/SetVaultURL.js +++ b/src/pages/SetVaultURL.js @@ -1,6 +1,7 @@ import { Page } from "../types/Page.js"; import { changePage, setPageContent } from "../pageUtils.js"; import { makeElement } from "../htmlUtils.js"; +import { pageState } from "../globalPageState.js"; export class SetVaultURLPage extends Page { constructor() {