Skip to content

Commit

Permalink
Disable require-jsdoc rule in test files
Browse files Browse the repository at this point in the history
  • Loading branch information
eaviles committed May 20, 2019
1 parent ebbc375 commit fa76e0c
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 51 deletions.
13 changes: 13 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ module.exports = {
'plugin:unicorn/recommended',
'prettier/unicorn'
],
overrides: [
{
files: ['*.test.js', '**/__mocks__/*.js'],
rules: {
'global-require': 'off',
'jsdoc/require-jsdoc': 'off'
}
}
],
parserOptions: {
sourceType: 'script'
},
Expand Down Expand Up @@ -43,6 +52,10 @@ module.exports = {
}
],
'jsdoc/require-hyphen-before-param-description': 'warn',
'jsdoc/require-jsdoc': [
'warn',
{ require: { ClassDeclaration: true, MethodDefinition: true } }
],
'jsdoc/require-returns-description': 'off',
'no-await-in-loop': 'off',
'security/detect-object-injection': 'off',
Expand Down
1 change: 1 addition & 0 deletions lib/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ describe('lib/index', () => {
expect(index).toEqual({
env: expect.any(Object),
extends: expect.any(Array),
overrides: expect.any(Array),
parserOptions: {
sourceType: 'script'
},
Expand Down
83 changes: 32 additions & 51 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fa76e0c

Please sign in to comment.