solhint
solhint copied to clipboard
Drop requirement of double quotes in string literals
Solidity allows double or single quotes in string literals. It's useful in cases where the string itself contains quotes, it removes the need for escaping them. Banning one flavor upfront doesn't seem reasonable, it fights usage of a genuine readability improvement tool. Single quotes aren't confusing for the readers and AFAIK don't pose any threat of introducing bugs.
If avoiding single quotes is important, maybe they could be allowed only if the string contains double quotes?
JS has backtick but solidity don't. I have to escape every double quote or // solhint-disable-line everywhere.