Skip to content

Config file shouldn't allow kebab-cased keys #3756

@azz

Description

@azz
$ prettier -v
1.10.2
$ echo 'foo(bar, baz)' > file.js
$ echo '{ "print-width": 3 }' > .prettierrc
$ prettier file.js
foo(
  bar,
  baz
);

Expected:

foo(bar, baz);

as well as a warning to stderr about unknown property.

Maybe this was a regression in an CLI refactor PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:cliIssues with Prettier's Command Line Interfacelocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.status:has prIssues with an accompanying pull request. These issues will probably be fixed soon!

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions