From 6bb66be2af4032724024a6ce5165069adc29170a Mon Sep 17 00:00:00 2001 From: mutoe Date: Sat, 24 Apr 2021 18:26:47 +0800 Subject: [PATCH] refactor: fix lint issues --- .eslintrc | 1 + src/components/AppNavigation.vue | 2 +- src/components/ArticleDetailComment.vue | 7 +++++-- src/components/ArticleDetailComments.spec.ts | 3 --- src/components/PopularTags.spec.ts | 1 - src/pages/Login.vue | 3 ++- src/pages/Register.vue | 3 ++- src/pages/Settings.vue | 11 ++++++----- tsconfig.json | 3 ++- 9 files changed, 19 insertions(+), 15 deletions(-) diff --git a/.eslintrc b/.eslintrc index ac86226..71bb4e9 100644 --- a/.eslintrc +++ b/.eslintrc @@ -16,6 +16,7 @@ "rules": { "no-undef": "off", "no-unused-vars": "off", + "no-labels": "off", "comma-dangle": ["warn", "always-multiline"], "@typescript-eslint/promise-function-async": "off", "@typescript-eslint/strict-boolean-expressions": "off", diff --git a/src/components/AppNavigation.vue b/src/components/AppNavigation.vue index dea492a..0dbddc4 100644 --- a/src/components/AppNavigation.vue +++ b/src/components/AppNavigation.vue @@ -34,7 +34,7 @@ diff --git a/tsconfig.json b/tsconfig.json index 9203fcb..08714d0 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -11,7 +11,8 @@ "allowSyntheticDefaultImports": true, "esModuleInterop": true, "skipLibCheck": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "noUnusedLocals": true, }, "include": [ "src"