Skip to content

Commit 169198f

Browse files
committedOct 5, 2020
chore(maintenance): 🔧 updated deps and fixed some linting errors
1 parent 67f4f44 commit 169198f

7 files changed

+2063
-1967
lines changed
 

‎.eslintrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ module.exports = {
3434
{ exceptAfterSingleLine: true },
3535
],
3636
"@typescript-eslint/explicit-function-return-type": "off",
37+
"@typescript-eslint/explicit-module-boundary-types": "off",
3738
"jest/expect-expect": [
3839
"error",
3940
{

‎package.json

+33-33
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"test": "npx jest",
4545
"test:cov": "npx jest --coverage",
4646
"lint": "yarn lint:eslint && yarn lint:ts",
47-
"lint:eslint": "npx eslint bin/*.js src/*.ts --cache --fix",
47+
"lint:eslint": "npx eslint src/*.ts --cache --fix",
4848
"lint:ts": "npx tsc -p tsconfig.build.json --noEmit",
4949
"prepack": "yarn build",
5050
"release": "source .env && npx semantic-release --color --no-ci"
@@ -62,43 +62,43 @@
6262
]
6363
},
6464
"dependencies": {
65-
"chalk": "^4.0.0",
66-
"commander": "5.0.0",
67-
"ts-interface-checker": "0.1.10"
65+
"chalk": "^4.1.0",
66+
"commander": "6.1.0",
67+
"ts-interface-checker": "0.1.13"
6868
},
6969
"devDependencies": {
70-
"@rollup/plugin-commonjs": "11.0.2",
71-
"@rollup/plugin-node-resolve": "7.1.1",
72-
"@rollup/plugin-typescript": "4.0.0",
70+
"@rollup/plugin-commonjs": "15.1.0",
71+
"@rollup/plugin-node-resolve": "9.0.0",
72+
"@rollup/plugin-typescript": "6.0.0",
7373
"@semantic-release/changelog": "5.0.1",
7474
"@semantic-release/git": "9.0.0",
75-
"@types/jest": "25.2.1",
76-
"@types/node": "13.11.1",
77-
"@types/node-fetch": "2.5.5",
78-
"@typescript-eslint/eslint-plugin": "2.27.0",
79-
"@typescript-eslint/parser": "2.27.0",
80-
"concurrently": "5.1.0",
81-
"conventional-changelog-conventionalcommits": "4.2.3",
82-
"copyfiles": "2.2.0",
83-
"eslint": "6.8.0",
84-
"eslint-config-prettier": "6.10.1",
85-
"eslint-plugin-import": "2.20.2",
86-
"eslint-plugin-jest": "23.8.2",
87-
"eslint-plugin-prettier": "3.1.2",
88-
"husky": "4.2.3",
89-
"jest": "25.3.0",
90-
"node-fetch": "2.6.0",
91-
"prettier": "2.0.4",
75+
"@types/jest": "26.0.14",
76+
"@types/node": "14.11.2",
77+
"@types/node-fetch": "2.5.7",
78+
"@typescript-eslint/eslint-plugin": "4.3.0",
79+
"@typescript-eslint/parser": "4.3.0",
80+
"concurrently": "5.3.0",
81+
"conventional-changelog-conventionalcommits": "4.4.0",
82+
"copyfiles": "2.4.0",
83+
"eslint": "7.10.0",
84+
"eslint-config-prettier": "6.12.0",
85+
"eslint-plugin-import": "2.22.1",
86+
"eslint-plugin-jest": "24.0.2",
87+
"eslint-plugin-prettier": "3.1.4",
88+
"husky": "4.3.0",
89+
"jest": "26.4.2",
90+
"node-fetch": "2.6.1",
91+
"prettier": "2.1.2",
9292
"rimraf": "3.0.2",
93-
"rollup": "2.3.4",
94-
"rollup-plugin-progress": "1.1.1",
95-
"rollup-plugin-sizes": "1.0.2",
96-
"rollup-plugin-terser": "5.3.0",
97-
"semantic-release": "17.0.4",
98-
"ts-interface-builder": "0.2.1",
99-
"ts-jest": "25.3.1",
100-
"ts-node": "8.8.2",
101-
"typescript": "3.8.3"
93+
"rollup": "2.28.2",
94+
"rollup-plugin-progress": "1.1.2",
95+
"rollup-plugin-sizes": "1.0.3",
96+
"rollup-plugin-terser": "7.0.2",
97+
"semantic-release": "17.1.2",
98+
"ts-interface-builder": "0.2.2",
99+
"ts-jest": "26.4.1",
100+
"ts-node": "9.0.0",
101+
"typescript": "4.0.3"
102102
},
103103
"resolutions": {
104104
"minimist": "^1.2.2"

‎rollup.config.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
/* eslint-disable @typescript-eslint/ban-ts-comment */
12
import typescript from "@rollup/plugin-typescript"
23
import pkg from "./package.json"
34
import resolve from "@rollup/plugin-node-resolve"
45
import { terser } from "rollup-plugin-terser"
56
import commonjs from "@rollup/plugin-commonjs"
6-
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
77
// @ts-ignore
88
import progress from "rollup-plugin-progress"
99

@@ -14,12 +14,14 @@ export default {
1414
input: "src/cli.ts", // our source file
1515
output: [
1616
{
17+
freeze: false,
1718
dir: "lib",
1819
format: "cjs",
1920
},
2021
],
2122
external: [...Object.keys(pkg.dependencies || {}), ...builtins],
2223
plugins: [
24+
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
2325
progress(),
2426
resolve({
2527
preferBuiltins: true,

‎src/cli.ts

+5-4
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export class Cli {
107107
this.devmoji.get(code.emoji),
108108
" ",
109109
chalk.blue(`:${code.code}:`.padEnd(15)),
110-
chalk.green(cc) + code.description
110+
chalk.green(cc) + (code.description ?? "")
111111
)
112112
}
113113
}
@@ -158,6 +158,7 @@ export class Cli {
158158
chalk.level > 0
159159
)
160160
.option("--no-color", "don't use colors")
161+
// eslint-disable-next-line @typescript-eslint/no-var-requires, @typescript-eslint/no-unsafe-member-access
161162
.version(require("../package.json").version as string, "--version")
162163
.parse(argv)
163164
// console.log(program.opts())
@@ -215,10 +216,10 @@ export class Cli {
215216
}
216217
}
217218

218-
export function run(argv = process.argv) {
219-
Cli.create(argv).then((cli) => cli.run())
219+
export async function run(argv = process.argv) {
220+
return Cli.create(argv).then((cli) => cli.run())
220221
}
221222

222223
if (module === require.main) {
223-
run()
224+
void run()
224225
}

‎src/config-options-ti.ts

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
/**
22
* This module was automatically generated by `ts-interface-builder`
33
*/
4-
import * as t from "ts-interface-checker"
4+
import * as t from "ts-interface-checker";
55
// tslint:disable:object-literal-key-quotes
66

77
export const TDevmoji = t.iface([], {
8-
code: "string",
9-
emoji: t.opt("string"),
10-
gitmoji: t.opt("string"),
11-
description: t.opt("string"),
12-
})
8+
"code": "string",
9+
"emoji": t.opt("string"),
10+
"gitmoji": t.opt("string"),
11+
"description": t.opt("string"),
12+
});
1313

1414
export const ConfigOptions = t.iface([], {
15-
types: t.array("string"),
16-
devmoji: t.array("TDevmoji"),
17-
})
15+
"types": t.array("string"),
16+
"devmoji": t.array("TDevmoji"),
17+
});
1818

1919
const exportedTypeSuite: t.ITypeSuite = {
2020
TDevmoji,
2121
ConfigOptions,
22-
}
23-
export default exportedTypeSuite
22+
};
23+
export default exportedTypeSuite;

‎src/config.ts

+1
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ export class Config {
8282

8383
if (configFile) {
8484
configFile = path.resolve(cwd, configFile)
85+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
8586
const options = await import(configFile)
8687
return new Config(options)
8788
}

‎yarn.lock

+2,009-1,918
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
Please sign in to comment.