next.js
f9e8eefc - create-next-app: recognize --no-linter in the assumed defaults summary (#102844)

Commit
1 day ago
create-next-app: recognize --no-linter in the assumed defaults summary (#102844) ### What? When `create-next-app` runs with some flags but not all, it prints a "Using defaults for unprovided options" summary. Passing `--no-linter` no longer makes that summary list `--eslint` as an assumed default, and the hint for skipping the linter now reads `--no-linter for None` instead of `--no-eslint for None`. ### Why? `--no-linter` is the documented flag and it already skips linter setup, but the summary only knew about the legacy `--no-eslint`. Running `create-next-app foo --ts --tailwind --no-linter` printed: ``` ➜ pnpm create next-app foo-bar --ts --tailwind --no-linter Using defaults for unprovided options: --eslint ESLint (use --biome for Biome, --no-eslint for None) ``` No ESLint config was generated, so the output contradicted what the CLI did. ### How? `--no-eslint` stays accepted and still counts as an explicit linter choice, so it is kept out of the summary too. ### Verification - Built the CLI from `canary` and from this branch and ran both with `--ts --tailwind --app --no-linter --skip-install`: `canary` prints the `--eslint` line, this branch does not, and neither generates an ESLint config. - `pnpm test-start-turbo test/production/create-next-app/index.test.ts -t "assumed"` <!-- NEXT_JS_LLM -->
Author
Parents
Loading