Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

eslint-plugin-banhammer

textio241MIT0.0.6

disallow certain global functions

eslint, eslintplugin, eslint-plugin

readme

eslint-plugin-banhammer

ESLint rule to prevent specific functions from being called

Installation:

npm install --save-dev eslint-plugin-banhammer

Usage

Add the banhammer module to the plugins directive of your config

Add the following rule to ban the usage of window.getSelection and Object.keys in the codebase:

"banhammer/no-restricted-functions": [
    "error",
    "window.getSelection",
    "Object.keys",
],