Skip to content

Commit

Permalink
feat: Update rules documentation (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioCadenas authored Jul 28, 2023
1 parent fe75de7 commit b10c1a6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/rules/no-direct-lodash-import.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,11 @@
🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).

<!-- end auto-generated rule header -->

For example:

| Import | Result |
|-------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------- |
| `import { isEqual as equal, get, memoize } from 'lodash';` | `import equal from 'lodash/isEqual';`<br>`import get from 'lodash/get';`<br>`import memoize from 'lodash/memoize';` |
| `import _ from 'lodash';`<br><br>`_.isEqual('a', 'b');`<br>`_.get({}, 'a.b');` | `import isEqual from 'lodash/isEqual';`<br>`import get from 'lodash/get';`<br><br>`isEqual('a', 'b');`<br>`get({}, 'a.b');` |
| `import isEqual from 'lodash.isequal';` | `import isEqual from 'lodash/isEqual';`

0 comments on commit b10c1a6

Please sign in to comment.