-
Notifications
You must be signed in to change notification settings - Fork 133
Expand file tree
/
Copy patheslint.config.js
More file actions
37 lines (35 loc) 路 938 Bytes
/
Copy patheslint.config.js
File metadata and controls
37 lines (35 loc) 路 938 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
/**
* SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import { recommended } from '@nextcloud/eslint-config'
import pluginCypress from 'eslint-plugin-cypress'
import { defineConfig, globalIgnores } from 'eslint/config'
export default defineConfig(
...recommended,
globalIgnores(['src/tests/fixtures/*']),
{
name: 'production-public-jsdoc',
files: ['src/**/*.{js,ts,vue}'],
ignores: ['**/*.test.*', '**/*.spec.*', '**/*.cy.*', '**/test/**', '**/tests/**', '**/__tests__/**', '**/__mocks__/**'],
rules: {
'jsdoc/require-jsdoc': ['warn', { publicOnly: true }],
},
},
{
files: ['cypress/**/*.js'],
extends: [pluginCypress.configs.globals],
},
{
name: 'vitest-globals',
files: ['src/tests/**'],
languageOptions: {
globals: {
describe: 'readonly',
expect: 'readonly',
it: 'readonly',
test: 'readonly',
},
},
},
)