-
Notifications
You must be signed in to change notification settings - Fork 509
Expand file tree
/
Copy patheslint.config.mjs
More file actions
63 lines (58 loc) · 1.86 KB
/
eslint.config.mjs
File metadata and controls
63 lines (58 loc) · 1.86 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/**
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import { recommended } from '@nextcloud/eslint-config'
import globals from 'globals'
export default [
...recommended,
{
name: 'talk/ignores',
ignores: [
// Generated files
'src/types/openapi/*',
'js/*',
// Vendor code
'src/utils/**/vendor/*',
// Temporary ignore code in documentation examples
'docs',
// TODO: upstream
'openapi-*.json',
],
},
{
name: 'talk/config',
languageOptions: {
globals: {
...globals.browser,
...globals.node,
IS_DESKTOP: 'readonly',
__webpack_public_path__: 'writable',
},
},
},
{
name: 'talk/disabled-during-migration',
rules: {
'@nextcloud-l10n/non-breaking-space': 'off', // changes translation strings
'@nextcloud-l10n/non-breaking-space-vue': 'off', // changes translation strings
'@typescript-eslint/no-unused-expressions': 'off', // non-fixable
'@typescript-eslint/no-unused-vars': 'off', // non-fixable
'@typescript-eslint/no-use-before-define': 'off', // non-fixable
'jsdoc/check-tag-names': 'off', // need to respect JS
'jsdoc/reject-function-type': 'off', // need to respect JS
'jsdoc/reject-any-type': 'off', // need to respect JS
'jsdoc/require-function-type': 'off', // need to respect JS
'jsdoc/require-param-type': 'off', // need to respect JS
'jsdoc/require-param-description': 'off', // need to respect JS
'jsdoc/require-throws-type': 'off', // need to respect JS
'no-console': 'off', // non-fixable
'no-unused-vars': 'off', // non-fixable
'no-use-before-define': 'off', // non-fixable
'vue/no-boolean-default': 'off', // non-fixable
'vue/no-required-prop-with-default': 'off', // non-fixable
'vue/no-unused-properties': 'off', // non-fixable
'vue/no-unused-refs': 'off', // non-fixable
},
},
]