summaryrefslogtreecommitdiffstats
path: root/.eslintrc.js
diff options
context:
space:
mode:
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],
+ },
}