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.

Validation Warning

See original GitHub issue
  • prettier-eslint-cli version: 4.4.2
  • prettier version: 1.9.2
  • eslint version: 3.19.0

What you did: I have updated my personal project, bumping all my dependencies via rm -R node_modules && npm install.

My prettier-eslint-cli version was bumped from 4.1.0 to 4.4.2.

The way I run it, is through an npm script on my package.json, like:

"prettier": "npx prettier-eslint --ignore \"node_modules/**\" --ignore \"public/**\" --single-quote --trailing-comma es5 --write \"**/*.js\"",

So on the terminal, I run npm run prettier

What happened:

Since the update, everything is fine, but I get very annoying warning messages:

● Validation Warning:

  Unknown option "trailing-comma" with value "es5" was found. Did you mean "trailingComma"?
  This is probably a typing mistake. Fixing it will remove this message.

● Validation Warning:

  Unknown option "single-quote" with value true was found. Did you mean "singleQuote"?
  This is probably a typing mistake. Fixing it will remove this message.
captura de pantalla 2017-12-12 12 31 14

I have been struggling, searching for trailing-comma and single-quote on the whole project without success, I have been reading all possible documentation and changelog from prettier, prettier-eslint, prettier-cli, prettier-eslint-cli and eslint, I tried camel casing the options on the cli command, but I have no way of getting rid of this warning.

Any idea ?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
zimmecommented, Dec 12, 2017

Thank you for taking the time to look into this. It helped me figure out where the problem was a bit faster. Also, always nice to fix bugs.

1reaction
zimmecommented, Dec 12, 2017

I’m thinking we should just be able to strip all kebab-case options before we invoke formatFilesFromArgv with the options from yarg’s parser.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What are the validation warnings that appear when we try to ...
There are two types of validation errors. The first is a “soft warning” that indicates there is a potential error on the form....
Read more >
Validation-Errors-Warnings - Research and Development
Validation-Errors-Warnings. The Kuali Research validation tool is useful but does not replace the knowledge and skills of a research administrator.
Read more >
Form Usability: Validations vs Warnings - Baymard Institute
There's a major difference between form validations and warnings. Form validations enforce a set of rules and won't allow the user to ......
Read more >
EDGAR XBRL Validation Warnings - SEC.gov
Message ID Message Subs... dq‑0555‑‑Facts‑Unexpected Submission type should not report namespace facts. 6.5.55 dq‑0556‑‑Facts‑Unexpected Submission type should not report namespace facts. 6.5.56 du‑0709‑Role‑Ending‑Mismatch RoleType should end...
Read more >
Validate user input using errors and warnings
Validation of a rulebase is done in two ways: using error and warning events, and by specifying validations on user input. Validation will...
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