chore(ts): allow import .ts extension
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
This commit is contained in:
Родитель
8dc23cf700
Коммит
5eba1f11f2
|
@ -24,7 +24,7 @@ SPDX-FileCopyrightText = "2020-2024 Nextcloud translators"
|
|||
SPDX-License-Identifier = "AGPL-3.0-or-later"
|
||||
|
||||
[[annotations]]
|
||||
path = ["tsconfig.json", "tsconfig.webpack.json", "cypress/tsconfig.json", "tests/tsconfig.json"]
|
||||
path = ["tsconfig.json", "cypress/tsconfig.json", "tests/tsconfig.json"]
|
||||
precedence = "aggregate"
|
||||
SPDX-FileCopyrightText = "2022-2024 Nextcloud GmbH and Nextcloud contributors"
|
||||
SPDX-License-Identifier = "CC0-1.0"
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
"include": ["./src/**/*.ts"],
|
||||
"exclude": ["./src/**/*.cy.ts"],
|
||||
"compilerOptions": {
|
||||
"allowImportingTsExtensions": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"moduleResolution": "Bundler",
|
||||
"target": "ESNext",
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"noEmit": false,
|
||||
}
|
||||
}
|
|
@ -45,12 +45,6 @@ webpackRules.RULE_TS = {
|
|||
test: /\.tsx?$/,
|
||||
use: [
|
||||
'babel-loader',
|
||||
{
|
||||
loader: 'ts-loader',
|
||||
options: {
|
||||
configFile: 'tsconfig.webpack.json',
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче