Skip to content

Commit

Permalink
feat: disable @typescript-eslint/explicit-function-return-type rule f…
Browse files Browse the repository at this point in the history
…or tests

it's a bit annoying, there is no need to specify return types for test case function body it('...', fn)
  • Loading branch information
vladholubiev committed Apr 17, 2019
1 parent b9d2289 commit 59477ff
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,14 @@ module.exports = {
'padding-line-between-statements': paddingLineBetweenStatements,
'@typescript-eslint/no-use-before-define': 0,
'@typescript-eslint/camelcase': 0
}
},
overrides: [
{
files: ['**/*.test.ts'],
// it's a bit annoying, there is no need to specify return types for test case function body it('...', fn)
rules: {
'@typescript-eslint/explicit-function-return-type': 0
}
}
]
};

0 comments on commit 59477ff

Please sign in to comment.