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.

trailingComma validation error

See original GitHub issue

Version: 0.21.2

My config.cson has:

  "prettier-atom":
    prettierOptions: {}
    singleQuote: true
    trailingComma: false
    useEslint: true

Error:

prettier-atom: ● Validation Error:

Option "trailingComma" must be of type: boolean but instead received: string

Example: { "trailingComma": false }
● Validation Error:
  Option "trailingComma" must be of type:
    boolean
  but instead received:
    string
  Example:
  {
    "trailingComma": false
  }

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
markacolacommented, Apr 24, 2017

Just for anyone coming across this, my issue was a old version of prettier installed as a devDependency of the project I was working on, which expected trailingComma to be a boolean and was being passed the string all. Should prettier-atom check that the version of prettier it will use is compatible with the options being passed?

1reaction
dnehringcommented, Apr 4, 2017

I just updated prettier-atom and get the same error as Aaron. When I enabled “ESLint integration” it immediately fails with the error listed above. My config.cson doesn’t have anything listed except useEslint: true

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to setup Eclipse to be warned about trailing comma in ...
I would expect it to be in Preferences under JavaScript -> Validator -> Errors/Warnings with the other similar options, but it's not. –...
Read more >
Better error message for missing trailing comma in ModelForm ...
However when I validate the models, the following error comes up. django.core.exceptions.FieldError: Unknown field(s) (y, b, d, o) specified for Post.
Read more >
Configuration File - Prettier
prettier.config.js or .prettierrc.js module.exports = { trailingComma: "es5", tabWidth: 4, ... If you'd like a JSON schema to validate your configuration, ...
Read more >
ACL (Access Control List) - SupportSystem
IPs cannot have a trailing comma otherwise a validation error will be thrown. ACL Validation Error. Apply To¶. After the ACL List is...
Read more >
Solved: JSON parse error - Google Cloud Community
I have been seeing errors the last couple hours that were not. ... We will validate the trailing comma case before attempting the...
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