trailingComma validation error
See original GitHub issueVersion: 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:
- Created 7 years ago
- Comments:39 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 expectedtrailingComma
to be a boolean and was being passed the stringall
. Should prettier-atom check that the version of prettier it will use is compatible with the options being passed?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