chore(ts): allow import .ts extension

Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
This commit is contained in:
Grigorii K. Shartsev 2024-11-06 15:24:00 +01:00
Родитель 8dc23cf700
Коммит 5eba1f11f2
4 изменённых файлов: 2 добавлений и 13 удалений

Просмотреть файл

@ -24,7 +24,7 @@ SPDX-FileCopyrightText = "2020-2024 Nextcloud translators"
SPDX-License-Identifier = "AGPL-3.0-or-later" SPDX-License-Identifier = "AGPL-3.0-or-later"
[[annotations]] [[annotations]]
path = ["tsconfig.json", "tsconfig.webpack.json", "cypress/tsconfig.json", "tests/tsconfig.json"] path = ["tsconfig.json", "cypress/tsconfig.json", "tests/tsconfig.json"]
precedence = "aggregate" precedence = "aggregate"
SPDX-FileCopyrightText = "2022-2024 Nextcloud GmbH and Nextcloud contributors" SPDX-FileCopyrightText = "2022-2024 Nextcloud GmbH and Nextcloud contributors"
SPDX-License-Identifier = "CC0-1.0" SPDX-License-Identifier = "CC0-1.0"

Просмотреть файл

@ -3,6 +3,7 @@
"include": ["./src/**/*.ts"], "include": ["./src/**/*.ts"],
"exclude": ["./src/**/*.cy.ts"], "exclude": ["./src/**/*.cy.ts"],
"compilerOptions": { "compilerOptions": {
"allowImportingTsExtensions": true,
"allowSyntheticDefaultImports": true, "allowSyntheticDefaultImports": true,
"moduleResolution": "Bundler", "moduleResolution": "Bundler",
"target": "ESNext", "target": "ESNext",

Просмотреть файл

@ -1,6 +0,0 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"noEmit": false,
}
}

Просмотреть файл

@ -45,12 +45,6 @@ webpackRules.RULE_TS = {
test: /\.tsx?$/, test: /\.tsx?$/,
use: [ use: [
'babel-loader', 'babel-loader',
{
loader: 'ts-loader',
options: {
configFile: 'tsconfig.webpack.json',
},
},
], ],
} }