@voiceflow/dependency-cruiser-config 1.1.0 → 1.2.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.
- package/build/rules/noCircular.js +1 -1
- package/build/rules/noCircular.js.map +1 -1
- package/build/rules/noDeprecatedCore.js +1 -1
- package/build/rules/noDeprecatedCore.js.map +1 -1
- package/build/rules/noOrphans.js +1 -1
- package/build/rules/noOrphans.js.map +1 -1
- package/build/rules/notToDeprecated.js +1 -1
- package/build/rules/notToDeprecated.js.map +1 -1
- package/package.json +1 -2
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const noCircularRule = () => ({
|
|
4
4
|
name: 'no-circular',
|
|
5
|
-
severity: '
|
|
5
|
+
severity: 'error',
|
|
6
6
|
comment: 'This dependency is part of a circular relationship. You might want to revise ' +
|
|
7
7
|
'your solution (i.e. use dependency inversion, make sure the modules have a single responsibility) ',
|
|
8
8
|
from: {},
|
|
@@ -1 +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,
|
|
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,OAAO;IACjB,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"}
|
|
@@ -4,7 +4,7 @@ const noDeprecatedCoreRule = () => ({
|
|
|
4
4
|
name: 'no-deprecated-core',
|
|
5
5
|
comment: 'A module depends on a node core module that has been deprecated. Find an alternative - these are ' +
|
|
6
6
|
"bound to exist - node doesn't deprecate lightly.",
|
|
7
|
-
severity: '
|
|
7
|
+
severity: 'error',
|
|
8
8
|
from: {},
|
|
9
9
|
to: {
|
|
10
10
|
dependencyTypes: ['core'],
|
|
@@ -1 +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,
|
|
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,OAAO;IACjB,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"}
|
package/build/rules/noOrphans.js
CHANGED
|
@@ -7,7 +7,7 @@ const noOrphansRule = ({ ignoreTypes = false } = {}) => ({
|
|
|
7
7
|
'add an exception for it in your dependency-cruiser configuration. By default ' +
|
|
8
8
|
'this rule does not scrutinize dotfiles (e.g. .eslintrc.js), TypeScript declaration ' +
|
|
9
9
|
'files (.d.ts), tsconfig.json and some of the babel and webpack configs.',
|
|
10
|
-
severity: '
|
|
10
|
+
severity: 'error',
|
|
11
11
|
from: {
|
|
12
12
|
orphan: true,
|
|
13
13
|
pathNot: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"noOrphans.js","sourceRoot":"","sources":["../../src/rules/noOrphans.ts"],"names":[],"mappings":";;AAMA,MAAM,aAAa,GAAG,CAAC,EAAE,WAAW,GAAG,KAAK,KAAuB,EAAE,EAA6B,EAAE,CAAC,CAAC;IACpG,IAAI,EAAE,YAAY;IAClB,OAAO,EACL,+EAA+E;QAC/E,iFAAiF;QACjF,+EAA+E;QAC/E,qFAAqF;QACrF,yEAAyE;IAC3E,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"noOrphans.js","sourceRoot":"","sources":["../../src/rules/noOrphans.ts"],"names":[],"mappings":";;AAMA,MAAM,aAAa,GAAG,CAAC,EAAE,WAAW,GAAG,KAAK,KAAuB,EAAE,EAA6B,EAAE,CAAC,CAAC;IACpG,IAAI,EAAE,YAAY;IAClB,OAAO,EACL,+EAA+E;QAC/E,iFAAiF;QACjF,+EAA+E;QAC/E,qFAAqF;QACrF,yEAAyE;IAC3E,QAAQ,EAAE,OAAO;IACjB,IAAI,EAAE;QACJ,MAAM,EAAE,IAAI;QACZ,OAAO,EAAE;YACP,uCAAuC;YACvC,YAAY;YACZ,uBAAuB;YACvB,uDAAuD;YACvD,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;SAC7C;KACF;IACD,EAAE,EAAE,EAAE;CACP,CAAC,CAAC;AAEH,kBAAe,aAAa,CAAC"}
|
|
@@ -4,7 +4,7 @@ const notToDeprecatedRule = () => ({
|
|
|
4
4
|
name: 'not-to-deprecated',
|
|
5
5
|
comment: 'This module uses a (version of an) npm module that has been deprecated. Either upgrade to a later ' +
|
|
6
6
|
'version of that module, or find an alternative. Deprecated modules are a security risk.',
|
|
7
|
-
severity: '
|
|
7
|
+
severity: 'error',
|
|
8
8
|
from: {},
|
|
9
9
|
to: {
|
|
10
10
|
dependencyTypes: ['deprecated'],
|
|
@@ -1 +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,
|
|
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,OAAO;IACjB,IAAI,EAAE,EAAE;IACR,EAAE,EAAE;QACF,eAAe,EAAE,CAAC,YAAY,CAAC;KAChC;CACF,CAAC,CAAC;AAEH,kBAAe,mBAAmB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voiceflow/dependency-cruiser-config",
|
|
3
3
|
"description": "dependency-cruiser config for voiceflow",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.2.0",
|
|
5
5
|
"author": "Ben Teichman",
|
|
6
6
|
"bugs": {
|
|
7
7
|
"url": "https://github.com/voiceflow/dependency-cruiser-config/issues"
|
|
@@ -70,7 +70,6 @@
|
|
|
70
70
|
"lint:quiet": "yarn lint --quiet",
|
|
71
71
|
"lint:report": "yarn lint --format json -o sonar/report.json",
|
|
72
72
|
"prepare": "husky install",
|
|
73
|
-
"prepublishOnly": "yarn build",
|
|
74
73
|
"test": "yarn test:run",
|
|
75
74
|
"test:dependencies": "depcheck",
|
|
76
75
|
"test:run": "NODE_ENV=test nyc ts-mocha --paths --config config/test/mocharc.yml 'test/**/*.{unit,it}.ts'",
|