npmeslint95% confidence\u2191 40

How to disable eslint(prettier/prettier) single quotes error

Full error message
I have react-native code. I install ESLint. I use it but its show error.

While I use single quotes it show me error

  Replace 'react-native' with "react-native" eslint(prettier/prettier)

And when I use double qoutes it show me another error

  String must use singlequote. eslint(quotes)

here is the screenshot:

What i want is, how to remove error messages about using single quotes? I prefer using single quotes instead double quotes.

In addition to @Barmar answer, you could also use prettier configuration on a .eslintrc.js file using the following, property: rules: { // ... 'prettier/prettier': ['error', { singleQuote: true }] }

API access

Get this solution programmatically \u2014 free, no authentication.

curl https://depscope.dev/api/error/62938a8a900e2bc5b241b737e502a2b2d54e720bb99f05738f0547485f14bf25
hash \u00b7 62938a8a900e2bc5b241b737e502a2b2d54e720bb99f05738f0547485f14bf25
How to disable eslint(prettier/prettier) single quotes error — DepScope fix | DepScope