style/noShoutyConstants
style · since 1.0.0
Unsafe autofix
biome.json
{
"linter": {
"rules": {
"style": {
"noShoutyConstants": "error"
}
}
}
}Disallow constants whose string value is the same as their uppercase name.
const FOO = "FOO";
console.log(FOO);let FOO = "FOO";
console.log(FOO);export const FOO = "FOO";
console.log(FOO);function f(FOO = "FOO") {
return FOO;
}Examples from the Biome documentation.
ESLint does not have this rule.
Oxlint does not have this rule.
style/noShoutyConstants
style · since 1.0.0
{
"linter": {
"rules": {
"style": {
"noShoutyConstants": "error"
}
}
}
}Require the JSON top-level value to be an array or object.
Checks if a default export exports the same symbol as a named export.
Disallow template literals if interpolation and special-character handling are not needed
Disallow unused error parameters in catch clauses.