Skip to content

Commit 1a9ec58

Browse files
hamza221st3iny
authored andcommitted
chore(eslint): bump @nextcloud/eslint-config to v9.0.0-rc.5 (and fix errors)
Signed-off-by: Hamza <[email protected]> Signed-off-by: Richard Steinmetz <[email protected]>
1 parent cd4e30a commit 1a9ec58

File tree

104 files changed

+3415
-3968
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+3415
-3968
lines changed

.eslintrc.cjs

Lines changed: 0 additions & 19 deletions
This file was deleted.

eslint.config.mjs

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/*
2+
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
3+
* SPDX-License-Identifier: AGPL-3.0-or-later
4+
*/
5+
6+
import { defineConfig } from 'eslint/config'
7+
8+
// TODO: replace with recommended when migrating to Vue 3
9+
import { recommended } from '@nextcloud/eslint-config'
10+
11+
export default defineConfig([
12+
...recommended,
13+
{
14+
rules: {
15+
// Relax some rules for now. Can be improved later one (baseline).
16+
'no-console': 'off',
17+
'no-unused-vars': 'off',
18+
'@typescript-eslint/no-unused-vars': 'off',
19+
'@typescript-eslint/no-explicit-any': 'off',
20+
'vue/multi-word-component-names': 'off',
21+
// JSDocs are welcome but lint:fix should not create empty ones
22+
'jsdoc/require-jsdoc': 'off',
23+
'jsdoc/require-param': 'off',
24+
// Forbid empty JSDocs
25+
// TODO: Enable this rule once @nextcloud/eslint-config was updated and pulls the
26+
// newest version of eslint-plugin-jsdoc (is a recent feature/rule).
27+
// 'jsdoc/no-blank-blocks': 'error',
28+
},
29+
},
30+
])

0 commit comments

Comments
 (0)