Skip to content

Commit

Permalink
Enhancement: Add "recommended" config which auto-adds plugins and a…
Browse files Browse the repository at this point in the history
…ll current rules (one as a warning)
  • Loading branch information
brettz9 committed Oct 24, 2019
1 parent 8681162 commit 9886b30
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
'use strict';

module.exports = {
configs: {
recommended: {
plugins: ['chai-expect'],
rules: {
'chai-expect/no-inner-compare': 'warning',
'chai-expect/missing-assertion': 'error',
'chai-expect/terminating-properties': 'error'
}
}
},
rules: {
'no-inner-compare': require('./lib/rules/no-inner-compare'),
'missing-assertion': require('./lib/rules/missing-assertion'),
Expand Down

0 comments on commit 9886b30

Please sign in to comment.