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
build: bump eslint (#4325)
Bogdan Chadkinc28faf27ab04
diff --git a/apps/builder/app/builder/shared/sync/sync-server.ts b/apps/builder/app/builder/shared/sync/sync-server.tsindex f27b052521..c297fe7f41 100644--- a/apps/builder/app/builder/shared/sync/sync-server.ts+++ b/apps/builder/app/builder/shared/sync/sync-server.ts@@ -272,7 +272,7 @@ export const startProjectSync = ({});};-const useSyncProject = async ({+const useSyncProject = ({projectId,authPermit,}: {diff --git a/apps/builder/app/shared/hook-utils/effect-event.ts b/apps/builder/app/shared/hook-utils/effect-event.tsindex e31009a4d8..3ef8a563d1 100644--- a/apps/builder/app/shared/hook-utils/effect-event.ts+++ b/apps/builder/app/shared/hook-utils/effect-event.ts@@ -15,7 +15,6 @@ export const useEffectEvent = <T extends Function>(callback?: T) => {ref.current = callback;});- // eslint-disable-next-line react-hooks/exhaustive-depsreturn useCallback<T>(((...args: unknown[]) => ref.current?.(...args)) as never,[]diff --git a/eslint.config.mjs b/eslint.config.mjsindex 5245ef7ba3..58c6dc3b60 100644--- a/eslint.config.mjs+++ b/eslint.config.mjs@@ -1,7 +1,6 @@// @ts-checkimport eslint from "@eslint/js";-import { fixupPluginRules } from "@eslint/compat";import tseslint from "typescript-eslint";import reactHooks from "eslint-plugin-react-hooks";import unicorn from "eslint-plugin-unicorn";@@ -22,8 +21,7 @@ export default tseslint.config({...tseslint.configs.recommended,{plugins: {- // @ts-ignore- "react-hooks": fixupPluginRules(reactHooks),+ "react-hooks": /** @type {any} */ (reactHooks),unicorn,},},diff --git a/package.json b/package.jsonindex 6a46a6402c..4c39787ae4 100644--- a/package.json+++ b/package.json@@ -24,8 +24,7 @@"pre-commit": "./node_modules/.bin/nano-staged"},"devDependencies": {- "@eslint/compat": "^1.2.0",- "@eslint/js": "^9.12.0",+ "@eslint/js": "^9.13.0","@fontsource-variable/inter": "^5.0.20","@fontsource-variable/manrope": "^5.0.20","@fontsource/roboto-mono": "^5.0.18",@@ -40,8 +39,8 @@"@types/node": "^22.6.1","@types/react": "^18.2.70","esbuild": "^0.24.0",- "eslint": "^9.12.0",- "eslint-plugin-react-hooks": "^4.6.2",+ "eslint": "^9.13.0",+ "eslint-plugin-react-hooks": "^5.0.0","eslint-plugin-unicorn": "^56.0.0","jest": "^29.7.0","nano-staged": "^0.8.0",@@ -52,7 +51,7 @@"storybook": "^8.3.5","tsx": "^4.19.1","typescript": "5.5.2",- "typescript-eslint": "^8.8.0",+ "typescript-eslint": "^8.11.0","vite": "^5.4.8"},"engines": {diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex d94a66bf51..d4fc7356e5 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -31,12 +31,9 @@ importers:.:devDependencies:- '@eslint/compat':- specifier: ^1.2.0- version: 1.2.0([email protected]([email protected]))'@eslint/js':- specifier: ^9.12.0- version: 9.12.0+ specifier: ^9.13.0+ version: 9.13.0'@fontsource-variable/inter':specifier: ^5.0.20version: 5.0.20@@ -80,14 +77,14 @@ importers:specifier: ^0.24.0version: 0.24.0eslint:- specifier: ^9.12.0- version: 9.12.0([email protected])+ specifier: ^9.13.0+ version: 9.13.0([email protected])eslint-plugin-react-hooks:- specifier: ^4.6.2- version: 4.6.2([email protected]([email protected]))+ specifier: ^5.0.0+ version: 5.0.0([email protected]([email protected]))eslint-plugin-unicorn:specifier: ^56.0.0- version: 56.0.0([email protected]([email protected]))+ version: 56.0.0([email protected]([email protected]))jest:specifier: ^29.7.0version: 29.7.0(@types/[email protected])@@ -116,8 +113,8 @@ importers:specifier: 5.5.2version: 5.5.2typescript-eslint:- specifier: ^8.8.0+ specifier: ^8.11.0vite:specifier: ^5.4.8version: 5.4.8(@types/[email protected])@@ -3573,29 +3570,20 @@ packages:resolution: {integrity: sha512-G/M/tIiMrTAxEWRfLfQJMmGNX28IxBg4PBz8XqQhqUHLFI6TL2htpIB1iQCj144V5ee/JaKyT9/WZ0MGZWfA7A==}engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0}- '@eslint/[email protected]':- resolution: {integrity: sha512-CkPWddN7J9JPrQedEr2X7AjK9y1jaMJtxZ4A/+jTMFA2+n5BWhcKHW/EbJyARqg2zzQfgtWUtVmG3hrG6+nGpg==}- engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}- peerDependencies:- eslint: ^9.10.0- peerDependenciesMeta:- eslint:- optional: true-'@eslint/[email protected]':resolution: {integrity: sha512-fTxvnS1sRMu3+JjXwJG0j/i4RT9u4qJ+lqS/yCGap4lH4zZGzQ7tu+xZqQmcMZq5OBZDL4QRxQzRjkWcGt8IVw==}engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}- '@eslint/[email protected]':- resolution: {integrity: sha512-8I2Q8ykA4J0x0o7cg67FPVnehcqWTBehu/lmY+bolPFHGjh49YzGBMXTvpqVgEbBdvNCSxj6iFgiIyHzf03lzg==}+ '@eslint/[email protected]':+ resolution: {integrity: sha512-xp5Jirz5DyPYlPiKat8jaq0EmYvDXKKpzTbxXMpT9eqlRJkRKIz9AGMdlvYjih+im+QlhWrpvVjl8IPC/lHlUw==}engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}'@eslint/[email protected]':resolution: {integrity: sha512-4Bfj15dVJdoy3RfZmmo86RK1Fwzn6SstsvK9JS+BaVKqC6QQQQyXekNaC+g+LKNgkQ+2VhGAzm6hO40AhMR3zQ==}engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}- '@eslint/[email protected]':- resolution: {integrity: sha512-eohesHH8WFRUprDNyEREgqP6beG6htMeUYeCpkEgBCieCMme5r9zFWjzAJp//9S+Kub4rqE+jXe9Cp1a7IYIIA==}+ '@eslint/[email protected]':+ resolution: {integrity: sha512-IFLyoY4d72Z5y/6o/BazFBezupzI/taV8sGumxTAVw3lXG9A6md1Dc34T9s1FoD/an9pJH8RHbAxsaEbBed9lA==}engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}'@eslint/[email protected]':@@ -5280,8 +5268,8 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-xQ67Yc/laOG5uMfX/093MRlGGCIBzZMarVa+gfNKJxWAIgykYpVGkBdbqEzGDDfCrVUj6Hiff4mTZ5BA6TmAog==}- '@typescript-eslint/[email protected]':- resolution: {integrity: sha512-wORFWjU30B2WJ/aXBfOm1LX9v9nyt9D3jsSOxC3cCaTQGCW5k4jNpmjFv3U7p/7s4yvdjHzwtv2Sd2dOyhjS0A==}+ '@typescript-eslint/[email protected]':+ resolution: {integrity: sha512-KhGn2LjW1PJT2A/GfDpiyOfS4a8xHQv2myUagTM5+zsormOmBlYsnQ6pobJ8XxJmh6hnHwa2Mbe3fPrDJoDhbA==}engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}peerDependencies:'@typescript-eslint/parser': ^8.0.0 || ^8.0.0-alpha.0@@ -5291,8 +5279,8 @@ packages:typescript:optional: true- '@typescript-eslint/[email protected]':- resolution: {integrity: sha512-uEFUsgR+tl8GmzmLjRqz+VrDv4eoaMqMXW7ruXfgThaAShO9JTciKpEsB+TvnfFfbg5IpujgMXVV36gOJRLtZg==}+ '@typescript-eslint/[email protected]':+ resolution: {integrity: sha512-lmt73NeHdy1Q/2ul295Qy3uninSqi6wQI18XwSpm8w0ZbQXUpjCAWP1Vlv/obudoBiIjJVjlztjQ+d/Md98Yxg==}engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}peerDependencies:eslint: ^8.57.0 || ^9.0.0@@ -5301,12 +5289,12 @@ packages:typescript:optional: true- '@typescript-eslint/[email protected]':- resolution: {integrity: sha512-EL8eaGC6gx3jDd8GwEFEV091210U97J0jeEHrAYvIYosmEGet4wJ+g0SYmLu+oRiAwbSA5AVrt6DxLHfdd+bUg==}+ '@typescript-eslint/[email protected]':+ resolution: {integrity: sha512-Uholz7tWhXmA4r6epo+vaeV7yjdKy5QFCERMjs1kMVsLRKIrSdM6o21W2He9ftp5PP6aWOVpD5zvrvuHZC0bMQ==}engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}- '@typescript-eslint/[email protected]':- resolution: {integrity: sha512-IKwJSS7bCqyCeG4NVGxnOP6lLT9Okc3Zj8hLO96bpMkJab+10HIfJbMouLrlpyOr3yrQ1cA413YPFiGd1mW9/Q==}+ '@typescript-eslint/[email protected]':+ resolution: {integrity: sha512-ItiMfJS6pQU0NIKAaybBKkuVzo6IdnAhPFZA/2Mba/uBjuPQPet/8+zh5GtLHwmuFRShZx+8lhIs7/QeDHflOg==}engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}peerDependencies:typescript: '*'@@ -5314,12 +5302,12 @@ packages:typescript:optional: true- '@typescript-eslint/[email protected]':- resolution: {integrity: sha512-QJwc50hRCgBd/k12sTykOJbESe1RrzmX6COk8Y525C9l7oweZ+1lw9JiU56im7Amm8swlz00DRIlxMYLizr2Vw==}+ '@typescript-eslint/[email protected]':+ resolution: {integrity: sha512-tn6sNMHf6EBAYMvmPUaKaVeYvhUsrE6x+bXQTxjQRp360h1giATU0WvgeEys1spbvb5R+VpNOZ+XJmjD8wOUHw==}engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}- '@typescript-eslint/[email protected]':- resolution: {integrity: sha512-ZaMJwc/0ckLz5DaAZ+pNLmHv8AMVGtfWxZe/x2JVEkD5LnmhWiQMMcYT7IY7gkdJuzJ9P14fRy28lUrlDSWYdw==}+ '@typescript-eslint/[email protected]':+ resolution: {integrity: sha512-yHC3s1z1RCHoCz5t06gf7jH24rr3vns08XXhfEqzYpd6Hll3z/3g23JRi0jM8A47UFKNc3u/y5KIMx8Ynbjohg==}engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}peerDependencies:typescript: '*'@@ -5327,14 +5315,14 @@ packages:typescript:optional: true- '@typescript-eslint/[email protected]':- resolution: {integrity: sha512-QE2MgfOTem00qrlPgyByaCHay9yb1+9BjnMFnSFkUKQfu7adBXDTnCAivURnuPPAG/qiB+kzKkZKmKfaMT0zVg==}+ '@typescript-eslint/[email protected]':+ resolution: {integrity: sha512-CYiX6WZcbXNJV7UNB4PLDIBtSdRmRI/nb0FMyqHPTQD1rMjA0foPLaPUV39C/MxkTd/QKSeX+Gb34PPsDVC35g==}engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}peerDependencies:eslint: ^8.57.0 || ^9.0.0- '@typescript-eslint/[email protected]':- resolution: {integrity: sha512-8mq51Lx6Hpmd7HnA2fcHQo3YgfX1qbccxQOgZcb4tvasu//zXRaA1j5ZRFeCw/VRAdFi4mRM9DnZw0Nu0Q2d1g==}+ '@typescript-eslint/[email protected]':+ resolution: {integrity: sha512-EaewX6lxSjRJnc+99+dqzTeoDZUfyrA52d2/HRrkI830kgovWsmIiTfmr0NZorzqic7ga+1bS60lRBUgR3n/Bw==}engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}'@unocss/[email protected]':@@ -6322,11 +6310,11 @@ packages:engines: {node: '>=6.0'}hasBin: true- resolution: {integrity: sha512-QzliNJq4GinDBcD8gPB5v0wh6g8q3SUi6EFF0x8N/BL9PoVs0atuGc47ozMRyOWAKdwaZ5OnbOEa3WR+dSGKuQ==}+ resolution: {integrity: sha512-hIOwI+5hYGpJEc4uPRmz2ulCjAGD/N13Lukkh8cLV0i2IRk/bdZDYjgLVHj+U9Z704kLIdIO6iueGvxNur0sgw==}engines: {node: '>=10'}peerDependencies:- eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0+ eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0resolution: {integrity: sha512-aXpddVz/PQMmd69uxO98PA4iidiVNvA0xOtbpUoz1WhBd4RxOQQYqN618v68drY0hmy5uU2jy1bheKEVWBjlPw==}@@ -6346,8 +6334,8 @@ packages:resolution: {integrity: sha512-Q7lok0mqMUSf5a/AdAZkA5a/gHcO6snwQClVNNvFKCAVlxXucdU8pKydU5ZVZjBx5xr37vGbFFWtLQYreLzrZg==}engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}- resolution: {integrity: sha512-UVIOlTEWxwIopRL1wgSQYdnVDcEvs2wyaO6DGo5mXqe3r16IoCNWkR29iHhyaP4cICWjbgbmFUGAhh0GJRuGZw==}+ resolution: {integrity: sha512-EYZK6SX6zjFHST/HRytOdA/zE72Cq/bfw45LSyuwrdvcclb/gqV8RRQxywOBEWO2+WDpva6UZa4CcDeJKzUCFA==}engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}hasBin: truepeerDependencies:@@ -9189,8 +9177,8 @@ packages:resolution: {integrity: sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==}engines: {node: '>= 0.6'}- resolution: {integrity: sha512-BjIT/VwJ8+0rVO01ZQ2ZVnjE1svFBiRczcpr1t1Yxt7sT25VSbPfrJtDsQ8uQTy2pilX5nI9gwxhUyLULNentw==}+ resolution: {integrity: sha512-cBRGnW3FSlxaYwU8KfAewxFK5uzeOAp0l2KebIlPDOT5olVi65KDG/yjBooPBG0kGW/HLkoz1c/iuBFehcS3IA==}engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}peerDependencies:typescript: '*'@@ -10197,7 +10185,7 @@ snapshots:'@babel/helper-split-export-declaration': 7.24.5'@babel/parser': 7.24.5'@babel/types': 7.24.7- debug: 4.3.4+ debug: 4.3.6globals: 11.12.0transitivePeerDependencies:- supports-color@@ -10212,7 +10200,7 @@ snapshots:'@babel/helper-split-export-declaration': 7.22.6'@babel/parser': 7.24.1'@babel/types': 7.24.7- debug: 4.3.4+ debug: 4.3.6globals: 11.12.0transitivePeerDependencies:- supports-color@@ -10823,17 +10811,13 @@ snapshots:'@esbuild/[email protected]':optional: truedependencies:- eslint: 9.12.0([email protected])+ eslint: 9.13.0([email protected])eslint-visitor-keys: 3.4.3'@eslint-community/[email protected]': {}- optionalDependencies:- eslint: 9.12.0([email protected])-'@eslint/[email protected]':dependencies:'@eslint/object-schema': 2.1.4@@ -10842,7 +10826,7 @@ snapshots:transitivePeerDependencies:- supports-color- '@eslint/[email protected]': {}+ '@eslint/[email protected]': {}'@eslint/[email protected]':dependencies:@@ -10858,7 +10842,7 @@ snapshots:transitivePeerDependencies:- supports-color- '@eslint/[email protected]': {}+ '@eslint/[email protected]': {}'@eslint/[email protected]': {}@@ -12935,15 +12919,15 @@ snapshots:dependencies:'@types/yargs-parser': 21.0.0- '@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])':+ '@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])':dependencies:'@eslint-community/regexpp': 4.11.0- '@typescript-eslint/scope-manager': 8.8.0- '@typescript-eslint/visitor-keys': 8.8.0- eslint: 9.12.0([email protected])+ '@typescript-eslint/scope-manager': 8.11.0+ '@typescript-eslint/visitor-keys': 8.11.0+ eslint: 9.13.0([email protected])graphemer: 1.4.0ignore: 5.3.1natural-compare: 1.4.0@@ -12953,28 +12937,28 @@ snapshots:transitivePeerDependencies:- supports-colordependencies:- '@typescript-eslint/scope-manager': 8.8.0- '@typescript-eslint/types': 8.8.0- '@typescript-eslint/typescript-estree': 8.8.0([email protected])- '@typescript-eslint/visitor-keys': 8.8.0+ '@typescript-eslint/scope-manager': 8.11.0+ '@typescript-eslint/types': 8.11.0+ '@typescript-eslint/typescript-estree': 8.11.0([email protected])+ '@typescript-eslint/visitor-keys': 8.11.0debug: 4.3.6- eslint: 9.12.0([email protected])+ eslint: 9.13.0([email protected])optionalDependencies:typescript: 5.5.2transitivePeerDependencies:- supports-color- '@typescript-eslint/[email protected]':+ '@typescript-eslint/[email protected]':dependencies:- '@typescript-eslint/types': 8.8.0- '@typescript-eslint/visitor-keys': 8.8.0+ '@typescript-eslint/types': 8.11.0+ '@typescript-eslint/visitor-keys': 8.11.0dependencies:- '@typescript-eslint/typescript-estree': 8.8.0([email protected])+ '@typescript-eslint/typescript-estree': 8.11.0([email protected])debug: 4.3.6ts-api-utils: 1.3.0([email protected])optionalDependencies:@@ -12983,37 +12967,37 @@ snapshots:- eslint- supports-color- '@typescript-eslint/[email protected]': {}+ '@typescript-eslint/[email protected]': {}- '@typescript-eslint/[email protected]([email protected])':+ '@typescript-eslint/[email protected]([email protected])':dependencies:- '@typescript-eslint/types': 8.8.0- '@typescript-eslint/visitor-keys': 8.8.0+ '@typescript-eslint/types': 8.11.0+ '@typescript-eslint/visitor-keys': 8.11.0debug: 4.3.6fast-glob: 3.3.2is-glob: 4.0.3minimatch: 9.0.4- semver: 7.6.2+ semver: 7.6.3ts-api-utils: 1.3.0([email protected])optionalDependencies:typescript: 5.5.2transitivePeerDependencies:- supports-colordependencies:- '@eslint-community/eslint-utils': 4.4.0([email protected]([email protected]))- '@typescript-eslint/scope-manager': 8.8.0- '@typescript-eslint/types': 8.8.0- '@typescript-eslint/typescript-estree': 8.8.0([email protected])- eslint: 9.12.0([email protected])+ '@eslint-community/eslint-utils': 4.4.0([email protected]([email protected]))+ '@typescript-eslint/scope-manager': 8.11.0+ '@typescript-eslint/types': 8.11.0+ '@typescript-eslint/typescript-estree': 8.11.0([email protected])+ eslint: 9.13.0([email protected])transitivePeerDependencies:- supports-color- typescript- '@typescript-eslint/[email protected]':+ '@typescript-eslint/[email protected]':dependencies:- '@typescript-eslint/types': 8.8.0+ '@typescript-eslint/types': 8.11.0eslint-visitor-keys: 3.4.3'@unocss/[email protected]': {}@@ -13229,7 +13213,7 @@ snapshots:dependencies:- debug: 4.3.4+ debug: 4.3.6transitivePeerDependencies:- supports-color@@ -14205,18 +14189,18 @@ snapshots:optionalDependencies:source-map: 0.6.1dependencies:- eslint: 9.12.0([email protected])+ eslint: 9.13.0([email protected])dependencies:'@babel/helper-validator-identifier': 7.24.7- '@eslint-community/eslint-utils': 4.4.0([email protected]([email protected]))+ '@eslint-community/eslint-utils': 4.4.0([email protected]([email protected]))ci-info: 4.0.0clean-regexp: 1.0.0core-js-compat: 3.38.1- eslint: 9.12.0([email protected])+ eslint: 9.13.0([email protected])esquery: 1.6.0globals: 15.9.0indent-string: 4.0.0@@ -14238,14 +14222,14 @@ snapshots:dependencies:- '@eslint-community/eslint-utils': 4.4.0([email protected]([email protected]))+ '@eslint-community/eslint-utils': 4.4.0([email protected]([email protected]))'@eslint-community/regexpp': 4.11.0'@eslint/config-array': 0.18.0- '@eslint/core': 0.6.0+ '@eslint/core': 0.7.0'@eslint/eslintrc': 3.1.0- '@eslint/js': 9.12.0+ '@eslint/js': 9.13.0'@eslint/plugin-kit': 0.2.0'@humanfs/node': 0.16.5'@humanwhocodes/module-importer': 1.0.1@@ -15056,7 +15040,7 @@ snapshots:dependencies:- debug: 4.3.4+ debug: 4.3.6istanbul-lib-coverage: 3.2.0source-map: 0.6.1transitivePeerDependencies:@@ -17762,11 +17746,11 @@ snapshots:media-typer: 0.3.0mime-types: 2.1.35dependencies:- '@typescript-eslint/eslint-plugin': 8.8.0(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])+ '@typescript-eslint/eslint-plugin': 8.11.0(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])optionalDependencies:typescript: 5.5.2transitivePeerDependencies: