Skip to content
This repository was archived by the owner on Mar 29, 2020. It is now read-only.

Commit c1b0a5a

Browse files
committed
feat(flowtype): allow usage of any type with no-weak-types rule
1 parent 5dc939d commit c1b0a5a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

flowtype.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,14 @@ module.exports = {
1414
'flowtype/no-dupe-keys': 'error',
1515
'flowtype/no-primitive-constructor-types': 'error',
1616
'flowtype/no-types-missing-file-annotation': 'error',
17-
'flowtype/no-weak-types': 'error',
17+
'flowtype/no-weak-types': [
18+
'error',
19+
{
20+
any: false,
21+
Object: true,
22+
Function: true,
23+
},
24+
],
1825
'flowtype/require-parameter-type': 'off',
1926
'flowtype/require-return-type': 'off',
2027
'flowtype/require-valid-file-annotation': [

0 commit comments

Comments
 (0)