Skip to content

Instantly share code, notes, and snippets.

@mizdra
Last active December 27, 2021 05:42
Show Gist options
  • Save mizdra/f1596baccc0a6f454a7c8310fb3258cc to your computer and use it in GitHub Desktop.
Save mizdra/f1596baccc0a6f454a7c8310fb3258cc to your computer and use it in GitHub Desktop.
The dependencies graph of eslint-interactive
/** @type {import('dependency-cruiser').IConfiguration} */
module.exports = {
options: {
exclude: {
path: '^src/(types|cli|util|typings)',
},
doNotFollow: {
path: 'node_modules',
dependencyTypes: ['npm', 'npm-dev', 'npm-optional', 'npm-peer', 'npm-bundled', 'npm-no-pkg'],
},
includeOnly: '^src',
tsPreCompilationDeps: true,
tsConfig: {
fileName: 'tsconfig.src.json',
},
enhancedResolveOptions: {
exportsFields: ['exports'],
conditionNames: ['import', 'require', 'node', 'default'],
},
reporterOptions: {
dot: {
collapsePattern: '^src/(cli|util)',
},
archi: {
collapsePattern: '^(packages|src|lib|app|bin|test(s?)|spec(s?))/[^/]+|node_modules/[^/]+',
},
},
},
};
// generated: [email protected] on 2021-12-26T18:00:01.364Z
$ brew install graphviz
$ git clone [email protected]:mizdra/eslint-interactive.git
$ cd eslint-interactive
$ npx -p [email protected] -p dependency-cruiser@latest depcruise --config .dependency-cruiser.js --output-type dot src | dot -T svg > dependencygraph.svg
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment