Add tsconfig front

This commit is contained in:
Alexandre Bodin 2023-07-24 12:22:14 +02:00
parent 5b1ecac1fa
commit 2369cc5187
5 changed files with 12 additions and 12 deletions

View File

@ -28,7 +28,7 @@ module.exports = {
setupFilesAfterEnv: ['@strapi/admin-test-utils/after-env'],
testEnvironment: 'jsdom',
transform: {
'^.+\\.js$': [
'^.+\\.(j|t)s(x)?$': [
'@swc/jest',
{
env: {

View File

@ -1,8 +1,5 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"noEmit": true
},
"include": ["src"],
"exclude": ["node_modules"]
}

View File

@ -1,9 +1,5 @@
{
"extends": "tsconfig/base.json",
"compilerOptions": {
"jsx": "react-jsx",
"noEmit": true
},
"extends": "tsconfig/front.json",
"include": ["src"],
"exclude": ["node_modules"]
}

View File

@ -2,8 +2,5 @@
module.exports = {
preset: '../../../jest-preset.front.js',
transform: {
'^.+\\.ts(x)?$': ['@swc/jest'],
},
displayName: 'Color picker plugin',
};

View File

@ -0,0 +1,10 @@
{
"$schema": "http://json.schemastore.org/tsconfig",
"extends": "./base.json",
"compilerOptions": {
"module": "ESNext",
"lib": ["dom", "dom.iterable", "esnext"],
"jsx": "react-jsx",
"noEmit": true
}
}