Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

Commit

Permalink
Add circular dependency finder to linter
Browse files Browse the repository at this point in the history
  • Loading branch information
vsund committed Mar 25, 2018
1 parent 9ee5eae commit 68d346e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
"lint": "yarn run prettify && tslint --project ./",
"build": "yarn run generate-json-interfaces && tsc",
"prepublishOnly": "yarn run build",
"clean": "rm -r ./dist/",
"clean": "rm -r ./dist/ && rm ./src/{auth,profile}/schema/*.d.ts",
"test": "yarn run build && mocha --require ts-node/register 'tests/**/*.spec.ts'",
"document": "typedoc --out ./docs/code/ ./src/ --sourcefile-url-prefix https://github.com/ntzwrk/blockstack.ts/blob/master/src/",
"generate-json-interfaces": "cd src/profile/schema/ && find ./ -name \"*.json\" -exec json2ts --style.useTabs --style.singleQuote --input {} --output {}.d.ts \\; && cd ../../../"
"generate-json-interfaces": "cd ./src/auth/schema/ && find ./ -name \"*.json\" -exec json2ts --style.useTabs --style.singleQuote --input {} --output {}.d.ts \\; && cd - && cd ./src/profile/schema/ && find ./ -name \"*.json\" -exec json2ts --style.useTabs --style.singleQuote --input {} --output {}.d.ts \\; && cd -"
},
"dependencies": {
"@types/bigi": "^1.4.0",
Expand Down Expand Up @@ -57,6 +57,7 @@
"prettier": "^1.11.1",
"tslint": "^5.9.1",
"tslint-config-prettier": "^1.10.0",
"tslint-no-circular-imports": "^0.2.1",
"tslint-sonarts": "^1.6.0",
"typedoc": "^0.11.1",
"typedoc-plugin-sourcefile-url": "^1.0.3"
Expand Down
1 change: 1 addition & 0 deletions tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"extends": [
"tslint:latest",
"tslint-sonarts",
"tslint-no-circular-imports",
"tslint-config-prettier"
],
"jsRules": {},
Expand Down
16 changes: 14 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@
version "9.4.7"
resolved "http://registry.npmjs.org/@types/node/-/node-9.4.7.tgz#57d81cd98719df2c9de118f2d5f3b1120dcd7275"

"@types/node@^8.0.28":
version "8.10.0"
resolved "https://registry.yarnpkg.com/@types/node/-/node-8.10.0.tgz#f5d649cc49af8ed6507d15dc6e9b43fe8b927540"

"@types/node@^8.0.50":
version "8.9.5"
resolved "https://registry.yarnpkg.com/@types/node/-/node-8.9.5.tgz#162b864bc70be077e6db212b322754917929e976"
Expand Down Expand Up @@ -1221,13 +1225,21 @@ tslint-config-prettier@^1.10.0:
version "1.10.0"
resolved "https://registry.yarnpkg.com/tslint-config-prettier/-/tslint-config-prettier-1.10.0.tgz#5063c413d43de4f6988c73727f65ecfc239054ec"

tslint-no-circular-imports@^0.2.1:
version "0.2.1"
resolved "https://registry.yarnpkg.com/tslint-no-circular-imports/-/tslint-no-circular-imports-0.2.1.tgz#f52f7701321b3becb57ede5f06e3b27e1bbfde31"
dependencies:
"@types/node" "^8.0.28"
tslint "^5.7.0"
typescript "^2.5.2"

tslint-sonarts@^1.6.0:
version "1.6.0"
resolved "https://registry.yarnpkg.com/tslint-sonarts/-/tslint-sonarts-1.6.0.tgz#b21366029d83e2426d207174255bb2e09525e162"
dependencies:
immutable "^3.8.2"

tslint@^5.9.1:
tslint@^5.7.0, tslint@^5.9.1:
version "5.9.1"
resolved "https://registry.yarnpkg.com/tslint/-/tslint-5.9.1.tgz#1255f87a3ff57eb0b0e1f0e610a8b4748046c9ae"
dependencies:
Expand Down Expand Up @@ -1288,7 +1300,7 @@ typeforce@^1.11.3:
version "1.12.0"
resolved "https://registry.yarnpkg.com/typeforce/-/typeforce-1.12.0.tgz#ca40899919f1466d7819e37be039406beb912a2e"

typescript@2.7.2, typescript@^2.7.2:
typescript@2.7.2, typescript@^2.5.2, typescript@^2.7.2:
version "2.7.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.7.2.tgz#2d615a1ef4aee4f574425cdff7026edf81919836"

Expand Down

0 comments on commit 68d346e

Please sign in to comment.