I'm new to eslint and it's spewing out a ton of errors telling me to use doublequotes:
error Strings must use doublequote
That's not my preference. I've got an .eslintrc file set up with the basics:
{ "env": { "node": 1 } }
I'd like to configure it for single quotes.
To completely disable the quotes rule, set it to either 0 or off in your eslint configuration file (see the different configuration formats here). Example for disabling in json configuration file: { "rules": { "quotes": "off", ... } }
Enclosing Quotation Marks That means strings containing single quotes need to use double quotes and strings containing double quotes need to use single quotes. "It's six o'clock."; 'Remember to say "please" and "thank you."'; Alternatively, you can use a backslash \ to escape the quotation marks.
Enclosing characters in single quotes preserves the literal value of each character within the quotes.
http://eslint.org/docs/rules/quotes.html
{ "env": { "node": 1 }, "rules": { "quotes": [2, "single", { "avoidEscape": true }] } }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With