How to tell eslint that you prefer single quotes around your strings
问题 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. 回答1: http://eslint.org/docs/rules/quotes.html { "env": { "node": 1 }, "rules": { "quotes": [2, "single", { "avoidEscape": true }] } } 来源: https://stackoverflow.com/questions/29312957/how-to-tell-eslint-that-you-prefer-single