2024-05-10 16:09:14 +03:00
|
|
|
/**
|
|
|
|
* SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
*/
|
2019-09-25 10:55:33 +03:00
|
|
|
module.exports = {
|
|
|
|
globals: {
|
|
|
|
__webpack_nonce__: true,
|
|
|
|
_: true,
|
|
|
|
$: true,
|
2019-10-26 15:31:38 +03:00
|
|
|
dayNames: true,
|
2023-06-27 12:44:59 +03:00
|
|
|
escapeHTML: true,
|
2020-12-17 13:45:13 +03:00
|
|
|
firstDay: true,
|
2023-06-27 12:44:59 +03:00
|
|
|
moment: true,
|
|
|
|
oc_userconfig: true,
|
|
|
|
sinon: true,
|
2023-04-20 02:52:06 +03:00
|
|
|
},
|
2023-01-04 21:06:52 +03:00
|
|
|
plugins: [
|
|
|
|
'cypress',
|
|
|
|
],
|
|
|
|
extends: [
|
2023-06-27 12:44:59 +03:00
|
|
|
'@nextcloud/eslint-config/typescript',
|
2023-01-04 21:06:52 +03:00
|
|
|
'plugin:cypress/recommended',
|
|
|
|
],
|
2019-11-13 15:05:10 +03:00
|
|
|
rules: {
|
|
|
|
'no-tabs': 'warn',
|
2021-07-22 14:21:25 +03:00
|
|
|
// TODO: make sure we fix this as this is bad vue coding style.
|
|
|
|
// Use proper sync modifier
|
|
|
|
'vue/no-mutating-props': 'warn',
|
2021-12-02 20:32:57 +03:00
|
|
|
'vue/custom-event-name-casing': ['error', 'kebab-case', {
|
|
|
|
// allows custom xxxx:xxx events formats
|
|
|
|
ignores: ['/^[a-z]+(?:-[a-z]+)*:[a-z]+(?:-[a-z]+)*$/u'],
|
|
|
|
}],
|
2021-07-22 14:21:25 +03:00
|
|
|
},
|
2022-01-10 16:55:59 +03:00
|
|
|
settings: {
|
|
|
|
jsdoc: {
|
|
|
|
mode: 'typescript',
|
|
|
|
},
|
|
|
|
},
|
2024-06-25 01:00:31 +03:00
|
|
|
overrides: [
|
|
|
|
// Allow any in tests
|
|
|
|
{
|
|
|
|
files: ['**/*.spec.ts'],
|
|
|
|
rules: {
|
|
|
|
'@typescript-eslint/no-explicit-any': 'warn',
|
|
|
|
},
|
|
|
|
}
|
|
|
|
],
|
2019-09-25 10:55:33 +03:00
|
|
|
}
|