← Back

quotes warning

Enforce the use of single quotes when using JavaScript

Examples

❌  Incorrect

const array = [ , , ];
const array = [ 'red', , 'green'];

✅  Correct

const array1 = [];
const array2 = [ 'red', 'green' ];
const array3 = new Array(23);