@voiceflow/dependency-cruiser-config 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/README.md +7 -0
  2. package/build/config.d.ts +3 -0
  3. package/build/config.js +213 -0
  4. package/build/config.js.map +1 -0
  5. package/build/index.d.ts +5 -0
  6. package/build/index.js +21 -0
  7. package/build/index.js.map +1 -0
  8. package/build/rules/index.d.ts +12 -0
  9. package/build/rules/index.js +31 -0
  10. package/build/rules/index.js.map +1 -0
  11. package/build/rules/noCircular.d.ts +3 -0
  12. package/build/rules/noCircular.js +14 -0
  13. package/build/rules/noCircular.js.map +1 -0
  14. package/build/rules/noDeprecatedCore.d.ts +3 -0
  15. package/build/rules/noDeprecatedCore.js +37 -0
  16. package/build/rules/noDeprecatedCore.js.map +1 -0
  17. package/build/rules/noDuplicateDepTypes.d.ts +3 -0
  18. package/build/rules/noDuplicateDepTypes.js +15 -0
  19. package/build/rules/noDuplicateDepTypes.js.map +1 -0
  20. package/build/rules/noNonPackage.d.ts +3 -0
  21. package/build/rules/noNonPackage.js +16 -0
  22. package/build/rules/noNonPackage.js.map +1 -0
  23. package/build/rules/noOrphans.d.ts +3 -0
  24. package/build/rules/noOrphans.js +23 -0
  25. package/build/rules/noOrphans.js.map +1 -0
  26. package/build/rules/notToDeprecated.d.ts +3 -0
  27. package/build/rules/notToDeprecated.js +14 -0
  28. package/build/rules/notToDeprecated.js.map +1 -0
  29. package/build/rules/notToDevDep.d.ts +3 -0
  30. package/build/rules/notToDevDep.js +20 -0
  31. package/build/rules/notToDevDep.js.map +1 -0
  32. package/build/rules/notToSpec.d.ts +3 -0
  33. package/build/rules/notToSpec.js +15 -0
  34. package/build/rules/notToSpec.js.map +1 -0
  35. package/build/rules/notToTest.d.ts +3 -0
  36. package/build/rules/notToTest.js +17 -0
  37. package/build/rules/notToTest.js.map +1 -0
  38. package/build/rules/notToUnresolvable.d.ts +3 -0
  39. package/build/rules/notToUnresolvable.js +14 -0
  40. package/build/rules/notToUnresolvable.js.map +1 -0
  41. package/build/rules/warnOptionalDeps.d.ts +3 -0
  42. package/build/rules/warnOptionalDeps.js +16 -0
  43. package/build/rules/warnOptionalDeps.js.map +1 -0
  44. package/build/rules/warnPeerDeps.d.ts +3 -0
  45. package/build/rules/warnPeerDeps.js +16 -0
  46. package/build/rules/warnPeerDeps.js.map +1 -0
  47. package/package.json +79 -0
package/README.md ADDED
@@ -0,0 +1,7 @@
1
+ # dependency-cruiser-config
2
+
3
+ ## Install
4
+
5
+ ```bash
6
+ yarn add -D @voiceflow/dependency-cruiser-config
7
+ ```
@@ -0,0 +1,3 @@
1
+ import { IConfiguration } from 'dependency-cruiser';
2
+ declare const createConfig: () => IConfiguration;
3
+ export default createConfig;
@@ -0,0 +1,213 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const rules_1 = require("./rules");
4
+ const createConfig = () => ({
5
+ forbidden: [
6
+ /* rules from the 'recommended' preset: */
7
+ rules_1.noCircularRule(),
8
+ rules_1.noOrphansRule(),
9
+ rules_1.noDeprecatedCoreRule(),
10
+ rules_1.notToDeprecatedRule(),
11
+ rules_1.noNonPackageRule(),
12
+ rules_1.notToUnresolvableRule(),
13
+ rules_1.noDuplicateDepTypesRule(),
14
+ /* rules you might want to tweak for your specific situation: */
15
+ rules_1.notToTestRule(),
16
+ rules_1.notToSpecRule(),
17
+ rules_1.notToDevDepRule(),
18
+ rules_1.warnOptionalDepsRule(),
19
+ rules_1.warnPeerDepsRule(),
20
+ ],
21
+ options: {
22
+ /* conditions specifying which files not to follow further when encountered:
23
+ - path: a regular expression to match
24
+ - dependencyTypes: see https://github.com/sverweij/dependency-cruiser/blob/master/doc/rules-reference.md#dependencytypes
25
+ for a complete list
26
+ */
27
+ doNotFollow: {
28
+ path: 'node_modules',
29
+ dependencyTypes: ['npm', 'npm-dev', 'npm-optional', 'npm-peer', 'npm-bundled', 'npm-no-pkg'],
30
+ },
31
+ /* conditions specifying which dependencies to exclude
32
+ - path: a regular expression to match
33
+ - dynamic: a boolean indicating whether to ignore dynamic (true) or static (false) dependencies.
34
+ leave out if you want to exclude neither (recommended!)
35
+ */
36
+ // exclude : {
37
+ // path: '',
38
+ // dynamic: true
39
+ // },
40
+ /* pattern specifying which files to include (regular expression)
41
+ dependency-cruiser will skip everything not matching this pattern
42
+ */
43
+ // includeOnly : '',
44
+ /* dependency-cruiser will include modules matching against the focus
45
+ regular expression in its output, as well as their neighbours (direct
46
+ dependencies and dependents)
47
+ */
48
+ // focus : '',
49
+ /* list of module systems to cruise */
50
+ // moduleSystems: ['amd', 'cjs', 'es6', 'tsd'],
51
+ /* prefix for links in html and svg output (e.g. 'https://github.com/you/yourrepo/blob/develop/'
52
+ to open it on your online repo or `vscode://file/${process.cwd()}/` to
53
+ open it in visual studio code),
54
+ */
55
+ // prefix: '',
56
+ /* false (the default): ignore dependencies that only exist before typescript-to-javascript compilation
57
+ true: also detect dependencies that only exist before typescript-to-javascript compilation
58
+ "specify": for each dependency identify whether it only exists before compilation or also after
59
+ */
60
+ tsPreCompilationDeps: true,
61
+ /* list of extensions (typically non-parseable) to scan. Empty by default. */
62
+ // extraExtensionsToScan: [".json", ".jpg", ".png", ".svg", ".webp"],
63
+ /* if true combines the package.jsons found from the module up to the base
64
+ folder the cruise is initiated from. Useful for how (some) mono-repos
65
+ manage dependencies & dependency definitions.
66
+ */
67
+ // combinedDependencies: false,
68
+ /* if true leave symlinks untouched, otherwise use the realpath */
69
+ // preserveSymlinks: false,
70
+ /* TypeScript project file ('tsconfig.json') to use for
71
+ (1) compilation and
72
+ (2) resolution (e.g. with the paths property)
73
+
74
+ The (optional) fileName attribute specifies which file to take (relative to
75
+ dependency-cruiser's current working directory). When not provided
76
+ defaults to './tsconfig.json'.
77
+ */
78
+ tsConfig: {
79
+ fileName: 'tsconfig.json',
80
+ },
81
+ /* Webpack configuration to use to get resolve options from.
82
+
83
+ The (optional) fileName attribute specifies which file to take (relative
84
+ to dependency-cruiser's current working directory. When not provided defaults
85
+ to './webpack.conf.js'.
86
+
87
+ The (optional) `env` and `args` attributes contain the parameters to be passed if
88
+ your webpack config is a function and takes them (see webpack documentation
89
+ for details)
90
+ */
91
+ // webpackConfig: {
92
+ // fileName: './webpack.config.js',
93
+ // env: {},
94
+ // args: {},
95
+ // },
96
+ /* Babel config ('.babelrc', '.babelrc.json', '.babelrc.json5', ...) to use
97
+ for compilation (and whatever other naughty things babel plugins do to
98
+ source code). This feature is well tested and usable, but might change
99
+ behavior a bit over time (e.g. more precise results for used module
100
+ systems) without dependency-cruiser getting a major version bump.
101
+ */
102
+ // babelConfig: {
103
+ // fileName: './.babelrc'
104
+ // },
105
+ /* List of strings you have in use in addition to cjs/ es6 requires
106
+ & imports to declare module dependencies. Use this e.g. if you've
107
+ redeclared require, use a require-wrapper or use window.require as
108
+ a hack.
109
+ */
110
+ // exoticRequireStrings: [],
111
+ /* options to pass on to enhanced-resolve, the package dependency-cruiser
112
+ uses to resolve module references to disk. You can set most of these
113
+ options in a webpack.conf.js - this section is here for those
114
+ projects that don't have a separate webpack config file.
115
+
116
+ Note: settings in webpack.conf.js override the ones specified here.
117
+ */
118
+ enhancedResolveOptions: {
119
+ /* List of strings to consider as 'exports' fields in package.json. Use
120
+ ['exports'] when you use packages that use such a field and your environment
121
+ supports it (e.g. node ^12.19 || >=14.7 or recent versions of webpack).
122
+
123
+ If you have an `exportsFields` attribute in your webpack config, that one
124
+ will have precedence over the one specified here.
125
+ */
126
+ exportsFields: ['exports'],
127
+ /* List of conditions to check for in the exports field. e.g. use ['imports']
128
+ if you're only interested in exposed es6 modules, ['require'] for commonjs,
129
+ or all conditions at once `(['import', 'require', 'node', 'default']`)
130
+ if anything goes for you. Only works when the 'exportsFields' array is
131
+ non-empty.
132
+
133
+ If you have a 'conditionNames' attribute in your webpack config, that one will
134
+ have precedence over the one specified here.
135
+ */
136
+ conditionNames: ['import', 'require', 'node', 'default'],
137
+ },
138
+ reporterOptions: {
139
+ dot: {
140
+ /* pattern of modules that can be consolidated in the detailed
141
+ graphical dependency graph. The default pattern in this configuration
142
+ collapses everything in node_modules to one folder deep so you see
143
+ the external modules, but not the innards your app depends upon.
144
+ */
145
+ collapsePattern: 'node_modules/[^/]+',
146
+ /* Options to tweak the appearance of your graph.See
147
+ https://github.com/sverweij/dependency-cruiser/blob/master/doc/options-reference.md#reporteroptions
148
+ for details and some examples. If you don't specify a theme
149
+ don't worry - dependency-cruiser will fall back to the default one.
150
+ */
151
+ // theme: {
152
+ // graph: {
153
+ // /* use splines: "ortho" for straight lines. Be aware though
154
+ // graphviz might take a long time calculating ortho(gonal)
155
+ // routings.
156
+ // */
157
+ // splines: "true"
158
+ // },
159
+ // modules: [
160
+ // {
161
+ // criteria: { source: "^src/model" },
162
+ // attributes: { fillcolor: "#ccccff" }
163
+ // },
164
+ // {
165
+ // criteria: { source: "^src/view" },
166
+ // attributes: { fillcolor: "#ccffcc" }
167
+ // }
168
+ // ],
169
+ // dependencies: [
170
+ // {
171
+ // criteria: { "rules[0].severity": "error" },
172
+ // attributes: { fontcolor: "red", color: "red" }
173
+ // },
174
+ // {
175
+ // criteria: { "rules[0].severity": "warn" },
176
+ // attributes: { fontcolor: "orange", color: "orange" }
177
+ // },
178
+ // {
179
+ // criteria: { "rules[0].severity": "info" },
180
+ // attributes: { fontcolor: "blue", color: "blue" }
181
+ // },
182
+ // {
183
+ // criteria: { resolved: "^src/model" },
184
+ // attributes: { color: "#0000ff77" }
185
+ // },
186
+ // {
187
+ // criteria: { resolved: "^src/view" },
188
+ // attributes: { color: "#00770077" }
189
+ // }
190
+ // ]
191
+ // }
192
+ },
193
+ archi: {
194
+ /* pattern of modules that can be consolidated in the high level
195
+ graphical dependency graph. If you use the high level graphical
196
+ dependency graph reporter (`archi`) you probably want to tweak
197
+ this collapsePattern to your situation.
198
+ */
199
+ collapsePattern: '^(packages|src|lib|app|bin|test(s?)|spec(s?))/[^/]+|node_modules/[^/]+',
200
+ /* Options to tweak the appearance of your graph.See
201
+ https://github.com/sverweij/dependency-cruiser/blob/master/doc/options-reference.md#reporteroptions
202
+ for details and some examples. If you don't specify a theme
203
+ for 'archi' dependency-cruiser will use the one specified in the
204
+ dot section (see above), if any, and otherwise use the default one.
205
+ */
206
+ // theme: {
207
+ // },
208
+ },
209
+ },
210
+ },
211
+ });
212
+ exports.default = createConfig;
213
+ //# sourceMappingURL=config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":";;AAEA,mCAaiB;AAEjB,MAAM,YAAY,GAAG,GAAmB,EAAE,CAAC,CAAC;IAC1C,SAAS,EAAE;QACT,0CAA0C;QAC1C,sBAAc,EAAE;QAChB,qBAAa,EAAE;QACf,4BAAoB,EAAE;QACtB,2BAAmB,EAAE;QACrB,wBAAgB,EAAE;QAClB,6BAAqB,EAAE;QACvB,+BAAuB,EAAE;QAEzB,gEAAgE;QAChE,qBAAa,EAAE;QACf,qBAAa,EAAE;QACf,uBAAe,EAAE;QACjB,4BAAoB,EAAE;QACtB,wBAAgB,EAAE;KACnB;IACD,OAAO,EAAE;QACP;;;;UAIE;QACF,WAAW,EAAE;YACX,IAAI,EAAE,cAAc;YACpB,eAAe,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,UAAU,EAAE,aAAa,EAAE,YAAY,CAAC;SAC7F;QAED;;;;UAIE;QACF,cAAc;QACd,cAAc;QACd,kBAAkB;QAClB,KAAK;QAEL;;UAEE;QACF,oBAAoB;QAEpB;;;UAGE;QACF,cAAc;QAEd,sCAAsC;QACtC,+CAA+C;QAE/C;;;WAGG;QACH,cAAc;QAEd;;;WAGG;QACH,oBAAoB,EAAE,IAAI;QAE1B,6EAA6E;QAC7E,qEAAqE;QAErE;;;WAGG;QACH,+BAA+B;QAE/B,kEAAkE;QAClE,2BAA2B;QAE3B;;;;;;;WAOG;QACH,QAAQ,EAAE;YACR,QAAQ,EAAE,eAAe;SAC1B;QAED;;;;;;;;;WASG;QACH,mBAAmB;QACnB,oCAAoC;QACpC,YAAY;QACZ,aAAa;QACb,KAAK;QAEL;;;;;WAKG;QACH,iBAAiB;QACjB,2BAA2B;QAC3B,KAAK;QAEL;;;;UAIE;QACF,4BAA4B;QAC5B;;;;;;WAMG;QACH,sBAAsB,EAAE;YACtB;;;;;;cAME;YACF,aAAa,EAAE,CAAC,SAAS,CAAC;YAC1B;;;;;;;;cAQE;YACF,cAAc,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,CAAC;SACzD;QACD,eAAe,EAAE;YACf,GAAG,EAAE;gBACH;;;;mBAIG;gBACH,eAAe,EAAE,oBAAoB;gBAErC;;;;kBAIE;gBACF,WAAW;gBACX,aAAa;gBACb,kEAAkE;gBAClE,iEAAiE;gBACjE,kBAAkB;gBAClB,QAAQ;gBACR,sBAAsB;gBACtB,OAAO;gBACP,eAAe;gBACf,QAAQ;gBACR,4CAA4C;gBAC5C,6CAA6C;gBAC7C,SAAS;gBACT,QAAQ;gBACR,2CAA2C;gBAC3C,6CAA6C;gBAC7C,QAAQ;gBACR,OAAO;gBACP,oBAAoB;gBACpB,QAAQ;gBACR,oDAAoD;gBACpD,uDAAuD;gBACvD,SAAS;gBACT,QAAQ;gBACR,mDAAmD;gBACnD,6DAA6D;gBAC7D,SAAS;gBACT,QAAQ;gBACR,mDAAmD;gBACnD,yDAAyD;gBACzD,SAAS;gBACT,QAAQ;gBACR,8CAA8C;gBAC9C,2CAA2C;gBAC3C,SAAS;gBACT,QAAQ;gBACR,6CAA6C;gBAC7C,2CAA2C;gBAC3C,QAAQ;gBACR,MAAM;gBACN,IAAI;aACL;YACD,KAAK,EAAE;gBACL;;;;kBAIE;gBACF,eAAe,EAAE,wEAAwE;gBAEzF;;;;;mBAKG;gBACH,WAAW;gBACX,KAAK;aACN;SACF;KACF;CACF,CAAC,CAAC;AAEH,kBAAe,YAAY,CAAC"}
@@ -0,0 +1,5 @@
1
+ import createConfig from './config';
2
+ export { createConfig };
3
+ export * from './rules';
4
+ declare const _default: import("dependency-cruiser").IConfiguration;
5
+ export default _default;
package/build/index.js ADDED
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ var __importDefault = (this && this.__importDefault) || function (mod) {
13
+ return (mod && mod.__esModule) ? mod : { "default": mod };
14
+ };
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.createConfig = void 0;
17
+ const config_1 = __importDefault(require("./config"));
18
+ exports.createConfig = config_1.default;
19
+ __exportStar(require("./rules"), exports);
20
+ exports.default = config_1.default();
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AAE3B,uBAFF,gBAAY,CAEE;AACrB,0CAAwB;AACxB,kBAAe,gBAAY,EAAE,CAAC"}
@@ -0,0 +1,12 @@
1
+ export { default as noCircularRule } from './noCircular';
2
+ export { default as noDeprecatedCoreRule } from './noDeprecatedCore';
3
+ export { default as noDuplicateDepTypesRule } from './noDuplicateDepTypes';
4
+ export { default as noNonPackageRule } from './noNonPackage';
5
+ export { default as noOrphansRule } from './noOrphans';
6
+ export { default as notToDeprecatedRule } from './notToDeprecated';
7
+ export { default as notToDevDepRule } from './notToDevDep';
8
+ export { default as notToSpecRule } from './notToSpec';
9
+ export { default as notToTestRule } from './notToTest';
10
+ export { default as notToUnresolvableRule } from './notToUnresolvable';
11
+ export { default as warnOptionalDepsRule } from './warnOptionalDeps';
12
+ export { default as warnPeerDepsRule } from './warnPeerDeps';
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.warnPeerDepsRule = exports.warnOptionalDepsRule = exports.notToUnresolvableRule = exports.notToTestRule = exports.notToSpecRule = exports.notToDevDepRule = exports.notToDeprecatedRule = exports.noOrphansRule = exports.noNonPackageRule = exports.noDuplicateDepTypesRule = exports.noDeprecatedCoreRule = exports.noCircularRule = void 0;
7
+ var noCircular_1 = require("./noCircular");
8
+ Object.defineProperty(exports, "noCircularRule", { enumerable: true, get: function () { return __importDefault(noCircular_1).default; } });
9
+ var noDeprecatedCore_1 = require("./noDeprecatedCore");
10
+ Object.defineProperty(exports, "noDeprecatedCoreRule", { enumerable: true, get: function () { return __importDefault(noDeprecatedCore_1).default; } });
11
+ var noDuplicateDepTypes_1 = require("./noDuplicateDepTypes");
12
+ Object.defineProperty(exports, "noDuplicateDepTypesRule", { enumerable: true, get: function () { return __importDefault(noDuplicateDepTypes_1).default; } });
13
+ var noNonPackage_1 = require("./noNonPackage");
14
+ Object.defineProperty(exports, "noNonPackageRule", { enumerable: true, get: function () { return __importDefault(noNonPackage_1).default; } });
15
+ var noOrphans_1 = require("./noOrphans");
16
+ Object.defineProperty(exports, "noOrphansRule", { enumerable: true, get: function () { return __importDefault(noOrphans_1).default; } });
17
+ var notToDeprecated_1 = require("./notToDeprecated");
18
+ Object.defineProperty(exports, "notToDeprecatedRule", { enumerable: true, get: function () { return __importDefault(notToDeprecated_1).default; } });
19
+ var notToDevDep_1 = require("./notToDevDep");
20
+ Object.defineProperty(exports, "notToDevDepRule", { enumerable: true, get: function () { return __importDefault(notToDevDep_1).default; } });
21
+ var notToSpec_1 = require("./notToSpec");
22
+ Object.defineProperty(exports, "notToSpecRule", { enumerable: true, get: function () { return __importDefault(notToSpec_1).default; } });
23
+ var notToTest_1 = require("./notToTest");
24
+ Object.defineProperty(exports, "notToTestRule", { enumerable: true, get: function () { return __importDefault(notToTest_1).default; } });
25
+ var notToUnresolvable_1 = require("./notToUnresolvable");
26
+ Object.defineProperty(exports, "notToUnresolvableRule", { enumerable: true, get: function () { return __importDefault(notToUnresolvable_1).default; } });
27
+ var warnOptionalDeps_1 = require("./warnOptionalDeps");
28
+ Object.defineProperty(exports, "warnOptionalDepsRule", { enumerable: true, get: function () { return __importDefault(warnOptionalDeps_1).default; } });
29
+ var warnPeerDeps_1 = require("./warnPeerDeps");
30
+ Object.defineProperty(exports, "warnPeerDepsRule", { enumerable: true, get: function () { return __importDefault(warnPeerDeps_1).default; } });
31
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":";;;;;;AAAA,2CAAyD;AAAhD,6HAAA,OAAO,OAAkB;AAClC,uDAAqE;AAA5D,yIAAA,OAAO,OAAwB;AACxC,6DAA2E;AAAlE,+IAAA,OAAO,OAA2B;AAC3C,+CAA6D;AAApD,iIAAA,OAAO,OAAoB;AACpC,yCAAuD;AAA9C,2HAAA,OAAO,OAAiB;AACjC,qDAAmE;AAA1D,uIAAA,OAAO,OAAuB;AACvC,6CAA2D;AAAlD,+HAAA,OAAO,OAAmB;AACnC,yCAAuD;AAA9C,2HAAA,OAAO,OAAiB;AACjC,yCAAuD;AAA9C,2HAAA,OAAO,OAAiB;AACjC,yDAAuE;AAA9D,2IAAA,OAAO,OAAyB;AACzC,uDAAqE;AAA5D,yIAAA,OAAO,OAAwB;AACxC,+CAA6D;AAApD,iIAAA,OAAO,OAAoB"}
@@ -0,0 +1,3 @@
1
+ import { IRegularForbiddenRuleType } from 'dependency-cruiser';
2
+ declare const noCircularRule: () => IRegularForbiddenRuleType;
3
+ export default noCircularRule;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const noCircularRule = () => ({
4
+ name: 'no-circular',
5
+ severity: 'warn',
6
+ comment: 'This dependency is part of a circular relationship. You might want to revise ' +
7
+ 'your solution (i.e. use dependency inversion, make sure the modules have a single responsibility) ',
8
+ from: {},
9
+ to: {
10
+ circular: true,
11
+ },
12
+ });
13
+ exports.default = noCircularRule;
14
+ //# sourceMappingURL=noCircular.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"noCircular.js","sourceRoot":"","sources":["../../src/rules/noCircular.ts"],"names":[],"mappings":";;AAEA,MAAM,cAAc,GAAG,GAA8B,EAAE,CAAC,CAAC;IACvD,IAAI,EAAE,aAAa;IACnB,QAAQ,EAAE,MAAM;IAChB,OAAO,EACL,+EAA+E;QAC/E,oGAAoG;IACtG,IAAI,EAAE,EAAE;IACR,EAAE,EAAE;QACF,QAAQ,EAAE,IAAI;KACf;CACF,CAAC,CAAC;AAEH,kBAAe,cAAc,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { IRegularForbiddenRuleType } from 'dependency-cruiser';
2
+ declare const noDeprecatedCoreRule: () => IRegularForbiddenRuleType;
3
+ export default noDeprecatedCoreRule;
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const noDeprecatedCoreRule = () => ({
4
+ name: 'no-deprecated-core',
5
+ comment: 'A module depends on a node core module that has been deprecated. Find an alternative - these are ' +
6
+ "bound to exist - node doesn't deprecate lightly.",
7
+ severity: 'warn',
8
+ from: {},
9
+ to: {
10
+ dependencyTypes: ['core'],
11
+ path: [
12
+ '^(v8/tools/codemap)$',
13
+ '^(v8/tools/consarray)$',
14
+ '^(v8/tools/csvparser)$',
15
+ '^(v8/tools/logreader)$',
16
+ '^(v8/tools/profile_view)$',
17
+ '^(v8/tools/profile)$',
18
+ '^(v8/tools/SourceMap)$',
19
+ '^(v8/tools/splaytree)$',
20
+ '^(v8/tools/tickprocessor-driver)$',
21
+ '^(v8/tools/tickprocessor)$',
22
+ '^(node-inspect/lib/_inspect)$',
23
+ '^(node-inspect/lib/internal/inspect_client)$',
24
+ '^(node-inspect/lib/internal/inspect_repl)$',
25
+ '^(async_hooks)$',
26
+ '^(assert)$',
27
+ '^(punycode)$',
28
+ '^(domain)$',
29
+ '^(constants)$',
30
+ '^(sys)$',
31
+ '^(_linklist)$',
32
+ '^(_stream_wrap)$',
33
+ ],
34
+ },
35
+ });
36
+ exports.default = noDeprecatedCoreRule;
37
+ //# sourceMappingURL=noDeprecatedCore.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"noDeprecatedCore.js","sourceRoot":"","sources":["../../src/rules/noDeprecatedCore.ts"],"names":[],"mappings":";;AAEA,MAAM,oBAAoB,GAAG,GAA8B,EAAE,CAAC,CAAC;IAC7D,IAAI,EAAE,oBAAoB;IAC1B,OAAO,EACL,mGAAmG;QACnG,kDAAkD;IACpD,QAAQ,EAAE,MAAM;IAChB,IAAI,EAAE,EAAE;IACR,EAAE,EAAE;QACF,eAAe,EAAE,CAAC,MAAM,CAAC;QACzB,IAAI,EAAE;YACJ,sBAAsB;YACtB,wBAAwB;YACxB,wBAAwB;YACxB,wBAAwB;YACxB,2BAA2B;YAC3B,sBAAsB;YACtB,wBAAwB;YACxB,wBAAwB;YACxB,mCAAmC;YACnC,4BAA4B;YAC5B,+BAA+B;YAC/B,8CAA8C;YAC9C,4CAA4C;YAC5C,iBAAiB;YACjB,YAAY;YACZ,cAAc;YACd,YAAY;YACZ,eAAe;YACf,SAAS;YACT,eAAe;YACf,kBAAkB;SACnB;KACF;CACF,CAAC,CAAC;AAEH,kBAAe,oBAAoB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { IRegularForbiddenRuleType } from 'dependency-cruiser';
2
+ declare const noDuplicateDepTypesRule: () => IRegularForbiddenRuleType;
3
+ export default noDuplicateDepTypesRule;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const noDuplicateDepTypesRule = () => ({
4
+ name: 'no-duplicate-dep-types',
5
+ comment: "Likely this module depends on an external ('npm') package that occurs more than once " +
6
+ 'in your package.json i.e. bot as a devDependencies and in dependencies. This will cause ' +
7
+ 'maintenance problems later on.',
8
+ severity: 'warn',
9
+ from: {},
10
+ to: {
11
+ moreThanOneDependencyType: true,
12
+ },
13
+ });
14
+ exports.default = noDuplicateDepTypesRule;
15
+ //# sourceMappingURL=noDuplicateDepTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"noDuplicateDepTypes.js","sourceRoot":"","sources":["../../src/rules/noDuplicateDepTypes.ts"],"names":[],"mappings":";;AAEA,MAAM,uBAAuB,GAAG,GAA8B,EAAE,CAAC,CAAC;IAChE,IAAI,EAAE,wBAAwB;IAC9B,OAAO,EACL,uFAAuF;QACvF,0FAA0F;QAC1F,gCAAgC;IAClC,QAAQ,EAAE,MAAM;IAChB,IAAI,EAAE,EAAE;IACR,EAAE,EAAE;QACF,yBAAyB,EAAE,IAAI;KAChC;CACF,CAAC,CAAC;AAEH,kBAAe,uBAAuB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { IRegularForbiddenRuleType } from 'dependency-cruiser';
2
+ declare const noNonPackageRule: () => IRegularForbiddenRuleType;
3
+ export default noNonPackageRule;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const noNonPackageRule = () => ({
4
+ name: 'no-non-package-json',
5
+ severity: 'error',
6
+ comment: "This module depends on an npm package that isn't in the 'dependencies' section of your package.json. " +
7
+ "That's problematic as the package either (1) won't be available on live (2 - worse) will be " +
8
+ 'available on live with an non-guaranteed version. Fix it by adding the package to the dependencies ' +
9
+ 'in your package.json.',
10
+ from: {},
11
+ to: {
12
+ dependencyTypes: ['npm-no-pkg', 'npm-unknown'],
13
+ },
14
+ });
15
+ exports.default = noNonPackageRule;
16
+ //# sourceMappingURL=noNonPackage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"noNonPackage.js","sourceRoot":"","sources":["../../src/rules/noNonPackage.ts"],"names":[],"mappings":";;AAEA,MAAM,gBAAgB,GAAG,GAA8B,EAAE,CAAC,CAAC;IACzD,IAAI,EAAE,qBAAqB;IAC3B,QAAQ,EAAE,OAAO;IACjB,OAAO,EACL,uGAAuG;QACvG,8FAA8F;QAC9F,qGAAqG;QACrG,uBAAuB;IACzB,IAAI,EAAE,EAAE;IACR,EAAE,EAAE;QACF,eAAe,EAAE,CAAC,YAAY,EAAE,aAAa,CAAC;KAC/C;CACF,CAAC,CAAC;AAEH,kBAAe,gBAAgB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { IRegularForbiddenRuleType } from 'dependency-cruiser';
2
+ declare const noOrphansRule: () => IRegularForbiddenRuleType;
3
+ export default noOrphansRule;
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const noOrphansRule = () => ({
4
+ name: 'no-orphans',
5
+ comment: "This is an orphan module - it's likely not used (anymore?). Either use it or " +
6
+ "remove it. If it's logical this module is an orphan (i.e. it's a config file), " +
7
+ 'add an exception for it in your dependency-cruiser configuration. By default ' +
8
+ 'this rule does not scrutinize dotfiles (e.g. .eslintrc.js), TypeScript declaration ' +
9
+ 'files (.d.ts), tsconfig.json and some of the babel and webpack configs.',
10
+ severity: 'warn',
11
+ from: {
12
+ orphan: true,
13
+ pathNot: [
14
+ '(^|/)\\.[^/]+\\.(js|cjs|mjs|ts|json)$',
15
+ '\\.d\\.ts$',
16
+ '(^|/)tsconfig\\.json$',
17
+ '(^|/)(babel|webpack)\\.config\\.(js|cjs|mjs|ts|json)$', // other configs
18
+ ],
19
+ },
20
+ to: {},
21
+ });
22
+ exports.default = noOrphansRule;
23
+ //# sourceMappingURL=noOrphans.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"noOrphans.js","sourceRoot":"","sources":["../../src/rules/noOrphans.ts"],"names":[],"mappings":";;AAEA,MAAM,aAAa,GAAG,GAA8B,EAAE,CAAC,CAAC;IACtD,IAAI,EAAE,YAAY;IAClB,OAAO,EACL,+EAA+E;QAC/E,iFAAiF;QACjF,+EAA+E;QAC/E,qFAAqF;QACrF,yEAAyE;IAC3E,QAAQ,EAAE,MAAM;IAChB,IAAI,EAAE;QACJ,MAAM,EAAE,IAAI;QACZ,OAAO,EAAE;YACP,uCAAuC;YACvC,YAAY;YACZ,uBAAuB;YACvB,uDAAuD,EAAE,gBAAgB;SAC1E;KACF;IACD,EAAE,EAAE,EAAE;CACP,CAAC,CAAC;AAEH,kBAAe,aAAa,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { IRegularForbiddenRuleType } from 'dependency-cruiser';
2
+ declare const notToDeprecatedRule: () => IRegularForbiddenRuleType;
3
+ export default notToDeprecatedRule;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const notToDeprecatedRule = () => ({
4
+ name: 'not-to-deprecated',
5
+ comment: 'This module uses a (version of an) npm module that has been deprecated. Either upgrade to a later ' +
6
+ 'version of that module, or find an alternative. Deprecated modules are a security risk.',
7
+ severity: 'warn',
8
+ from: {},
9
+ to: {
10
+ dependencyTypes: ['deprecated'],
11
+ },
12
+ });
13
+ exports.default = notToDeprecatedRule;
14
+ //# sourceMappingURL=notToDeprecated.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notToDeprecated.js","sourceRoot":"","sources":["../../src/rules/notToDeprecated.ts"],"names":[],"mappings":";;AAEA,MAAM,mBAAmB,GAAG,GAA8B,EAAE,CAAC,CAAC;IAC5D,IAAI,EAAE,mBAAmB;IACzB,OAAO,EACL,oGAAoG;QACpG,yFAAyF;IAC3F,QAAQ,EAAE,MAAM;IAChB,IAAI,EAAE,EAAE;IACR,EAAE,EAAE;QACF,eAAe,EAAE,CAAC,YAAY,CAAC;KAChC;CACF,CAAC,CAAC;AAEH,kBAAe,mBAAmB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { IRegularForbiddenRuleType } from 'dependency-cruiser';
2
+ declare const notToDevDepRule: () => IRegularForbiddenRuleType;
3
+ export default notToDevDepRule;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const notToDevDepRule = () => ({
4
+ name: 'not-to-dev-dep',
5
+ severity: 'error',
6
+ comment: "This module depends on an npm package from the 'devDependencies' section of your " +
7
+ 'package.json. It looks like something that ships to production, though. To prevent problems ' +
8
+ "with npm packages that aren't there on production declare it (only!) in the 'dependencies'" +
9
+ 'section of your package.json. If this module is development only - add it to the ' +
10
+ 'from.pathNot re of the not-to-dev-dep rule in the dependency-cruiser configuration',
11
+ from: {
12
+ path: '^(src)',
13
+ pathNot: '\\.(spec|test)\\.(js|mjs|cjs|ts|ls|coffee|litcoffee|coffee\\.md)$',
14
+ },
15
+ to: {
16
+ dependencyTypes: ['npm-dev'],
17
+ },
18
+ });
19
+ exports.default = notToDevDepRule;
20
+ //# sourceMappingURL=notToDevDep.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notToDevDep.js","sourceRoot":"","sources":["../../src/rules/notToDevDep.ts"],"names":[],"mappings":";;AAEA,MAAM,eAAe,GAAG,GAA8B,EAAE,CAAC,CAAC;IACxD,IAAI,EAAE,gBAAgB;IACtB,QAAQ,EAAE,OAAO;IACjB,OAAO,EACL,mFAAmF;QACnF,8FAA8F;QAC9F,4FAA4F;QAC5F,mFAAmF;QACnF,oFAAoF;IACtF,IAAI,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,mEAAmE;KAC7E;IACD,EAAE,EAAE;QACF,eAAe,EAAE,CAAC,SAAS,CAAC;KAC7B;CACF,CAAC,CAAC;AAEH,kBAAe,eAAe,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { IRegularForbiddenRuleType } from 'dependency-cruiser';
2
+ declare const notToSpecRule: () => IRegularForbiddenRuleType;
3
+ export default notToSpecRule;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const notToSpecRule = () => ({
4
+ name: 'not-to-spec',
5
+ comment: 'This module depends on a spec (test) file. The sole responsibility of a spec file is to test code. ' +
6
+ "If there's something in a spec that's of use to other modules, it doesn't have that single " +
7
+ 'responsibility anymore. Factor it out into (e.g.) a separate utility/ helper or a mock.',
8
+ severity: 'error',
9
+ from: {},
10
+ to: {
11
+ path: '\\.(spec|test)\\.(js|mjs|cjs|ts|ls|coffee|litcoffee|coffee\\.md)$',
12
+ },
13
+ });
14
+ exports.default = notToSpecRule;
15
+ //# sourceMappingURL=notToSpec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notToSpec.js","sourceRoot":"","sources":["../../src/rules/notToSpec.ts"],"names":[],"mappings":";;AAEA,MAAM,aAAa,GAAG,GAA8B,EAAE,CAAC,CAAC;IACtD,IAAI,EAAE,aAAa;IACnB,OAAO,EACL,qGAAqG;QACrG,6FAA6F;QAC7F,yFAAyF;IAC3F,QAAQ,EAAE,OAAO;IACjB,IAAI,EAAE,EAAE;IACR,EAAE,EAAE;QACF,IAAI,EAAE,mEAAmE;KAC1E;CACF,CAAC,CAAC;AAEH,kBAAe,aAAa,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { IRegularForbiddenRuleType } from 'dependency-cruiser';
2
+ declare const notToTestRule: () => IRegularForbiddenRuleType;
3
+ export default notToTestRule;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const notToTestRule = () => ({
4
+ name: 'not-to-test',
5
+ comment: "This module depends on code within a folder that should only contain tests. As tests don't " +
6
+ "implement functionality this is odd. Either you're writing a test outside the test folder " +
7
+ "or there's something in the test folder that isn't a test.",
8
+ severity: 'error',
9
+ from: {
10
+ pathNot: '^(test)',
11
+ },
12
+ to: {
13
+ path: '^(test)',
14
+ },
15
+ });
16
+ exports.default = notToTestRule;
17
+ //# sourceMappingURL=notToTest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notToTest.js","sourceRoot":"","sources":["../../src/rules/notToTest.ts"],"names":[],"mappings":";;AAEA,MAAM,aAAa,GAAG,GAA8B,EAAE,CAAC,CAAC;IACtD,IAAI,EAAE,aAAa;IACnB,OAAO,EACL,6FAA6F;QAC7F,4FAA4F;QAC5F,4DAA4D;IAC9D,QAAQ,EAAE,OAAO;IACjB,IAAI,EAAE;QACJ,OAAO,EAAE,SAAS;KACnB;IACD,EAAE,EAAE;QACF,IAAI,EAAE,SAAS;KAChB;CACF,CAAC,CAAC;AAEH,kBAAe,aAAa,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { IRegularForbiddenRuleType } from 'dependency-cruiser';
2
+ declare const notToUnresolvableRule: () => IRegularForbiddenRuleType;
3
+ export default notToUnresolvableRule;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const notToUnresolvableRule = () => ({
4
+ name: 'not-to-unresolvable',
5
+ comment: "This module depends on a module that cannot be found ('resolved to disk'). If it's an npm " +
6
+ 'module: add it to your package.json. In all other cases you likely already know what to do.',
7
+ severity: 'error',
8
+ from: {},
9
+ to: {
10
+ couldNotResolve: true,
11
+ },
12
+ });
13
+ exports.default = notToUnresolvableRule;
14
+ //# sourceMappingURL=notToUnresolvable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notToUnresolvable.js","sourceRoot":"","sources":["../../src/rules/notToUnresolvable.ts"],"names":[],"mappings":";;AAEA,MAAM,qBAAqB,GAAG,GAA8B,EAAE,CAAC,CAAC;IAC9D,IAAI,EAAE,qBAAqB;IAC3B,OAAO,EACL,4FAA4F;QAC5F,6FAA6F;IAC/F,QAAQ,EAAE,OAAO;IACjB,IAAI,EAAE,EAAE;IACR,EAAE,EAAE;QACF,eAAe,EAAE,IAAI;KACtB;CACF,CAAC,CAAC;AAEH,kBAAe,qBAAqB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { IRegularForbiddenRuleType } from 'dependency-cruiser';
2
+ declare const warnOptionalDepsRule: () => IRegularForbiddenRuleType;
3
+ export default warnOptionalDepsRule;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const warnOptionalDepsRule = () => ({
4
+ name: 'optional-deps-used',
5
+ severity: 'info',
6
+ comment: 'This module depends on an npm package that is declared as an optional dependency ' +
7
+ "in your package.json. As this makes sense in limited situations only, it's flagged here. " +
8
+ "If you're using an optional dependency here by design - add an exception to your" +
9
+ 'depdency-cruiser configuration.',
10
+ from: {},
11
+ to: {
12
+ dependencyTypes: ['npm-optional'],
13
+ },
14
+ });
15
+ exports.default = warnOptionalDepsRule;
16
+ //# sourceMappingURL=warnOptionalDeps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"warnOptionalDeps.js","sourceRoot":"","sources":["../../src/rules/warnOptionalDeps.ts"],"names":[],"mappings":";;AAEA,MAAM,oBAAoB,GAAG,GAA8B,EAAE,CAAC,CAAC;IAC7D,IAAI,EAAE,oBAAoB;IAC1B,QAAQ,EAAE,MAAM;IAChB,OAAO,EACL,mFAAmF;QACnF,2FAA2F;QAC3F,kFAAkF;QAClF,iCAAiC;IACnC,IAAI,EAAE,EAAE;IACR,EAAE,EAAE;QACF,eAAe,EAAE,CAAC,cAAc,CAAC;KAClC;CACF,CAAC,CAAC;AAEH,kBAAe,oBAAoB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { IRegularForbiddenRuleType } from 'dependency-cruiser';
2
+ declare const warnPeerDepsRule: () => IRegularForbiddenRuleType;
3
+ export default warnPeerDepsRule;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const warnPeerDepsRule = () => ({
4
+ name: 'peer-deps-used',
5
+ comment: 'This module depends on an npm package that is declared as a peer dependency ' +
6
+ 'in your package.json. This makes sense if your package is e.g. a plugin, but in ' +
7
+ 'other cases - maybe not so much. If the use of a peer dependency is intentional ' +
8
+ 'add an exception to your dependency-cruiser configuration.',
9
+ severity: 'warn',
10
+ from: {},
11
+ to: {
12
+ dependencyTypes: ['npm-peer'],
13
+ },
14
+ });
15
+ exports.default = warnPeerDepsRule;
16
+ //# sourceMappingURL=warnPeerDeps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"warnPeerDeps.js","sourceRoot":"","sources":["../../src/rules/warnPeerDeps.ts"],"names":[],"mappings":";;AAEA,MAAM,gBAAgB,GAAG,GAA8B,EAAE,CAAC,CAAC;IACzD,IAAI,EAAE,gBAAgB;IACtB,OAAO,EACL,8EAA8E;QAC9E,kFAAkF;QAClF,kFAAkF;QAClF,4DAA4D;IAC9D,QAAQ,EAAE,MAAM;IAChB,IAAI,EAAE,EAAE;IACR,EAAE,EAAE;QACF,eAAe,EAAE,CAAC,UAAU,CAAC;KAC9B;CACF,CAAC,CAAC;AAEH,kBAAe,gBAAgB,CAAC"}
package/package.json ADDED
@@ -0,0 +1,79 @@
1
+ {
2
+ "name": "@voiceflow/dependency-cruiser-config",
3
+ "description": "dependency-cruiser config for voiceflow",
4
+ "version": "1.0.0",
5
+ "author": "Ben Teichman",
6
+ "bugs": {
7
+ "url": "https://github.com/voiceflow/dependency-cruiser-config/issues"
8
+ },
9
+ "config": {
10
+ "commitizen": {
11
+ "path": "./node_modules/cz-conventional-changelog"
12
+ }
13
+ },
14
+ "devDependencies": {
15
+ "@istanbuljs/nyc-config-typescript": "^1.0.2",
16
+ "@types/chai": "^4.2.21",
17
+ "@types/chai-as-promised": "^7.1.4",
18
+ "@types/git-branch": "2.0.2",
19
+ "@types/mocha": "^9.0.0",
20
+ "@types/node": "^17.0.8",
21
+ "@voiceflow/commitlint-config": "^1.1.0",
22
+ "@voiceflow/eslint-config": "^3.2.1",
23
+ "@voiceflow/git-branch-check": "^1.2.0",
24
+ "@voiceflow/prettier-config": "^1.0.5",
25
+ "@voiceflow/tsconfig": "^1.0.0",
26
+ "@zerollup/ts-transform-paths": "^1.7.18",
27
+ "chai": "^4.3.4",
28
+ "chai-as-promised": "^7.1.1",
29
+ "commitizen": "^4.2.4",
30
+ "commitlint": "^12.1.4",
31
+ "cz-conventional-changelog": "^3.3.0",
32
+ "depcheck": "^1.4.2",
33
+ "dependency-cruiser": "11.2.1",
34
+ "eslint": "^7.26.0",
35
+ "fixpack": "^4.0.0",
36
+ "husky": "^6.0.0",
37
+ "lint-staged": "^11.0.0",
38
+ "mocha": "^9.1.3",
39
+ "nyc": "^15.1.0",
40
+ "prettier": "^2.3.0",
41
+ "rimraf": "^3.0.2",
42
+ "ts-mocha": "^8.0.0",
43
+ "ttypescript": "^1.5.12",
44
+ "typescript": "^4.3.2"
45
+ },
46
+ "files": [
47
+ "build"
48
+ ],
49
+ "homepage": "https://github.com/voiceflow/dependency-cruiser-config#readme",
50
+ "keywords": [
51
+ "config",
52
+ "dependency-cruiser"
53
+ ],
54
+ "license": "MIT",
55
+ "main": "build/index.js",
56
+ "peerDependencies": {
57
+ "dependency-cruiser": "11.2.1"
58
+ },
59
+ "prettier": "@voiceflow/prettier-config",
60
+ "repository": {
61
+ "type": "git",
62
+ "url": "git+https://github.com/voiceflow/dependency-cruiser-config.git"
63
+ },
64
+ "scripts": {
65
+ "build": "yarn clean && ttsc --project ./tsconfig.build.json",
66
+ "clean": "rimraf build",
67
+ "commit": "git-cz",
68
+ "lint": "eslint \"./**/*.{js,ts}\"",
69
+ "lint:fix": "yarn lint --fix",
70
+ "lint:quiet": "yarn lint --quiet",
71
+ "lint:report": "yarn lint --format json -o sonar/report.json",
72
+ "prepare": "husky install",
73
+ "prepublishOnly": "yarn build",
74
+ "test": "yarn test:run",
75
+ "test:dependencies": "depcheck",
76
+ "test:run": "NODE_ENV=test nyc ts-mocha --paths --config config/test/mocharc.yml 'test/**/*.{unit,it}.ts'",
77
+ "test:unit": "NODE_ENV=test nyc --report-dir=nyc_coverage_unit ts-mocha --paths --config config/test/mocharc.yml 'test/**/*.unit.ts'"
78
+ }
79
+ }