From 35bf3078d7168a04940bb82f09eb7af2715eb970 Mon Sep 17 00:00:00 2001 From: arkon Date: Tue, 7 Dec 2021 21:26:19 -0500 Subject: [PATCH] Fix lint errors --- .eslintrc.js | 9 ++------- package-lock.json | 1 + package.json | 3 ++- src/.vuepress/components/CarouselWrapper.vue | 4 ++-- src/.vuepress/components/HelpPage.vue | 6 +++--- src/.vuepress/config.js | 2 +- src/.vuepress/constants.js | 3 ++- src/.vuepress/enhanceApp.js | 9 ++++----- src/.vuepress/theme/components/Home.vue | 2 +- .../theme/components/{Navbar.vue => NavBar.vue} | 4 ++-- 10 files changed, 20 insertions(+), 23 deletions(-) rename src/.vuepress/theme/components/{Navbar.vue => NavBar.vue} (99%) diff --git a/.eslintrc.js b/.eslintrc.js index a8aa82b2..89148b77 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -5,11 +5,7 @@ module.exports = { }, extends: ["vuepress", "prettier"], - - globals: { - Atomics: "readonly", - SharedArrayBuffer: "readonly", - }, + plugins: ["vue", "prettier", "markdown"], parserOptions: { ecmaVersion: 2018, @@ -31,7 +27,6 @@ module.exports = { }, ], curly: ["error", "all"], + "vue/multi-word-component-names": "off" }, - - plugins: ["vue", "prettier", "markdown"], }; diff --git a/package-lock.json b/package-lock.json index 91a624c6..3be20f0f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,6 +12,7 @@ "@mr-hope/vuepress-plugin-sitemap": "^1.21.0", "axios": "^0.24.0", "core-js": "2.6.4", + "docsearch.js": "^2.6.3", "element-ui": "^2.15.6", "lodash.groupby": "^4.6.0", "lodash.sortby": "^4.7.0", diff --git a/package.json b/package.json index c0abfb40..14400651 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "Official website for the Tachiyomi app.", "scripts": { "build": "npm run lint && vuepress build src", - "lint": "eslint --fix src/.vuepress/**/*.{js,vue} --no-ignore", + "lint": "eslint --fix 'src/.vuepress/**/*.{js,vue}' --no-ignore", "serve": "vuepress dev src" }, "repository": { @@ -45,6 +45,7 @@ "@mr-hope/vuepress-plugin-sitemap": "^1.21.0", "axios": "^0.24.0", "core-js": "2.6.4", + "docsearch.js": "^2.6.3", "element-ui": "^2.15.6", "lodash.groupby": "^4.6.0", "lodash.sortby": "^4.7.0", diff --git a/src/.vuepress/components/CarouselWrapper.vue b/src/.vuepress/components/CarouselWrapper.vue index d5ad7c7d..541693d1 100644 --- a/src/.vuepress/components/CarouselWrapper.vue +++ b/src/.vuepress/components/CarouselWrapper.vue @@ -1,5 +1,5 @@