@exodus/eslint-plugin-basic-utils

2.0.0 • Public • Published

@exodus/eslint-plugin-basic-utils

Usage

// .eslintrc.js
{
  // ...
  plugins: ['@exodus/eslint-plugin-basic-utils'],
  rules: {
    'basic-utils/invalid-args-pick-omit': 'error',
  }
}

Rules

invalid-args-pick-omit

pick and omit need an array as second argument. This rule reports if this is not the case.

// Bad

pick(obj, 'key')

omit(obj, 'key')

// Good

pick(obj, ['key'])
pick(obj, keys)

omit(obj, ['key'])
omit(obj, keys)

Readme

Keywords

none

Package Sidebar

Install

npm i @exodus/eslint-plugin-basic-utils

Weekly Downloads

1,122

Version

2.0.0

License

UNLICENSED

Unpacked Size

6.26 kB

Total Files

8

Last publish

Collaborators

  • joshuabot