[X] Addresses an existing issue: fixes #856, fixes #822
[X] New feature, bugfix, or enhancement
[X] Includes tests
[X] Documentation update
Overview of change:
Updated tslint test for rule
It is forbidden to call Array only like Array, window.Array, global.Array, and globalThis.Array. Other namespaces are allowed.
Allow calls with single number parameter
Is there anything you'd like reviewers to focus on?
I haven't included self from Web Wrokers to list of restricted parents for property access expression because of var self = this pattern. Should I include self too?
Any suggesting what should trigger error for single parameter if type checker is not available?
I think that allowing everything without type checker (like ESLint does) and expect anything assignable to number if checker available will be good enough.
Code is ready for review, ~but I still need to add options description to rule meta and update README.md with new option.~
PR checklist
Overview of change:
Array
only likeArray
,window.Array
,global.Array
, andglobalThis.Array
. Other namespaces are allowed.Is there anything you'd like reviewers to focus on?
I haven't included
self
from Web Wrokers to list of restricted parents for property access expression because ofvar self = this
pattern. Should I includeself
too?Any suggesting what should trigger error for single parameter if type checker is not available? I think that allowing everything without type checker (like ESLint does) and expect anything assignable to number if checker available will be good enough.
Code is ready for review, ~but I still need to add options description to rule meta and update README.md with new option.~