-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy patheslint.config.mjs
More file actions
39 lines (34 loc) · 911 Bytes
/
Copy patheslint.config.mjs
File metadata and controls
39 lines (34 loc) · 911 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
31
32
33
34
35
36
37
38
39
/**
* SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import { recommendedJavascript } from '@nextcloud/eslint-config'
export default [
...recommendedJavascript,
{
name: 'app_api/ignores',
ignores: ['**/__snapshots__/'],
},
{
name: 'app_api/rules',
files: ['**/*.js', '**/*.vue'],
rules: {
'jsdoc/require-jsdoc': 'off',
'no-console': 'off',
// Sorting would change the module evaluation order of the bundles
'perfectionist/sort-imports': 'off',
},
},
{
name: 'app_api/vue-rules',
files: ['**/*.vue'],
rules: {
'vue/first-attribute-linebreak': 'off',
// These need changes to component props and emits, not just formatting
'vue/no-required-prop-with-default': 'off',
'vue/no-unused-properties': 'off',
'vue/no-unused-refs': 'off',
'vue/require-explicit-emits': 'off',
},
},
]