From d82001a39cd1074bd543026f3dc3bb606e92ba5a Mon Sep 17 00:00:00 2001 From: Kevin Grandon Date: Mon, 21 May 2018 10:53:14 -0700 Subject: [PATCH] Enforce flow file declarations (#67) --- index.js | 4 ++++ rules/imports.js | 1 + 2 files changed, 5 insertions(+) diff --git a/index.js b/index.js index 3d8f2af..e644adf 100644 --- a/index.js +++ b/index.js @@ -1,3 +1,4 @@ +// @flow module.exports = { extends: [ 'plugin:flowtype/recommended', @@ -9,6 +10,9 @@ module.exports = { plugins: ['eslint-plugin-flowtype', 'eslint-plugin-react'], rules: { + // Enforce flow file declarations + 'flowtype/require-valid-file-annotation': ['error', 'always'], + // We should be using flow rather than propTypes 'react/prop-types': 'off', diff --git a/rules/imports.js b/rules/imports.js index 07eaf66..4e8af64 100644 --- a/rules/imports.js +++ b/rules/imports.js @@ -1,3 +1,4 @@ +// @flow module.exports = { plugins: ['eslint-plugin-import'],