eslintprettier

allow singleQuote and backtick in eslint


I need to use only signleQuote and backTick in the eslint .

These are my codes in the json file :

"rulse":{
    "quotes": "error",
    "jsx-quotes": [2, "prefer-single"]
}

Solution

  • There is a misspelling and you must tell eslint what quotes to use:

    "rules": {
       "quotes": ["error", "single", "avoid-escape"]
    }