mirror of
https://github.com/langgenius/dify.git
synced 2026-08-24 04:13:41 -04:00
e3b8e26192
# Conflicts: # api/openapi/markdown/console-openapi.md # api/services/agent_config_service.py # api/tests/unit_tests/services/agent/test_skill_standardize_service.py # knip.config.ts # oxlint-suppressions.json # packages/contracts/generated/api/console/agent/zod.gen.ts # packages/contracts/generated/api/console/apps/zod.gen.ts
65 lines
1.8 KiB
TypeScript
65 lines
1.8 KiB
TypeScript
import type { KnipConfig } from 'knip'
|
|
|
|
/**
|
|
* @see https://knip.dev/reference/configuration
|
|
*/
|
|
const config: KnipConfig = {
|
|
compilers: {
|
|
mdx: true,
|
|
},
|
|
workspaces: {
|
|
web: {
|
|
entry: [
|
|
'scripts/**/*.{js,ts,mjs}',
|
|
'bin/**/*.{js,ts,mjs}',
|
|
'tsslint.config.ts',
|
|
'dev-proxy.config.ts',
|
|
'plugins/eslint/index.js',
|
|
// Consumed by the dify-marketplace repository, which mounts this
|
|
// repo as a submodule and imports these modules via path aliases.
|
|
'app/components/plugins/marketplace/index.tsx',
|
|
'app/components/plugins/marketplace/home/marketplace-live-search.tsx',
|
|
'app/components/plugins/marketplace/home/marketplace-search-autocomplete.tsx',
|
|
],
|
|
project: [
|
|
'**/*.{js,mjs,cjs,jsx,ts,tsx,mts,cts,css,mdx}!',
|
|
'!**/__mocks__/**!',
|
|
'!**/__tests__/**!',
|
|
'!**/*.stories.{js,jsx,ts,tsx,mdx}!',
|
|
'!.storybook/**!',
|
|
'!plugins/**!',
|
|
'!test/**!',
|
|
'!vitest.browser.setup.ts!',
|
|
'!vitest.setup.ts!',
|
|
],
|
|
ignore: ['public/**'],
|
|
ignoreFiles: [
|
|
'features/agent-v2/agent-detail/configure/components/orchestrate/memory.tsx',
|
|
'features/agent-v2/agent-detail/configure/components/orchestrate/prompt-editor/option-menu.tsx',
|
|
'i18n-config/locale-resources/*.ts',
|
|
],
|
|
ignoreDependencies: ['@iconify-json/*', '@storybook/addon-onboarding'],
|
|
},
|
|
},
|
|
/// keep-sorted
|
|
rules: {
|
|
binaries: 'warn',
|
|
catalog: 'error',
|
|
dependencies: 'error',
|
|
devDependencies: 'warn',
|
|
duplicates: 'error',
|
|
enumMembers: 'error',
|
|
exports: 'error',
|
|
files: 'error',
|
|
namespaceMembers: 'error',
|
|
nsExports: 'error',
|
|
nsTypes: 'error',
|
|
optionalPeerDependencies: 'error',
|
|
types: 'error',
|
|
unlisted: 'error',
|
|
unresolved: 'error',
|
|
},
|
|
}
|
|
|
|
export default config
|