Skip to content

Commit fbb5ecf

Browse files
chore(deps): remove unused dependencies (#18)
1 parent 812340d commit fbb5ecf

File tree

6 files changed

+1087
-3998
lines changed

6 files changed

+1087
-3998
lines changed

.circleci/config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
- vfcommon/install_node_modules
1515
- vfcommon/lint_source
1616
- vfcommon/lint_report
17+
- vfcommon/dependency_tests:
18+
step_name: Dependency Tests
1719
- vfcommon/unit_tests
1820
- codecov/upload:
1921
file: nyc_coverage/lcov.info

.depcheckrc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"specials": ["bin", "eslint", "lint-staged", "istanbul", "commitizen", "husky", "prettier", "ttypescript"],
3+
"ignores": [
4+
"@commitlint/*",
5+
"@types/*",
6+
"@voiceflow/commitlint-config",
7+
"@voiceflow/git-branch-check",
8+
"prettier-eslint-cli",
9+
"fixpack",
10+
"husky",
11+
"lint-staged"
12+
]
13+
}

.huskyrc.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"hooks": {
3+
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
4+
"pre-commit": "lint-staged",
5+
"pre-push": "git-branch-check"
6+
}
7+
}

.lintstagedrc.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
'package.json': ['fixpack'],
3+
'**/*.{js,ts}': ['eslint --fix', 'prettier-eslint --write'],
4+
};

package.json

Lines changed: 9 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -20,30 +20,26 @@
2020
"http-status": "^1.4.2",
2121
"lodash": "^4.17.11",
2222
"luxon": "^1.21.3",
23-
"moment": "^2.24.0",
24-
"randomstring": "^1.1.5",
2523
"sinon": "^7.5.0"
2624
},
2725
"devDependencies": {
28-
"@commitlint/config-conventional": "^8.0.0",
26+
"@commitlint/cli": "^11.0.0",
27+
"@commitlint/config-conventional": "^11.0.0",
2928
"@voiceflow/eslint-config": "^2.0.5",
3029
"@voiceflow/git-branch-check": "^1.1.3",
3130
"@voiceflow/prettier-config": "^1.0.5",
32-
"codacy-coverage": "^3.4.0",
33-
"commitizen": "^3.1.1",
34-
"commitlint": "^8.0.0",
31+
"commitizen": "^4.2.3",
3532
"cz-conventional-changelog": "^2.1.0",
33+
"depcheck": "^1.3.1",
3634
"eslint": "^6.0.1",
3735
"express": "^4.17.1",
38-
"fixpack": "^2.3.1",
39-
"husky": "^2.6.0",
40-
"istanbul": "^0.4.5",
41-
"lint-staged": "^8.2.1",
36+
"fixpack": "^4.0.0",
37+
"husky": "^4.3.8",
38+
"lint-staged": "^10.5.3",
4239
"mocha": "^6.1.4",
4340
"nyc": "^14.1.0",
4441
"prettier": "^1.19.1",
4542
"prettier-eslint-cli": "^5.0.0",
46-
"semantic-release": "^15.13.17",
4743
"supertest": "^4.0.2"
4844
},
4945
"files": [
@@ -54,42 +50,25 @@
5450
"!scratch.*"
5551
],
5652
"homepage": "https://github.com/voiceflow/backend-utils#readme",
57-
"husky": {
58-
"hooks": {
59-
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
60-
"pre-commit": "lint-staged",
61-
"pre-push": "git-branch-check"
62-
}
63-
},
6453
"keywords": [
6554
"utilities"
6655
],
6756
"license": "ISC",
68-
"lint-staged": {
69-
"package.json": [
70-
"fixpack",
71-
"git add"
72-
],
73-
"**/*.js": [
74-
"eslint --fix",
75-
"prettier-eslint --write",
76-
"git add"
77-
]
78-
},
7957
"main": "index.js",
8058
"prettier": "@voiceflow/prettier-config",
8159
"repository": {
8260
"type": "git",
8361
"url": "git+https://github.com/voiceflow/backend-utils.git"
8462
},
8563
"scripts": {
86-
"commit": "git-cz",
64+
"commit": "cz",
8765
"lint": "eslint \"**/*.js\"",
8866
"lint:fix": "yarn lint --fix",
8967
"lint:quiet": "yarn lint --quiet",
9068
"lint:report": "yarn lint --format json -o sonar/report.json",
9169
"prepare": "fixpack",
9270
"test": "nyc mocha --opts ./config/tests/mocha.opts 'tests/**/*.{unit,it}.js'",
71+
"test:dependencies": "depcheck",
9372
"test:integration": "nyc mocha --opts ./config/tests/mocha.opts 'tests/**/*.it.js'",
9473
"test:single": "mocha --opts ./config/tests/mocha.opts",
9574
"test:unit": "nyc mocha --opts ./config/tests/mocha.opts 'tests/**/*.unit.js'"

0 commit comments

Comments
 (0)