[explicit-function-return-type] allowExpressions
false positives and incorrect documentation
#387
Labels
bug
Something isn't working
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Repro
Expected Result
No error
Actual Result
Reported as missing return type
Additional Info
I can see at least two issues:
allowExpressions
should befalse
but it's notI investigated a bit and was able to figure out why tests are not failing:
filename
key is either not set or set to'something.js'
in tests withallowExpressions
. This tells eslint to skip all typescript rules somehow. I am easily able to reproduce in tests by setting thefilename
to'test.ts'
.Versions
@typescript-eslint/eslint-plugin
cebcfe64
@typescript-eslint/parser
cebcfe64
TypeScript
3.3.3
ESLint
5.14.1
node
11.12.0
npm
6.9.0
The text was updated successfully, but these errors were encountered: