Skip to content
This repository has been archived by the owner on Nov 19, 2019. It is now read-only.

Commit

Permalink
feat: swapped require-jsdoc rule - __mocks__
Browse files Browse the repository at this point in the history
The `require-jsdoc` rule was added to eslint-plugin-jsdoc, so the deprecated version from eslint can be swapped.
  • Loading branch information
AndrewLeedham committed Jun 10, 2019
1 parent 872dd6d commit 69a3ead
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ module.exports = {
'jsdoc/require-returns-description': 'error',
'jsdoc/require-returns-type': 'off',
'jsdoc/valid-types': 'off',
'require-jsdoc': [
'jsdoc/require-jsdoc': [
'error',
{
require: {
Expand All @@ -64,13 +64,13 @@ module.exports = {
{
files: ['*.js'],
rules: {
'require-jsdoc': 'off'
'jsdoc/require-jsdoc': 'off'
}
},
{
files: ['*.test.{tsx,ts}'],
files: ['*.test.{tsx,ts}', '**/__mocks__/**/*.{tsx,ts}'],
rules: {
'require-jsdoc': 'off',
'jsdoc/require-jsdoc': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/explicit-function-return-type': 'off'
}
Expand Down

0 comments on commit 69a3ead

Please sign in to comment.