ESLint: Line 403 exceeds the maximum line length of 120 (max-len)
I have a long string, which I built using ES6 template strings, but I want it to be without line breaks:
var string = `Let me be the 'throws Exception’ to your 'public static void
main (String[] args)’. I will accept whatever you give me my ${love}.`
console.log(string);
Result:
Let me be the 'throws Exception’ to your 'public static void
main (String[] args)’. I will accept whatever you give me xxx.
My expectation:
Let me be the 'throws Exception’ to your 'public static void main (String[] args)’. I will accept whatever you give me xxx.
Requirements:
I cannot disable the eslint rule, as enforcement is necessary.
I cannot put the data in a separate file, as the data is dynamic.
I cannot concatenate multiple shorter strings, since that is too much work.