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.

Rule "quotes": ["error", "backtick"] causes errors

See original GitHub issue

If I use this rule

"quotes": ["error", "backtick"]

I get errors like this

prettier-eslint [ERROR]: prettier formatting failed due to a prettier error
prettier-eslint-cli [ERROR]: There was an error formatting "packages/gatsby/lib/utils/webpack.config.js": 
    ● Validation Error:

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

      Example:
      {
        "singleQuote": false
      }

Using prettier-eslint-cli 3.4.2

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
kentcdoddscommented, Apr 28, 2017

Merged. Thanks!

And I wonder if the long stack traces are necessary? They pollute the output quite a bit.

That’s kind of the point though. You can also use debug instead of trace. Thanks for the feedback. I added a note about only running it on one 😃

Thanks again!

1reaction
kentcdoddscommented, Apr 28, 2017

I added a section in the README that should help you find out what the problem is: debugging

Read more comments on GitHub >

github_iconTop Results From Across the Web

quotes - ESLint - Pluggable JavaScript Linter
This rule enforces the consistent use of either backticks, double, or single quotes. Options. This rule has two options, a string option and...
Read more >
How to disable eslint(prettier/prettier) single quotes error
I use it but its show error. While I use single quotes it show me error. Replace 'react-native' with "react-native" eslint( ...
Read more >
What does ` (backquote/backtick) mean in commands?
This is a backtick. A backtick is not a quotation sign. It has a very special meaning. Everything you type between backticks is...
Read more >
eslint-config-prettier - Awesome JS
If you'd like all strings to use backticks (never quotes), enable the "backtick" option. Example ESLint configuration: { "rules": { "quotes": ["error" ...
Read more >
Strings - Manual - PHP
To specify a literal single quote, escape it with a backslash ( \ ). To specify a literal backslash, double it ( \\...
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