summaryrefslogtreecommitdiffstats
path: root/.eslintrc.js
blob: 1e9e7379f7c3308570d60d8be4f6a5d2ad91257e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
module.exports = {
    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],
    },
}