Quantcast
Channel: how to make .eslintrc accept single quotes - Stack Overflow
Browsing latest articles
Browse All 5 View Live

Answer by First Arachne for how to make .eslintrc accept single quotes

I think you want to disable "quote" and "prettier/prettier" rules.Please you can pass 0 to disable a rule.{"rules": {"quotes": 0,"prettier/prettier": 0 }}

View Article



Answer by Mohit Mishra for how to make .eslintrc accept single quotes

Based on the heading the solution is just to add a rule to allow single quotes. Refer below config, checkout rules object:module.exports = { env: { browser: true, es2020: true, }, extends:...

View Article

Answer by David Bradshaw for how to make .eslintrc accept single quotes

Run eslint with the —fix flag and the problem will go away

View Article

Answer by Gh05d for how to make .eslintrc accept single quotes

You can try to turn the rule off by passing 0 in the .eslintrc config file:{"rules": {"quotes": [0, "single"] }}

View Article

Image may be NSFW.
Clik here to view.

how to make .eslintrc accept single quotes

I am facing this error when I 'npm start' my project:I already know the problem is in the .eslintrc file so I added this:"rules": {"quotes": [2, "single"],}and it's not working and it's the only...

View Article

Browsing latest articles
Browse All 5 View Live




Latest Images