summaryrefslogtreecommitdiffstats
path: root/.eslintrc.js
diff options
context:
space:
mode:
authordevlinjunker <devlin.junker@gmail.com>2022-07-04 01:07:48 -0700
committerGitHub <noreply@github.com>2022-07-04 10:07:48 +0200
commitf1668df03fa137ff809f26b6dd5b52707d6009f1 (patch)
treefc935a40c067c2c3146b00d2073604413774d1c4 /.eslintrc.js
parent40d9c352aba5351c7a55a63e5bc0508141f51224 (diff)
[Vue Rewrite] Enable Typescript Vue Components (#1831)
* compiling typescript with webpack Signed-off-by: Devlin Junker <devlin.junker@gmail.com> * working typescript component Signed-off-by: Devlin Junker <devlin.junker@gmail.com> * clean up indentation and linting Signed-off-by: Devlin Junker <devlin.junker@gmail.com> * remove calendar-js Signed-off-by: Devlin Junker <devlin.junker@gmail.com> * revert indentation and remove commented out lines Signed-off-by: Devlin Junker <devlin.junker@gmail.com> * clean up warning Signed-off-by: Devlin Junker <devlin.junker@gmail.com> * cleanup + add comments Signed-off-by: Devlin Junker <devlin.junker@gmail.com> * fix warnings and add more comments Signed-off-by: Devlin Junker <devlin.junker@gmail.com> * cleanup unecessary changes to webpack and add comments Signed-off-by: Devlin Junker <devlin.junker@gmail.com> * fix package Signed-off-by: Devlin Junker <devlin.junker@gmail.com> * update changelog and fix comment Signed-off-by: Devlin Junker <devlin.junker@gmail.com> * cleanup Signed-off-by: Devlin Junker <devlin.junker@gmail.com> * remove unecessary line Signed-off-by: Devlin Junker <devlin.junker@gmail.com> * remove vue-class-component library + others Signed-off-by: Devlin Junker <devlin.junker@gmail.com> * clean up babel-loader Signed-off-by: Devlin Junker <devlin.junker@gmail.com> * remove fork-ts-checker plugin Signed-off-by: Devlin Junker <devlin.junker@gmail.com>
Diffstat (limited to '.eslintrc.js')
-rw-r--r--.eslintrc.js32
1 files changed, 24 insertions, 8 deletions
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],
+ },
}