Validation Warning
See original GitHub issueprettier-eslint-cli
version: 4.4.2prettier
version: 1.9.2eslint
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.
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:
- Created 6 years ago
- Comments:10 (6 by maintainers)
Top 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 >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
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.
I’m thinking we should just be able to strip all
kebab-case
options before we invokeformatFilesFromArgv
with the options from yarg’s parser.