Closed AuthorProxy closed 8 years ago
Simple test case: console.log("\\" + 'test'); Converted to: console.log('\' + 'test'); (which is not valid js string)
console.log("\\" + 'test');
console.log('\' + 'test');
JSCS should preserve escaping console.log('\\' + 'test'); Config file: https://gist.github.com/AuthorProxy/bffb5f9aa733e3ca6279#file-jscsrc
console.log('\\' + 'test');
We use https://github.com/sindresorhus/to-single-quotes package for fixing this, you probably should open an issue there instead
Simple test case:
console.log("\\" + 'test');
Converted to:console.log('\' + 'test');
(which is not valid js string)JSCS should preserve escaping
console.log('\\' + 'test');
Config file: https://gist.github.com/AuthorProxy/bffb5f9aa733e3ca6279#file-jscsrc