最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Eslint double quotes getting error to fix as single quotes - Stack Overflow

programmeradmin2浏览0评论

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 !!

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 !!

Share Improve this question asked Nov 14, 2019 at 20:30 Anupam MauryaAnupam Maurya 2,2411 gold badge24 silver badges28 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 9

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"
    },
}
发布评论

评论列表(0)

  1. 暂无评论