We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86297f6 commit fb8b531Copy full SHA for fb8b531
src/command/eslint-fix/index.ts
@@ -23,7 +23,7 @@ export const eslintFix = async (paths: string[]) => {
23
};
24
25
export default function eslintFixInstaller(config: CommandsOptions) {
26
- const { fix } = config;
+ const { fix } = config || {};
27
return {
28
name: "fix",
29
describe: "运行 eslint 静态扫描和修复代码中存在的问题",
src/command/git-commit/index.ts
@@ -109,7 +109,7 @@ export const gitCommit = async (
109
110
111
export default function gitCommitInstaller(config: CommandsOptions) {
112
- const { commit } = config;
+ const { commit } = config || {};
113
114
name: "commit",
115
describe: "生成 angualr 规范的提交信息",
0 commit comments