Skip to content

Commit

Permalink
fix:update folder path for react config
Browse files Browse the repository at this point in the history
  • Loading branch information
raj-vc committed Dec 20, 2023
2 parents 8311dde + 8a3a886 commit e4dfaa9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
14 changes: 7 additions & 7 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ const nestPackagesInstallCmd = ({ install, devInstall, forceCMD }) => {
};

const reactEslintConfigCmd = () => {
const configPath = resolve(__dirname, `./config/nextjs/.eslintrc.json`);
const configPath = resolve(__dirname, `./config/react/.eslintrc.json`);
const configPathForPrettier = resolve(
__dirname,
`./config/nextjs/.prettierrc.json`
`./config/react/.prettierrc.json`
);
const configPathForLintStage = resolve(
__dirname,
`./config/nextjs/.lintstagedrc.json`
`./config/react/.lintstagedrc.json`
);

copyFileSync(configPath, ".eslintrc.json");
Expand All @@ -64,12 +64,12 @@ const nestEslintConfigCmd = () => {
};

const packagesInstallCmds = {
nextjs: reactPackagesInstallCmd,
react: reactPackagesInstallCmd,
nestjs: nestPackagesInstallCmd,
};

const eslintConfigCmds = {
nextjs: reactEslintConfigCmd,
react: reactEslintConfigCmd,
nestjs: nestEslintConfigCmd,
};

Expand All @@ -96,8 +96,8 @@ async function init() {
message: "Select a technology",
choices: [
{
name: "NextJs",
value: "nextjs",
name: "Nextjs",
value: "react",
},
{
name: "Angular",
Expand Down

0 comments on commit e4dfaa9

Please sign in to comment.