Skip to content

Commit 05fde1d

Browse files
committed
fixed eslint
1 parent becef3d commit 05fde1d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.eslintrc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,8 @@ module.exports = {
1111
"unicorn/no-abusive-eslint-disable": "off",
1212
"@typescript-eslint/no-use-before-define": "off",
1313
"node/no-missing-import": "off",
14+
"@typescript-eslint/no-explicit-any": "warn",
15+
"@typescript-eslint/no-require-imports": "off",
16+
"no-useless-escape": "warn",
1417
},
1518
};

src/commands/tsgen.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Command } from "@contentstack/cli-command";
2-
import { flags } from "@contentstack/cli-utilities";
2+
import { flags, FlagInput } from "@contentstack/cli-utilities";
33
import * as path from "path";
44
import * as fs from "fs";
55
import { generateTS, graphqlTS } from "@contentstack/types-generator";
@@ -29,7 +29,7 @@ export default class TypeScriptCodeGeneratorCommand extends Command {
2929
'$ csdx tsgen -a "delivery token alias" -o "contentstack/generated.d.ts" --api-type graphql --namespace "GraphQL" ',
3030
];
3131

32-
static flags: any = {
32+
static flags: FlagInput = {
3333
"token-alias": flags.string({
3434
char: "a",
3535
description: "delivery token alias",

0 commit comments

Comments
 (0)