getter-return deprecated
Enforce `return` statements in getters.
Categories:
❌
🔧 Fix
Components used across this site.
规则组件宏定义于 /components/rule.macro.html
。该宏参数支持传入用于渲染的规则列表。
一个规则要有:
deprecated
和 removed
<!-- 导入宏 -->
{ % from 'components/rule.macro.html' import rule % }
<!-- 使用宏 -->
{ { rule({
name: "rule-name",
deprecated: true, // or removed: true
replacedBy: "name-of-replacement-rule"
description: 'Example: Enforce `return` statements in getters.',
categories: {
recommended: true,
fixable: true,
hasSuggestions: false
}
}) } }
getter-return deprecated
Enforce `return` statements in getters.
❌
🔧 Fix
❌
🔧 Fix
Enforce `return` statements in getters.
✅ Extends