aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2020-08-11 21:46:46 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2020-08-11 21:46:46 +0900
commit7e8c99d43a402b9e025a710a00879d557ac5b071 (patch)
tree658995c22d30a09b059933d2d13093a81df5ff8b
parentaef9c037b07001ed094408fae8387c31ca13f3f8 (diff)
Enable eslint:recommended and prettier/react
-rw-r--r--.eslintrc4
-rw-r--r--e2e/lib/Console.ts2
-rw-r--r--e2e/repeat_n_times.test.ts2
3 files changed, 4 insertions, 4 deletions
diff --git a/.eslintrc b/.eslintrc
index dcdef09..5eb19bb 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -7,9 +7,11 @@
},
"extends": [
+ "eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
- "plugin:prettier/recommended"
+ "plugin:prettier/recommended",
+ "prettier/react"
],
"plugins": [
"@typescript-eslint",
diff --git a/e2e/lib/Console.ts b/e2e/lib/Console.ts
index de61d66..2c128d1 100644
--- a/e2e/lib/Console.ts
+++ b/e2e/lib/Console.ts
@@ -63,7 +63,7 @@ export class Console {
for (const li of Array.from(items)) {
if (li.classList.contains("vimvixen-console-completion-title")) {
objs.push({ type: "title", text: li.textContent!.trim() });
- } else if ("vimvixen-console-completion-item") {
+ } else if (li.classList.contains("vimvixen-console-completion-item")) {
const highlight = li.classList.contains(
"vimvixen-completion-selected"
);
diff --git a/e2e/repeat_n_times.test.ts b/e2e/repeat_n_times.test.ts
index 303aa34..5a9b172 100644
--- a/e2e/repeat_n_times.test.ts
+++ b/e2e/repeat_n_times.test.ts
@@ -23,8 +23,6 @@ describe("tab test", () => {
webdriver = lanthan.getWebDriver();
browser = lanthan.getWebExtBrowser();
await server.start();
-
- browser = browser;
});
after(async () => {