mirror of
https://github.com/nextcloud/server.git
synced 2025-01-30 22:37:01 +00:00
691f570237
Nevertheless this causes a huge amount of new warnings. Previously the shell script for directories to lint was wrong it was generating all app names to lint, but was missing the `apps/` prefix. Causing only `core` to be linted. Co-authored-by: Grigorii K. Shartsev <me@shgk.me> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
48 lines
980 B
JavaScript
48 lines
980 B
JavaScript
/**
|
|
* SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
module.exports = {
|
|
globals: {
|
|
__webpack_nonce__: true,
|
|
_: true,
|
|
$: true,
|
|
dayNames: true,
|
|
escapeHTML: true,
|
|
firstDay: true,
|
|
moment: true,
|
|
oc_userconfig: true,
|
|
sinon: true,
|
|
},
|
|
plugins: [
|
|
'cypress',
|
|
],
|
|
extends: [
|
|
'@nextcloud/eslint-config/typescript',
|
|
'plugin:cypress/recommended',
|
|
],
|
|
rules: {
|
|
'no-tabs': 'warn',
|
|
// TODO: make sure we fix this as this is bad vue coding style.
|
|
// Use proper sync modifier
|
|
'vue/no-mutating-props': 'warn',
|
|
'vue/custom-event-name-casing': ['error', 'kebab-case', {
|
|
// allows custom xxxx:xxx events formats
|
|
ignores: ['/^[a-z]+(?:-[a-z]+)*:[a-z]+(?:-[a-z]+)*$/u'],
|
|
}],
|
|
},
|
|
settings: {
|
|
jsdoc: {
|
|
mode: 'typescript',
|
|
},
|
|
},
|
|
overrides: [
|
|
// Allow any in tests
|
|
{
|
|
files: ['**/*.spec.ts'],
|
|
rules: {
|
|
'@typescript-eslint/no-explicit-any': 'warn',
|
|
},
|
|
}
|
|
],
|
|
}
|