Skip to content

Commit

Permalink
restore json stringify indent
Browse files Browse the repository at this point in the history
since we're writing to fs without formatting on error, we should be as good looking as possible by default
  • Loading branch information
ahkhanjani committed Nov 6, 2024
1 parent c18f14b commit afca173
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cli/src/installers/eslint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ export const dynamicEslintInstaller: Installer = ({ projectDir, packages }) => {
const usingDrizzle = !!packages?.drizzle?.inUse;

const rawConfig = getRawEslintConfig(usingDrizzle);
const configBody = JSON.stringify(rawConfig).replace(/"%%|%%"/g, "");
const stringConfig = JSON.stringify(rawConfig, null, 2);
const configBody = stringConfig.replace(/"%%|%%"/g, "");

const imports = getImports(usingDrizzle);

Expand Down

0 comments on commit afca173

Please sign in to comment.