uselessConstantConstant '{{name}}' is only referenced once in the same scope. Inline it directly, or move it to a higher scope if reference stability is needed.small-rules/no-useless-constantsDisallow constants that do not add value.
uselessConstantConstant '{{name}}' is only referenced once in the same scope. Inline it directly, or move it to a higher scope if reference stability is needed.uselessConstantNoFixConstant '{{name}}' is only referenced once in the same scope. It cannot be auto-inlined because the initializer is not safely movable or the declaration has attached comments. Inline it manually, or move it to a higher scope if reference stability is needed.uselessConstantsConstants '{{names}}' are only referenced once in the same scope. Inline them directly, or move them to a higher scope if reference stability is needed.This rule accepts one options object after the severity.
const TITLE_OFFSET = 225;const TEXT_NATIVE = { Offset: TITLE_OFFSET };After auto-fix
const TEXT_NATIVE = { Offset: 225 };const TEXT_NATIVE = { Offset: 225 };