@exodus/eslint-plugin-basic-utils

1.0.2 • 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

325

Version

1.0.2

License

UNLICENSED

Unpacked Size

3.97 kB

Total Files

5

Last publish

Collaborators

  • joshuabot