complete/no-object-any
🚫 This rule is disabled in the ✅ recommended config.
📝 Disallows declaring objects and arrays that do not have a type.
💭 This rule requires type information.
This is useful because the noImplicitAny TypeScript compiler flag does not
always catch this pattern. If you want to purge all of the any from your
codebase, you need this rule.
Rule Details
Section titled “Rule Details”// Badconst myMap = new Map();
// Goodconst myMap = new Map<string, string>();// Badconst myArray = [];
// Goodconst myArray: string[] = [];Options
Section titled “Options”This rule is not configurable.
