简体   繁体   中英

Eslint double quotes getting error to fix as single quotes

I am facing issue in " " in ESLinter configuration.

Currently if it is ' ' single quoted no would be found.. But problem with double string quote.

Any luck/ rules for it please help, learner in linter config !!

Disable this rule in your eslint config. You should only be using one type of quotes in your code generally though just for the sake of consistency. This is what the rule would look like in your.eslintrc file:

{
    "rules": {
        "quotes": "off"
    },
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM