Skip to content

Configuration ignored when defined in multiple sources #2498

@robertoaceves

Description

@robertoaceves

Hi.

The plugin configuration is ignored when it is defined in multiple sources. For example, I set the next two config values in .prettierrc

    "braceStyle": "1tbs",
    "singleQuote": true

but the plugin reports the following Resolved config:

{
  "parser": "php",
  "phpVersion": "7.4",
  "plugins": [
    "@prettier/plugin-php"
  ]
}

Then, I noticed I also had some "prettier": {...} configuration in package.json. The new configuration was still ignored after I added the same two config values to the Prettier property in this file. At this point, both configuration sources are the same.

Finally, the new configuration was in effect after I deleted the .prettierrc file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions