clutchski / coffeelint

Lint your CoffeeScript.
http://www.coffeelint.org
Other
1.18k stars 172 forks source link

"\n" is detected in the no_unnecessary_double_quotes rule. #599

Closed potato4d closed 7 years ago

potato4d commented 7 years ago

I found an bug. That error is detected in the no_unnecessary_double_quotes rule even though "\ n" is a necessary escape. Here is a sample source code.

Sample code

https://gist.github.com/potato4d/0f58a3cb1d2e3ac6ac9a20fa4d39347c

swang commented 7 years ago

Hi. Thanks for submitting this issue.

There is no need issue as you don't need to use double quotes to print a control character in javascript.

potato4d commented 7 years ago

Oh, OK. sry