question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

.prettierc overrides are ignored

See original GitHub issue

It seems the plugin ignores prettier’s overrides options. E.g. the following .prettierc fails for the directory build_tools:

{
  "trailingComma": "all",
  "overrides": [
    {
      "files": "build_tools/*.js",
      "options": {
        "trailingComma": "es5"
      }
    }
  ]
}

It works fine if I run prettier from the command line.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
azzcommented, Oct 10, 2017

Could it be prettier/prettier#3005?

0reactions
github-actions[bot]commented, Apr 13, 2020

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Prettier vscode extension ignoring config files - Stack Overflow
The extension seems to ignore the config file completely. A collegue has the extension and it works fine with config files. And in...
Read more >
Configuration File - Prettier
This configuration will be overridden by .prettierrc , etc. Here's an annotated description of how different properties map to Prettier's behavior: # Stop...
Read more >
JsPrettier - Package Control
Prettier can ignore formatting files that contain a special comment, called a pragma at the ... This configuration will be overridden by .prettierrc,...
Read more >
Prettier ignores configuration file
I've successfully enabled prettier in the configuration. The problem is it completely ignores the .prettierrc.json file located in my project ...
Read more >
Options - SVGR
Disable runtime config ( .svgrrc , .svgo.yml , .prettierrc ). Default, CLI Override, API Override ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found