eslint-plugin-banhammer

0.0.6 • Public • Published

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",
],

Dependents (0)

Package Sidebar

Install

npm i eslint-plugin-banhammer

Weekly Downloads

37

Version

0.0.6

License

MIT

Last publish

Collaborators

  • niall-textio
  • alozanov77
  • dustin-textio
  • yixiang
  • textio-greg
  • brad2
  • jsikos
  • ryanjsloan
  • textio-circle
  • daviddav
  • meghan_textio
  • jensen_textio
  • max-winderbaum
  • bobby_textio
  • chrisz_textio
  • adamsanderson-at-textio
  • dawnwright
  • cass.textio
  • oliviagunton
  • dani.textio
  • mattiejean
  • natpeterson
  • tomcarmony
  • javellar
  • jordanah
  • awtam