From f1668df03fa137ff809f26b6dd5b52707d6009f1 Mon Sep 17 00:00:00 2001 From: devlinjunker Date: Mon, 4 Jul 2022 01:07:48 -0700 Subject: [Vue Rewrite] Enable Typescript Vue Components (#1831) * compiling typescript with webpack Signed-off-by: Devlin Junker * working typescript component Signed-off-by: Devlin Junker * clean up indentation and linting Signed-off-by: Devlin Junker * remove calendar-js Signed-off-by: Devlin Junker * revert indentation and remove commented out lines Signed-off-by: Devlin Junker * clean up warning Signed-off-by: Devlin Junker * cleanup + add comments Signed-off-by: Devlin Junker * fix warnings and add more comments Signed-off-by: Devlin Junker * cleanup unecessary changes to webpack and add comments Signed-off-by: Devlin Junker * fix package Signed-off-by: Devlin Junker * update changelog and fix comment Signed-off-by: Devlin Junker * cleanup Signed-off-by: Devlin Junker * remove unecessary line Signed-off-by: Devlin Junker * remove vue-class-component library + others Signed-off-by: Devlin Junker * clean up babel-loader Signed-off-by: Devlin Junker * remove fork-ts-checker plugin Signed-off-by: Devlin Junker --- .eslintrc.js | 32 ++++++++++++++++++++++++-------- 1 file changed, 24 insertions(+), 8 deletions(-) (limited to '.eslintrc.js') diff --git a/.eslintrc.js b/.eslintrc.js index 597a54366..1e9e7379f 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,10 +1,26 @@ module.exports = { - extends: [ - '@nextcloud', - ], - rules: { - 'jsdoc/check-alignment': 'off', - 'vue/html-indent': 'off', - 'indent': ['error', 4] - }, + root: true, + parser: 'vue-eslint-parser', + parserOptions: { + parser: { + ts: '@typescript-eslint/parser', + }, + ecmaVersion: 2020, + }, + extends: [ + 'eslint:recommended', + 'plugin:vue/base', + 'plugin:vue/essential', + '@vue/standard', + '@vue/typescript/recommended', + '@nextcloud', + ], + ignorePatterns: ['*.d.ts'], + rules: { + 'node/no-unpublished-import': 'off', // necessary for vue-property-decorator (not published?) + + // TODO: remove these indentation rules during reformat (expects tab char \t but right now code base uses spaces) + 'vue/html-indent': 'off', + indent: ['error', 4], + }, } -- cgit v1.2.3