Skip to content

Commit c57dd28

Browse files
Merge pull request #108 from bufferoverflow/chore/upgrade-husky
upgrade packages and cleanup
2 parents 843dd33 + c2c96b6 commit c57dd28

File tree

6 files changed

+1443
-1686
lines changed

6 files changed

+1443
-1686
lines changed

.eslintignore

Lines changed: 0 additions & 6 deletions
This file was deleted.

.eslintrc

Lines changed: 0 additions & 19 deletions
This file was deleted.

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ services:
33
- docker
44
sudo: false
55
node_js:
6-
- 'lts/carbon'
6+
- 'lts/dubnium'
77
- 'lts/*'
88
script:
99
- yarn install

package.json

Lines changed: 47 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
},
77
"scripts": {
88
"type-check": "tsc --noEmit",
9-
"commitmsg": "commitlint -e $GIT_PARAMS",
109
"license": "license-checker --onlyAllow 'Apache-2.0; Apache License, Version 2.0; BSD; BSD-2-Clause; BSD-3-Clause; ISC; MIT; Unlicense; WTFPL; CC-BY-3.0; CC0-1.0' --production --summary",
1110
"type-check:watch": "npm run type-check -- --watch",
1211
"lint:ts": "eslint . --ext .js,.ts",
@@ -47,7 +46,7 @@
4746
"url": "https://github.com/bufferoverflow/verdaccio-gitlab/issues"
4847
},
4948
"engines": {
50-
"node": ">=8"
49+
"node": ">=10"
5150
},
5251
"dependencies": {
5352
"gitlab": "3.5.1",
@@ -57,41 +56,60 @@
5756
"verdaccio": "^4.3.4"
5857
},
5958
"devDependencies": {
60-
"@commitlint/cli": "8.2.0",
61-
"@commitlint/config-conventional": "8.2.0",
62-
"@commitlint/travis-cli": "8.2.0",
63-
"@types/http-errors": "1.6.2",
64-
"@types/jest": "24.0.22",
65-
"@types/lodash": "^4.14.146",
66-
"@types/node": "^12.12.7",
67-
"@typescript-eslint/eslint-plugin": "2.6.1",
68-
"@verdaccio/babel-preset": "^8.2.0",
69-
"@verdaccio/commons-api": "^8.2.0",
70-
"@verdaccio/eslint-config": "^8.2.0",
71-
"@verdaccio/types": "^8.3.0",
72-
"body-parser": "^1.18.3",
73-
"chalk": "^2.4.1",
74-
"cross-env": "^5.2.0",
75-
"eslint": "^6.3.0",
76-
"express": "^4.16.3",
77-
"generate-changelog": "1.7.1",
78-
"http-status": "^1.2.0",
79-
"husky": "0.14.3",
80-
"in-publish": "2.0.0",
81-
"jest": "24.9.0",
59+
"@commitlint/cli": "^8.3.3",
60+
"@commitlint/config-conventional": "^8.3.3",
61+
"@commitlint/travis-cli": "^8.3.3",
62+
"@types/http-errors": "^1.6.3",
63+
"@types/jest": "^24.0.24",
64+
"@types/lodash": "^4.14.149",
65+
"@types/node": "^13.1.0",
66+
"@typescript-eslint/eslint-plugin": "^2.13.0",
67+
"@typescript-eslint/parser": "^2.13.0",
68+
"@verdaccio/babel-preset": "^8.5.0",
69+
"@verdaccio/commons-api": "^8.5.0",
70+
"@verdaccio/eslint-config": "^8.5.0",
71+
"@verdaccio/types": "^8.5.0",
72+
"body-parser": "^1.19.0",
73+
"chalk": "^2.4.2",
74+
"cross-env": "^6.0.3",
75+
"eslint": "^6.8.0",
76+
"express": "^4.17.1",
77+
"generate-changelog": "^1.8.0",
78+
"http-status": "^1.4.2",
79+
"husky": "^3.1.0",
80+
"in-publish": "^2.0.0",
81+
"jest": "^24.9.0",
8282
"jest-environment-node": "^24.9.0",
83-
"license-checker": "20.1.0",
83+
"license-checker": "^25.0.1",
8484
"lodash": "^4.17.15",
85-
"markdownlint-cli": "0.19.0",
85+
"markdownlint-cli": "^0.20.0",
8686
"prettier": "^1.19.1",
87-
"repolinter": "0.7.0",
8887
"request": "^2.88.0",
89-
"rimraf": "^2.6.2",
90-
"typescript": "3.7.2"
88+
"rimraf": "^3.0.0",
89+
"typescript": "^3.7.4"
9190
},
9291
"commitlint": {
9392
"extends": [
9493
"@commitlint/config-conventional"
9594
]
95+
},
96+
"husky": {
97+
"hooks": {
98+
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
99+
}
100+
},
101+
"eslintConfig": {
102+
"extends": [
103+
"@verdaccio"
104+
],
105+
"rules": {
106+
"@typescript-eslint/no-var-requires": 0,
107+
"@typescript-eslint/ban-ts-ignore": 0,
108+
"@typescript-eslint/no-use-before-define": 0,
109+
"@typescript-eslint/no-explicit-any": 0,
110+
"@typescript-eslint/explicit-function-return-type": 0,
111+
"@typescript-eslint/explicit-member-accessibility": 0
112+
},
113+
"ignorePatterns": ["build/", "node_modules/"]
96114
}
97115
}

test/unit/partials/config/index.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
21
import { PluginOptions, RemoteUser } from '@verdaccio/types';
2+
33
import { VerdaccioGitlabConfig } from '../../../../src/gitlab';
44
import { UserDataGroups } from '../../../../src/authcache';
5-
65
import logger from '../logger';
76
import { UserData } from '../../../../src/authcache';
87

@@ -12,14 +11,14 @@ const verdaccioGitlabConfig: VerdaccioGitlabConfig = {
1211
};
1312

1413
const options: PluginOptions<VerdaccioGitlabConfig> = {
15-
//@ts-ignore
14+
// @ts-ignore
1615
config: {},
17-
//@ts-ignore
16+
// @ts-ignore
1817
logger: logger
1918
};
2019

21-
const user: string = 'myUser';
22-
const pass: string = 'myPass';
20+
const user = 'myUser';
21+
const pass = 'myPass';
2322
const remoteUser: RemoteUser = {
2423
real_groups: ['myGroup', 'anotherGroup/myProject', user],
2524
groups: ['myGroup', 'anotherGroup/myProject', user],

0 commit comments

Comments
 (0)