chore: fix flow linting

This commit is contained in:
Justin Starry
2020-02-28 17:45:57 +08:00
committed by Michael Vines
parent c09e826c15
commit 8b95f41c51
4 changed files with 15 additions and 0 deletions

View File

@ -8,12 +8,14 @@ module.exports = {
'eslint:recommended',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:flowtype/recommended',
],
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module',
ecmaVersion: 8,
},
plugins: ['flowtype'],
rules: {
'no-trailing-spaces': ['error'],
'import/first': ['error'],
@ -45,6 +47,7 @@ module.exports = {
],
'require-await': ['error'],
semi: ['error', 'always'],
'flowtype/generic-spacing': [0],
},
// Used to lint the TypeScript type declaration file