mirror of
https://github.com/langgenius/dify.git
synced 2026-03-26 05:29:50 +08:00
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Stephen Zhou <38493346+hyoban@users.noreply.github.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
49 lines
900 B
TypeScript
49 lines
900 B
TypeScript
import type { KnipConfig } from 'knip'
|
|
|
|
/**
|
|
* @see https://knip.dev/reference/configuration
|
|
*/
|
|
const config: KnipConfig = {
|
|
entry: [
|
|
'scripts/**/*.{js,ts,mjs}',
|
|
'bin/**/*.{js,ts,mjs}',
|
|
],
|
|
ignore: [
|
|
'i18n/**',
|
|
'public/**',
|
|
],
|
|
ignoreBinaries: [
|
|
'only-allow',
|
|
],
|
|
ignoreDependencies: [
|
|
'@iconify-json/*',
|
|
|
|
'@storybook/addon-onboarding',
|
|
|
|
// vinext related
|
|
'react-server-dom-webpack',
|
|
'@vitejs/plugin-rsc',
|
|
'@mdx-js/rollup',
|
|
|
|
'@tsslint/compat-eslint',
|
|
'@tsslint/config',
|
|
],
|
|
rules: {
|
|
files: 'warn',
|
|
dependencies: 'error',
|
|
devDependencies: 'error',
|
|
optionalPeerDependencies: 'error',
|
|
unlisted: 'warn',
|
|
unresolved: 'warn',
|
|
exports: 'warn',
|
|
nsExports: 'warn',
|
|
classMembers: 'warn',
|
|
types: 'warn',
|
|
nsTypes: 'warn',
|
|
enumMembers: 'warn',
|
|
duplicates: 'warn',
|
|
},
|
|
}
|
|
|
|
export default config
|