Skip to content

Commit

Permalink
fix(misc): enable ESLint flat configs for create-nx-workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
jaysoo committed Sep 6, 2024
1 parent 87075ab commit 20cf46e
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@ export function spawnAndWait(command: string, args: string[], cwd: string) {
const childProcess = spawn(command, args, {
cwd,
stdio: 'inherit',
env: { ...process.env, NX_DAEMON: 'false' },
env: {
...process.env,
NX_DAEMON: 'false',
// This is the same environment variable that ESLint uses to determine if it should use a flat config.
// Default to true for all new workspaces.
ESLINT_USE_FLAT_CONFIG: process.env.ESLINT_USE_FLAT_CONFIG ?? 'true',
},
shell: true,
windowsHide: true,
});
Expand Down

0 comments on commit 20cf46e

Please sign in to comment.