From 1dbed7d96ecb3b2ae3a7756654da64e0d7a407f7 Mon Sep 17 00:00:00 2001 From: Hironsan Date: Mon, 8 Feb 2021 20:05:01 +0900 Subject: [PATCH] Introduce typescript --- frontend/.eslintrc.js | 14 +- .../containers/settings/ConfigList.vue | 77 +- frontend/nuxt.config.js | 1 + frontend/package.json | 9 +- frontend/tsconfig.json | 34 + frontend/vue-shim.d.ts | 4 + frontend/yarn.lock | 900 ++++++++++++++++-- 7 files changed, 886 insertions(+), 153 deletions(-) create mode 100644 frontend/tsconfig.json create mode 100644 frontend/vue-shim.d.ts diff --git a/frontend/.eslintrc.js b/frontend/.eslintrc.js index e8d1d743..53c479e6 100644 --- a/frontend/.eslintrc.js +++ b/frontend/.eslintrc.js @@ -4,14 +4,11 @@ module.exports = { browser: true, node: true }, - parserOptions: { - parser: 'babel-eslint' - }, extends: [ '@nuxtjs', - 'plugin:nuxt/recommended' + 'plugin:nuxt/recommended', + '@nuxtjs/eslint-config-typescript' ], - // add your custom rules here rules: { 'no-console': 'off', 'no-restricted-syntax': [ @@ -22,6 +19,11 @@ module.exports = { } ], 'vue/valid-template-root': 'off', - 'space-before-function-paren': ['error', 'never'] + 'space-before-function-paren': ['error', 'never'], + 'no-useless-constructor': 'off', + '@typescript-eslint/no-useless-constructor': 'off', + 'no-unused-vars': 'off', + '@typescript-eslint/no-unused-vars': 'off', + camelcase: 'off' } } diff --git a/frontend/components/containers/settings/ConfigList.vue b/frontend/components/containers/settings/ConfigList.vue index 37345c7e..17053271 100644 --- a/frontend/components/containers/settings/ConfigList.vue +++ b/frontend/components/containers/settings/ConfigList.vue @@ -1,14 +1,13 @@