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"
      }
    }
  ]
}

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
not-an-aardvarkcommented, Oct 10, 2017
0reactions
not-an-aardvarkcommented, Jan 16, 2018

Agreed, I think this has been fixed since https://github.com/prettier/prettier/issues/3005 is closed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

prettierc overrides are ignored · Issue #237 - GitHub
It seems the plugin ignores prettier's overrides options. E.g. the following .prettierc fails for the directory build_tools :.
Read more >
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 >
Ignoring Code - Prettier
Use .prettierignore to ignore (i.e. not reformat) certain files and folders completely. Use “prettier-ignore” comments to ignore parts of files.
Read more >
Options - Prettier
"ignore" - Whitespace (or the lack of it) around all tags is considered insignificant. Default, CLI Override, API Override. "css", --html-whitespace-sensitivity ...
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