style: enable no-extraneous-dependencies lint rule (#4575)

This commit is contained in:
LongYinan
2023-10-11 01:51:47 +08:00
committed by GitHub
parent c8d1de3a59
commit b1eb926b7b
25 changed files with 467 additions and 323 deletions

View File

@@ -12,10 +12,12 @@
"devDependencies": {
"@clack/core": "^0.3.3",
"@clack/prompts": "^0.7.0",
"@magic-works/i18n-codegen": "^0.5.0",
"ts-node": "^10.9.1"
},
"dependencies": {
"dotenv": "^16.3.1"
"dotenv": "^16.3.1",
"vite": "^4.4.11"
},
"peerDependencies": {
"ts-node": "*"

View File

@@ -11,12 +11,13 @@
"@blocksuite/blocks": "*",
"@blocksuite/editor": "*",
"@blocksuite/global": "*",
"@blocksuite/icons": "*",
"@blocksuite/icons": "2.1.34",
"@blocksuite/lit": "*",
"@blocksuite/store": "*"
},
"dependencies": {
"@affine/debug": "workspace:*",
"@affine/graphql": "workspace:*",
"@affine/i18n": "workspace:*",
"@affine/workspace": "workspace:*",
"@dnd-kit/core": "^6.0.8",
@@ -28,7 +29,7 @@
"@emotion/styled": "^11.11.0",
"@mui/base": "5.0.0-beta.13",
"@mui/icons-material": "^5.14.7",
"@mui/material": "^5.14.7",
"@mui/material": "^5.14.12",
"@popperjs/core": "^2.11.8",
"@radix-ui/react-avatar": "^1.0.3",
"@radix-ui/react-collapsible": "^1.0.3",
@@ -42,32 +43,43 @@
"check-password-strength": "^2.0.7",
"clsx": "^2.0.0",
"dayjs": "^1.11.10",
"jotai": "^2.4.2",
"foxact": "^0.2.20",
"jotai": "^2.4.3",
"lit": "^2.8.0",
"lodash": "^4.17.21",
"lottie-react": "^2.4.0",
"lottie-web": "^5.12.2",
"nanoid": "^5.0.1",
"next-themes": "^0.2.1",
"react": "18.2.0",
"react-datepicker": "^4.18.0",
"react-dom": "18.2.0",
"react-error-boundary": "^4.0.11",
"react-is": "^18.2.0",
"react-paginate": "^8.2.0",
"rxjs": "^7.8.1"
"react-router-dom": "^6.16.0",
"rxjs": "^7.8.1",
"uuid": "^9.0.1"
},
"devDependencies": {
"@blocksuite/blocks": "0.0.0-20230926212737-6d4b1569-nightly",
"@blocksuite/editor": "0.0.0-20230926212737-6d4b1569-nightly",
"@blocksuite/global": "0.0.0-20230926212737-6d4b1569-nightly",
"@blocksuite/icons": "^2.1.33",
"@blocksuite/icons": "2.1.34",
"@blocksuite/lit": "0.0.0-20230926212737-6d4b1569-nightly",
"@blocksuite/store": "0.0.0-20230926212737-6d4b1569-nightly",
"@storybook/jest": "^0.2.3",
"@storybook/testing-library": "^0.2.2",
"@testing-library/react": "^14.0.0",
"@types/react": "^18.2.22",
"@types/react-datepicker": "^4.15.0",
"@types/react-dnd": "^3.0.2",
"@types/react-dom": "^18.2.7",
"@vanilla-extract/css": "^1.13.0",
"fake-indexeddb": "^4.0.2",
"typescript": "^5.2.2",
"vite": "^4.4.9",
"vite": "^4.4.11",
"vitest": "0.34.6",
"yjs": "^13.6.8"
},
"version": "0.9.0-canary.13"

View File

@@ -1,4 +1,3 @@
import { FlexWrapper } from '@affine/component';
import type { Collection, Filter } from '@affine/env/filter';
import type { PropertiesMeta } from '@affine/env/filter';
import type { GetPageInfoById } from '@affine/env/page-info';
@@ -11,6 +10,7 @@ import clsx from 'clsx';
import type { MouseEvent } from 'react';
import { useCallback, useState } from 'react';
import { FlexWrapper } from '../../../ui/layout';
import { CreateFilterMenu } from '../filter/vars';
import type { useCollectionManager } from '../use-collection-manager';
import * as styles from './collection-list.css';

View File

@@ -1,4 +1,3 @@
import { RadioButton, RadioButtonGroup, Switch } from '@affine/component';
import { WorkspaceFlavour } from '@affine/env/workspace';
import { useAFFiNEI18N } from '@affine/i18n/hooks';
import { ArrowRightSmallIcon, WebIcon } from '@blocksuite/icons';
@@ -7,7 +6,9 @@ import { Menu, MenuItem, MenuTrigger } from '@toeverything/components/menu';
import { useState } from 'react';
import { useCallback } from 'react';
import { RadioButton, RadioButtonGroup } from '../../ui/button';
import Input from '../../ui/input';
import { Switch } from '../../ui/switch';
import { toast } from '../../ui/toast';
import { PublicLinkDisableModal } from './disable-public-link';
import * as styles from './index.css';

View File

@@ -6,7 +6,8 @@
"debug": "^4.3.4"
},
"devDependencies": {
"@types/debug": "^4.1.9"
"@types/debug": "^4.1.9",
"vitest": "0.34.6"
},
"version": "0.9.0-canary.13"
}

View File

@@ -8,7 +8,8 @@
"@blocksuite/global": "0.0.0-20230926212737-6d4b1569-nightly",
"react": "18.2.0",
"react-dom": "18.2.0",
"zod": "^3.22.2"
"vitest": "0.34.6",
"zod": "^3.22.4"
},
"exports": {
"./automation": "./src/automation.ts",

View File

@@ -16,7 +16,8 @@
"@graphql-codegen/typescript-operations": "^4.0.1",
"@types/lodash-es": "^4.17.9",
"lodash-es": "^4.17.21",
"prettier": "^3.0.3"
"prettier": "^3.0.3",
"vitest": "0.34.6"
},
"scripts": {
"postinstall": "gql-gen"

View File

@@ -7,7 +7,10 @@
"private": true,
"dependencies": {
"foxact": "^0.2.20",
"lodash.debounce": "^4.0.8"
"jotai": "^2.4.3",
"lodash.debounce": "^4.0.8",
"react": "18.2.0",
"swr": "2.2.0"
},
"devDependencies": {
"@affine/env": "workspace:*",
@@ -18,7 +21,10 @@
"@blocksuite/global": "0.0.0-20230926212737-6d4b1569-nightly",
"@blocksuite/lit": "0.0.0-20230926212737-6d4b1569-nightly",
"@blocksuite/store": "0.0.0-20230926212737-6d4b1569-nightly",
"@types/lodash.debounce": "^4.0.7"
"@testing-library/react": "^14.0.0",
"@types/lodash.debounce": "^4.0.7",
"fake-indexeddb": "^4.0.2",
"vitest": "0.34.6"
},
"peerDependencies": {
"@affine/y-provider": "workspace:*",

View File

@@ -58,18 +58,23 @@
"@blocksuite/blocks": "0.0.0-20230926212737-6d4b1569-nightly",
"@blocksuite/global": "0.0.0-20230926212737-6d4b1569-nightly",
"@blocksuite/store": "0.0.0-20230926212737-6d4b1569-nightly",
"jotai": "^2.4.2",
"jotai": "^2.4.3",
"tinykeys": "^2.1.0",
"zod": "^3.22.2"
"zod": "^3.22.4"
},
"devDependencies": {
"@affine-test/fixtures": "workspace:*",
"@blocksuite/editor": "0.0.0-20230926212737-6d4b1569-nightly",
"@blocksuite/lit": "0.0.0-20230926212737-6d4b1569-nightly",
"@testing-library/react": "^14.0.0",
"async-call-rpc": "^6.3.1",
"electron": "link:../../apps/electron/node_modules/electron",
"nanoid": "^5.0.1",
"react": "^18.2.0",
"vite": "^4.4.9",
"rxjs": "^7.8.1",
"vite": "^4.4.11",
"vite-plugin-dts": "3.5.4",
"vitest": "0.34.6",
"yjs": "^13.6.8"
},
"peerDependencies": {

View File

@@ -26,11 +26,11 @@
"@blocksuite/blocks": "0.0.0-20230926212737-6d4b1569-nightly",
"@blocksuite/global": "0.0.0-20230926212737-6d4b1569-nightly",
"@blocksuite/store": "0.0.0-20230926212737-6d4b1569-nightly",
"jotai": "^2.4.2",
"zod": "^3.22.2"
"jotai": "^2.4.3",
"zod": "^3.22.4"
},
"devDependencies": {
"vite": "^4.4.9",
"vite": "^4.4.11",
"vite-plugin-dts": "3.5.4"
}
}

View File

@@ -24,20 +24,26 @@
"@toeverything/hooks": "workspace:*",
"@toeverything/y-indexeddb": "workspace:*",
"async-call-rpc": "^6.3.1",
"jotai": "^2.4.2",
"jotai": "^2.4.3",
"js-base64": "^3.7.5",
"ky": "^1.0.1",
"lib0": "^0.2.85",
"nanoid": "^5.0.1",
"next-auth": "^4.23.2",
"react": "18.2.0",
"react-dom": "18.2.0",
"socket.io-client": "^4.7.2",
"swr": "2.2.0",
"valtio": "^1.11.2",
"y-protocols": "^1.0.6",
"yjs": "^13.6.8",
"zod": "^3.22.2"
"zod": "^3.22.4"
},
"devDependencies": {
"@testing-library/react": "^14.0.0",
"@types/ws": "^8.5.5",
"fake-indexeddb": "^4.0.2",
"vitest": "0.34.6",
"ws": "^8.14.2"
},
"version": "0.9.0-canary.13"

View File

@@ -34,14 +34,17 @@
}
},
"dependencies": {
"idb": "^7.1.1"
"idb": "^7.1.1",
"nanoid": "^5.0.1"
},
"devDependencies": {
"@affine/y-provider": "workspace:*",
"@blocksuite/blocks": "0.0.0-20230926212737-6d4b1569-nightly",
"@blocksuite/store": "0.0.0-20230926212737-6d4b1569-nightly",
"vite": "^4.4.9",
"fake-indexeddb": "^4.0.2",
"vite": "^4.4.11",
"vite-plugin-dts": "3.5.4",
"vitest": "0.34.6",
"y-indexeddb": "^9.0.11"
},
"peerDependencies": {