Skip to content

Commit

Permalink
Merge pull request #194 from MrSwitch/master
Browse files Browse the repository at this point in the history
feat: enable compatible-error
  • Loading branch information
stevemao committed May 22, 2019
2 parents cfcf923 + 0a3844e commit a42b27f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions configuring.md
Expand Up @@ -49,6 +49,7 @@ The following options are available:

- you-dont-need-lodash-underscore:all-warn (all rules set to warn)
- you-dont-need-lodash-underscore:all (all rules set to error)
- you-dont-need-lodash-underscore:compatible-error (rules in which the native implementation is perfectly compatible with the _ one are set to error, the rest are disabled)
- you-dont-need-lodash-underscore:compatible-warn (rules in which the native implementation is perfectly compatible with the _ one are set to warn, the rest are disabled)
- you-dont-need-lodash-underscore:compatible (rules in which the native implementation is perfectly compatible with _ one are set to error, the rest are set to warn)

Expand Down
7 changes: 7 additions & 0 deletions index.js
Expand Up @@ -31,6 +31,13 @@ module.exports.configs = {
rules: configure(all, ERROR)
},

'compatible-error': {
plugins: [
'you-dont-need-lodash-underscore'
],
rules: configure(compatible, ERROR)
},

'compatible-warn': {
plugins: [
'you-dont-need-lodash-underscore'
Expand Down

0 comments on commit a42b27f

Please sign in to comment.