Skip to content
This repository has been archived by the owner on May 17, 2019. It is now read-only.

Commit

Permalink
Enforce flow file declarations (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinGrandon authored May 21, 2018
1 parent 1064f0f commit d82001a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @flow
module.exports = {
extends: [
'plugin:flowtype/recommended',
Expand All @@ -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',

Expand Down
1 change: 1 addition & 0 deletions rules/imports.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @flow
module.exports = {
plugins: ['eslint-plugin-import'],

Expand Down

0 comments on commit d82001a

Please sign in to comment.