require-object-type-annotations
Require type annotations for objects where there is no contextual type..
Attributes
- Included in configs
- ✅ Recommended
- 🔒 Strict
- Fixable
- 🔧 Automated Fixer
- 💡 Suggestion Fixer
- 💭 Requires type information
Rule Details
How to Use
Options
.eslintrc.cjs
module.exports = {
"rules": {
"@typescript-eslint/require-object-type-annotations": "warn"
}
};
This rule is not configurable.