suspicious/noRedundantUseStrict
suspicious · since 1.0.0
Safe autofixRecommended
biome.json
{
"linter": {
"rules": {
"suspicious": {
"noRedundantUseStrict": "error"
}
}
}
}"use strict";
function foo() {
"use strict";
}"use strict";
"use strict";
function foo() {
}function foo() {
"use strict";
"use strict";
}function foo() {
} function foo() {
"use strict";
}
function bar() {
"use strict";
}Examples from the Biome documentation.
ESLint does not have this rule.
Oxlint does not have this rule.
suspicious/noRedundantUseStrict
suspicious · since 1.0.0
{
"linter": {
"rules": {
"suspicious": {
"noRedundantUseStrict": "error"
}
}
}
}Prevents React-specific JSX properties from being used.
Disallow comparing values to null in Sass @if conditions.
Disallow raw text outside <Text> components in React Native.
Disallow shorthand properties that override earlier, more specific properties.
Disallow deep imports from the react-native package.
Disallow comparison of expressions modifying the string case with non-compliant value.