mirror of
https://github.com/nextcloud/server.git
synced 2026-02-17 18:00:44 -05:00
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>
31 lines
645 B
JavaScript
31 lines
645 B
JavaScript
/**
|
|
* SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
module.exports = {
|
|
plugins: [
|
|
'@babel/plugin-syntax-dynamic-import',
|
|
'@babel/plugin-transform-class-properties',
|
|
// We need the bundler entry not the web one
|
|
// Jest will otherwise resolve the wrong one
|
|
[
|
|
"module-resolver",
|
|
{
|
|
"alias": {
|
|
"webdav$": "webdav/dist/node/index.js",
|
|
},
|
|
},
|
|
]
|
|
],
|
|
presets: [
|
|
// https://babeljs.io/docs/en/babel-preset-typescript
|
|
'@babel/preset-typescript',
|
|
[
|
|
'@babel/preset-env',
|
|
{
|
|
useBuiltIns: false,
|
|
modules: 'auto',
|
|
},
|
|
],
|
|
],
|
|
}
|