Skip to content

Commit

Permalink
Merge pull request #281 from lo1tuma/all-config
Browse files Browse the repository at this point in the history
Add "all" config preset which enables all rules
  • Loading branch information
lo1tuma authored May 26, 2021
2 parents 46f2ddb + a775103 commit 8434c97
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,35 @@ module.exports = {
'valid-test-description': require('./lib/rules/valid-test-description')
},
configs: {
all: {
env: { mocha: true },
plugins: [ 'mocha' ],
rules: {
'mocha/handle-done-callback': 'error',
'mocha/max-top-level-suites': 'error',
'mocha/no-async-describe': 'error',
'mocha/no-exclusive-tests': 'error',
'mocha/no-exports': 'error',
'mocha/no-global-tests': 'error',
'mocha/no-hooks': 'error',
'mocha/no-hooks-for-single-case': 'error',
'mocha/no-identical-title': 'error',
'mocha/no-mocha-arrows': 'error',
'mocha/no-nested-tests': 'error',
'mocha/no-pending-tests': 'error',
'mocha/no-return-and-callback': 'error',
'mocha/no-return-from-async': 'error',
'mocha/no-setup-in-describe': 'error',
'mocha/no-sibling-hooks': 'error',
'mocha/no-skipped-tests': 'error',
'mocha/no-synchronous-tests': 'error',
'mocha/no-top-level-hooks': 'error',
'mocha/prefer-arrow-callback': 'error',
'mocha/valid-suite-description': 'error',
'mocha/valid-test-description': 'error'
}
},

recommended: {
env: { mocha: true },
plugins: [ 'mocha' ],
Expand Down

0 comments on commit 8434c97

Please sign in to comment.