Saltar al contenido principal

prefer-single-quotes

added in: 1.2.0 style

Warns when strings are declared using double quotes instead of single quotes

Example

Bad:

...
const string = "Value"; // LINT

Good:

const string = 'Value';