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.

Unknown option "config" with value "undefined" was found.

See original GitHub issue
  • prettier-eslint-cli version: 8.8.1
  • prettier version: 1.10.2
  • eslint version: 4.17.0

What you did:

prettier-eslint --write "src/**/*.js"

What happened:

Validation Warning:

  Unknown option "config" with value "undefined" was found.
  This is probably a typing mistake. Fixing it will remove this message.

P.S. It outputs this warning for every file. It seems that prettier-eslint-cli sends unnecessary option config in prettierOptions.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:11
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
stepankuzmincommented, Feb 5, 2018

If you run prettier-eslint-cli with -l debug you’ll see:

  ...
  "prettierOptions": Object {
    "arrowParens": "avoid",
    "bracketSpacing": true,
    "config": undefined,  <--------------------- this is unknown option for prettier
    "filepath": "src/components/App/App.js",
    "insertPragma": undefined,
    "jsxBracketSameLine": false,
    "parser": undefined,
    "printWidth": 100,
    "proseWrap": undefined,
    "requirePragma": undefined,
    "semi": true,
    "singleQuote": true,
    "tabWidth": 2,
    "trailingComma": "none",
    "useTabs": undefined,
  },
  ...

So there is unnecessary config option in prettierOptions.

4reactions
zimmecommented, Feb 5, 2018

I’ll accept a PR for this, otherwise I hope I have time to fix this over the weekend.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why am i getting Unknown option "extensionsToTreatAsEsm ...
Unknown option "extensionsToTreatAsEsm" with value [".js", ".mjs"] was found. This is probably a typing mistake. Fixing it will remove this message. I am ......
Read more >
Configuring Jest
Configuring Jest. Jest's configuration can be defined in the package.json file of your project, or through a jest.config.js ...
Read more >
Configuring Jest compiled - w3resource
In this tutorial we will focus on configuring Jest. Jest's configuration can be defined inside the package.json file of your project, ...
Read more >
Options - Babel.js
A babelrc value passed in the programmatic options will override one set within a configuration file. Note: .babelrc.json files are only loaded if...
Read more >
strictNullChecks - TSConfig Option - TypeScript
When strictNullChecks is true , null and undefined have their own distinct types and you'll get a type error if you try to...
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