Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
working typescript
Oleg Isonen9f472a53b3f9
diff --git a/apps/designer/app/root.tsx b/apps/designer/app/root.tsxindex 44c8df873f..a73cf3cffd 100644--- a/apps/designer/app/root.tsx+++ b/apps/designer/app/root.tsx@@ -5,6 +5,7 @@ import { ErrorBoundary } from "@sentry/remix";import { OutletProps } from "react-router-dom";const RootWithErrorBoundary = (props: OutletProps) => (+ // @ts-expect-error 'ErrorBoundary' cannot be used as a JSX component.<ErrorBoundary><Outlet {...props} /></ErrorBoundary>diff --git a/apps/designer/package.json b/apps/designer/package.jsonindex 6dcbce6f6a..5f2da4c315 100644--- a/apps/designer/package.json+++ b/apps/designer/package.json@@ -121,6 +121,8 @@"esbuild-jest": "^0.5.0","esbuild-node-externals": "^1.4.1","esbuild-node-loader": "^0.8.0",+ "eslint-config-custom": "*",+ "tsconfig": "*","jest": "^27.5.1","prettier": "^2.6.2","prisma": "^3.14.0",diff --git a/apps/designer/tsconfig.json b/apps/designer/tsconfig.jsonnew file mode 100644index 0000000000..102b540d96--- /dev/null+++ b/apps/designer/tsconfig.json@@ -0,0 +1,11 @@+{+ "extends": "tsconfig/remix.json",+ "include": ["remix.env.d.ts", "**/*.ts", "**/*.tsx"],+ "exclude": ["node_modules"],+ "compilerOptions": {+ "paths": {+ "~/*": ["app/*"]+ },+ "baseUrl": "."+ }+}diff --git a/packages/tsconfig/base.json b/packages/tsconfig/base.jsonindex d72a9f3a27..61de6d96ab 100644--- a/packages/tsconfig/base.json+++ b/packages/tsconfig/base.json@@ -14,7 +14,9 @@"noUnusedParameters": false,"preserveWatchOutput": true,"skipLibCheck": true,- "strict": true+ "strict": true,+ "allowJs": false,+ "resolveJsonModule": true},"exclude": ["node_modules"]}diff --git a/packages/tsconfig/nextjs.json b/packages/tsconfig/nextjs.jsondeleted file mode 100644index 3b7dfa900d..0000000000--- a/packages/tsconfig/nextjs.json+++ /dev/null@@ -1,22 +0,0 @@-{- "$schema": "https://json.schemastore.org/tsconfig",- "display": "Next.js",- "extends": "./base.json",- "compilerOptions": {- "target": "es5",- "lib": ["dom", "dom.iterable", "esnext"],- "allowJs": true,- "skipLibCheck": true,- "strict": true,- "forceConsistentCasingInFileNames": true,- "noEmit": true,- "incremental": true,- "esModuleInterop": true,- "module": "esnext",- "resolveJsonModule": true,- "isolatedModules": true,- "jsx": "preserve"- },- "include": ["src", "next-env.d.ts"],- "exclude": ["node_modules"]-}diff --git a/packages/tsconfig/package.json b/packages/tsconfig/package.jsonindex d49a4c6ee8..a32fc41922 100644--- a/packages/tsconfig/package.json+++ b/packages/tsconfig/package.json@@ -5,7 +5,6 @@"main": "index.js","files": ["base.json",- "nextjs.json",- "react-library.json"+ "remix.json"]}diff --git a/packages/tsconfig/react-library.json b/packages/tsconfig/react-library.jsondeleted file mode 100644index 6d6a7fea97..0000000000--- a/packages/tsconfig/react-library.json+++ /dev/null@@ -1,11 +0,0 @@-{- "$schema": "https://json.schemastore.org/tsconfig",- "display": "React Library",- "extends": "./base.json",- "compilerOptions": {- "lib": ["ES2015"],- "module": "ESNext",- "target": "ES6",- "jsx": "react-jsx"- }-}diff --git a/packages/tsconfig/remix.json b/packages/tsconfig/remix.jsonnew file mode 100644index 0000000000..94fd2c99e6--- /dev/null+++ b/packages/tsconfig/remix.json@@ -0,0 +1,14 @@+{+ "$schema": "https://json.schemastore.org/tsconfig",+ "display": "Remix",+ "extends": "./base.json",+ "compilerOptions": {+ "noEmit": true,+ "incremental": true,+ "jsx": "preserve",+ "target": "ES2019",+ "lib": ["DOM", "DOM.Iterable", "ES2019"]+ },+ "include": ["app", "remix.env.d.ts"],+ "exclude": ["node_modules"]+}diff --git a/tsconfig.json b/tsconfig.jsondeleted file mode 100644index f82f4f1a0a..0000000000--- a/tsconfig.json+++ /dev/null@@ -1,21 +0,0 @@-{- "include": ["remix.env.d.ts", "**/*.ts", "**/*.tsx"],- "compilerOptions": {- "lib": ["DOM", "DOM.Iterable", "ES2019"],- "isolatedModules": true,- "esModuleInterop": true,- "jsx": "react-jsx",- "moduleResolution": "node",- "resolveJsonModule": true,- "target": "ES2019",- "strict": true,- "baseUrl": ".",- "paths": {- "~/*": ["apps/designer/app/*"]- },- "skipLibCheck": true,- "noEmit": true,- "allowJs": true,- "forceConsistentCasingInFileNames": true- }-}diff --git a/yarn.lock b/yarn.lockindex 2cc3a9f977..8b3052a1b5 100644--- a/yarn.lock+++ b/yarn.lock@@ -4167,7 +4167,7 @@"@types/react" "*""@types/reactcss" "*"-"@types/react-dom@<18.0.0", "@types/react-dom@^17.0.11", "@types/react-dom@^17.0.9":+"@types/react-dom@<18.0.0", "@types/react-dom@^17.0.9":version "17.0.17"resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-17.0.17.tgz#2e3743277a793a96a99f1bf87614598289da68a1"integrity sha512-VjnqEmqGnasQKV0CWLevqMTXBYG9GbwuE6x3VetERLh0cq2LTptFE73MrQi2S7GkKXCf2GgwItB/melLnxfnsg==@@ -4199,7 +4199,7 @@"@types/scheduler" "*"csstype "^3.0.2"-"@types/react@^17", "@types/react@^17.0.24", "@types/react@^17.0.37":+"@types/react@^17", "@types/react@^17.0.24":version "17.0.47"resolved "https://registry.yarnpkg.com/@types/react/-/react-17.0.47.tgz#4ee71aaf4c5a9e290e03aa4d0d313c5d666b3b78"integrity sha512-mk0BL8zBinf2ozNr3qPnlu1oyVTYq+4V7WA76RgxUAtf0Em/Wbid38KN6n4abEkvO4xMTBWmnP1FtQzgkEiJoA==@@ -7675,7 +7675,7 @@ eslint-visitor-keys@^3.3.0:resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz#f6480fa6b1f30efe2d1968aa8ac745b862469826"integrity sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==[email protected], eslint@^7.32.0:version "7.32.0"resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.32.0.tgz#c6d328a14be3fb08c8d1d21e12c02fdb7a2a812d"integrity sha512-VHZ8gX+EDfz+97jGcgyGCyRia/dPOd6Xh9yPv8Bl1+SoaIwD+a/vlrOmGRUyOYu7MwUhc7CxqeaDZU13S4+EpA==@@ -14717,6 +14717,11 @@ [email protected]:resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c"integrity sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==+ version "0.1.40"+ resolved "https://registry.yarnpkg.com/std/-/std-0.1.40.tgz#3678a5f65094d9e1b6b5e26edbfc0212b8342b71"+ integrity sha512-wUf57hkDGCoVShrhPA8Q7lAg2Qosk+FaMlECmAsr1A4/rL2NRXFHQGBcgMUFKVkPEemJFW9gzjCQisRty14ohg==+store2@^2.12.0:version "2.13.2"resolved "https://registry.yarnpkg.com/store2/-/store2-2.13.2.tgz#01ad8802ca5b445b9c316b55e72645c13a3cd7e3"@@ -15589,7 +15594,7 @@ [email protected]:resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.6.4.tgz#caa78bbc3a59e6a5c510d35703f6a09877ce45e9"integrity sha512-9ia/jWHIEbo49HfjrLGfKbZSuWo9iTMwXO+Ca3pRsSpbsMbc7/IU8NKdCZVRRBafVPGnoJeFL76ZOAA84I9fEg==-typescript@^4.5.2, typescript@^4.5.3:+typescript@^4.5.3:version "4.7.4"resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.7.4.tgz#1a88596d1cf47d59507a1bcdfb5b9dfe4d488235"integrity sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==@@ -15599,6 +15604,13 @@ uglify-js@^3.1.4:resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.16.2.tgz#0481e1dbeed343ad1c2ddf3c6d42e89b7a6d4def"integrity sha512-AaQNokTNgExWrkEYA24BTNMSjyqEXPSfhqoS0AxmHkCJ4U+Dyy5AvbGV/sqxuxficEfGGoX3zWw9R7QpLFfEsg==+ui@*:+ version "0.2.4"+ resolved "https://registry.yarnpkg.com/ui/-/ui-0.2.4.tgz#39b7c8086b2b1b64a72c6437c38ddc7c4e4e836d"+ integrity sha512-se2D+frb/i6JwFc7j72IEa0JADF8lfgc6ivOigaYkXHOuZRBtWe8R7UZ2YiXcbJ1dYNsjq40dn39rlNRxmVdPw==+ dependencies:+ std "0.1.x"+unbox-primitive@^1.0.2:version "1.0.2"resolved "https://registry.yarnpkg.com/unbox-primitive/-/unbox-primitive-1.0.2.tgz#29032021057d5e6cdbd08c5129c226dff8ed6f9e"