|
| 1 | +/** |
| 2 | + * SPDX-FileCopyrightText: 2025 LibreCode coop and contributors |
| 3 | + * SPDX-License-Identifier: AGPL-3.0-or-later |
| 4 | + */ |
| 5 | + |
| 6 | +import { recommended } from '@nextcloud/eslint-config' |
| 7 | +import globals from 'globals' |
| 8 | + |
| 9 | +export default [ |
| 10 | + ...recommended, |
| 11 | + |
| 12 | + { |
| 13 | + name: 'extract/ignores', |
| 14 | + ignores: [ |
| 15 | + // Generated files |
| 16 | + 'src/types/openapi/*', |
| 17 | + 'js/*', |
| 18 | + // TODO: upstream |
| 19 | + 'openapi-*.json', |
| 20 | + ], |
| 21 | + }, |
| 22 | + |
| 23 | + { |
| 24 | + name: 'extract/config', |
| 25 | + languageOptions: { |
| 26 | + globals: { |
| 27 | + ...globals.browser, |
| 28 | + ...globals.node, |
| 29 | + __webpack_public_path__: 'writable', |
| 30 | + }, |
| 31 | + }, |
| 32 | + }, |
| 33 | + |
| 34 | + { |
| 35 | + name: 'extract/disabled-during-migration', |
| 36 | + rules: { |
| 37 | + '@nextcloud-l10n/non-breaking-space': 'off', // changes translation strings |
| 38 | + '@nextcloud-l10n/non-breaking-space-vue': 'off', // changes translation strings |
| 39 | + '@typescript-eslint/no-unused-expressions': 'off', // non-fixable |
| 40 | + '@typescript-eslint/no-unused-vars': 'off', // non-fixable |
| 41 | + '@typescript-eslint/no-use-before-define': 'off', // non-fixable |
| 42 | + 'jsdoc/require-param-type': 'off', // need to respect JS |
| 43 | + 'jsdoc/require-param-description': 'off', // need to respect JS |
| 44 | + 'no-console': 'off', // non-fixable |
| 45 | + 'no-unused-vars': 'off', // non-fixable |
| 46 | + 'no-use-before-define': 'off', // non-fixable |
| 47 | + 'vue/multi-word-component-names': 'off', // non-fixable |
| 48 | + 'vue/no-boolean-default': 'off', // non-fixable |
| 49 | + 'vue/no-required-prop-with-default': 'off', // non-fixable |
| 50 | + 'vue/no-unused-properties': 'off', // non-fixable |
| 51 | + 'vue/no-unused-refs': 'off', // non-fixable |
| 52 | + }, |
| 53 | + }, |
| 54 | +] |
0 commit comments