An ESLint plugin that disallows specified method calls on given objects. Current version 0.1.0, released as an early prototype with unstable API (under active development). Key differentiator: allows custom configuration of blocked methods per object via ESLint rules, targeting method calls like `foo.bar()` rather than generic function calls. Alternative to no-restricted-syntax with a more declarative approach. Development appears stalled; no updates since initial release.
npm install eslint-plugin-disallow-methodsVerified import paths — ran on the pinned version, not inferred.
Shows basic ESLint configuration to disallow console.log and any method on eval.
Lock version to exact 0.1.0 or consider alternative plugins.
Use full scoped rule name in rules configuration.
Use '*' as method value to block all method calls on that object.
Run 'npm install eslint-plugin-disallow-methods --save-dev' and ensure node_modules is correct.
Change rule name to 'disallow-methods/disallow-methods'.