quotes
eslint
Safe autofix
eslint.config.js
export default [
{
rules: {
"quotes": "error",
},
},
];This rule is deprecated. Check its documentation for a replacement before enabling it.
Enforce the consistent use of either backticks, double, or single quotes
var single = 'single';
var unescaped = 'a string containing "double" quotes';
var backtick = `back\ntick`; // you can use \n in single or double quoted stringsvar double = "double";
var unescaped = "a string containing 'single' quotes";var single = 'single';
var double = "double";
var unescaped = 'a string containing `backticks`';var double = "double";
var backtick = `back
tick`; // backticks are allowed due to newline
var backtick = tag`backtick`; // backticks are allowed due to tagvar single = 'single';
var backtick = `back${x}tick`; // backticks are allowed due to substitution"use strict"; // directives must use single or double quotes
var backtick = `backtick`;
var obj = { 'prop-name': `value` }; // backticks not allowed for property namesExamples from the ESLint documentation.
quotes
eslint
export default [
{
rules: {
"quotes": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Disallow the use of alert, confirm, and prompt
Disallow certain properties on certain objects
Enforce consistent brace style for all control statements