-
Notifications
You must be signed in to change notification settings - Fork 200
Expand file tree
/
Copy patheslint.config.mjs
More file actions
30 lines (27 loc) · 984 Bytes
/
eslint.config.mjs
File metadata and controls
30 lines (27 loc) · 984 Bytes
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
27
28
29
30
/*
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import { defineConfig } from 'eslint/config'
// TODO: replace with recommended when migrating to Vue 3
import { recommended } from '@nextcloud/eslint-config'
export default defineConfig([
...recommended,
{
rules: {
// Relax some rules for now. Can be improved later one (baseline).
'no-console': 'off',
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'vue/multi-word-component-names': 'off',
// JSDocs are welcome but lint:fix should not create empty ones
'jsdoc/require-jsdoc': 'off',
'jsdoc/require-param': 'off',
// Forbid empty JSDocs
// TODO: Enable this rule once @nextcloud/eslint-config was updated and pulls the
// newest version of eslint-plugin-jsdoc (is a recent feature/rule).
// 'jsdoc/no-blank-blocks': 'error',
},
},
])