From 48fca50aa0d3dbcec0eea9a91d3b078eea42e1d9 Mon Sep 17 00:00:00 2001 From: sarthakjdev Date: Wed, 29 May 2024 13:12:19 +0530 Subject: [PATCH] fix: lint Signed-off-by: sarthakjdev --- packages/create-wapi-app/{.eslintrc.js => .eslintrc.cjs} | 0 packages/create-wapi-app/src/create-bot.ts | 4 +--- packages/create-wapi-app/tsconfig.json | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) rename packages/create-wapi-app/{.eslintrc.js => .eslintrc.cjs} (100%) diff --git a/packages/create-wapi-app/.eslintrc.js b/packages/create-wapi-app/.eslintrc.cjs similarity index 100% rename from packages/create-wapi-app/.eslintrc.js rename to packages/create-wapi-app/.eslintrc.cjs diff --git a/packages/create-wapi-app/src/create-bot.ts b/packages/create-wapi-app/src/create-bot.ts index 7d51d48..a0ae546 100644 --- a/packages/create-wapi-app/src/create-bot.ts +++ b/packages/create-wapi-app/src/create-bot.ts @@ -10,13 +10,11 @@ import { import path from "node:path"; import process from "node:process"; import { URL } from "node:url"; -import fastGlob from "fast-glob"; +import { glob } from "fast-glob"; import chalk from "chalk"; import { installPackages } from "./reusable-function.js"; import { PackageManagerEnum } from "./type.js"; -const glob = fastGlob.glob; - export async function createWhatsappBot(options: { directory: string; doInstallPackage: boolean; diff --git a/packages/create-wapi-app/tsconfig.json b/packages/create-wapi-app/tsconfig.json index d110f64..be9c182 100644 --- a/packages/create-wapi-app/tsconfig.json +++ b/packages/create-wapi-app/tsconfig.json @@ -1,6 +1,6 @@ { "extends": "@wapijs/typescript-config/node.base.json", - "include": ["src/", "*.ts", "./.eslintrc.js", "bin"], + "include": ["src/", "*.ts", ".eslintrc.cjs", "bin"], "exclude": ["template/"], "compilerOptions": { "module": "NodeNext",