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

Commit d40ad92

Browse files
committed
feat(base): add new eslint-plugin-flowtype rules
1 parent e3f53e6 commit d40ad92

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/eslint-config/flowtype.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ module.exports = {
3131
'flowtype/require-exact-type': 'off',
3232
'flowtype/require-parameter-type': 'off',
3333
'flowtype/require-return-type': 'off',
34+
'flowtype/require-types-at-top': 'error',
3435
'flowtype/require-valid-file-annotation': [
3536
'error',
3637
'always',
@@ -41,6 +42,7 @@ module.exports = {
4142
'flowtype/require-variable-type': 'off',
4243
'flowtype/sort-keys': 'off',
4344
'flowtype/type-id-match': ['error', '^([A-Z][a-z0-9]+)+Type$'],
45+
'flowtype/type-import-style': ['error', 'identifier'],
4446
'flowtype/use-flow-type': 'error',
4547
'flowtype/valid-syntax': 'off',
4648
},

0 commit comments

Comments
 (0)