Skip to content

Commit 30ffc5e

Browse files
committed
no-unused-vars doesn't work with Flow types
1 parent cd9b192 commit 30ffc5e

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.eslintrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"strict": [2, "never"],
1515
"react/jsx-uses-react": 2,
1616
"react/jsx-uses-vars": 2,
17-
"react/react-in-jsx-scope": 2
17+
"react/react-in-jsx-scope": 2,
18+
"no-unused-vars": 0
1819
},
1920
"plugins": [
2021
"react"

src/createDispatcher.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import compose from './utils/composeMiddleware';
44

5-
import { Middleware, Store, Action, State, Dispatcher } from './types';
5+
import type { Middleware, Store, Action, State, Dispatcher } from './types';
66

77
export default function createDispatcher(
88
store: Store,

src/utils/composeStores.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import mapValues from 'lodash/object/mapValues';
44

5-
import { Store, Action, State } from '../types';
5+
import type { Store, Action, State } from '../types';
66

77
export default function composeStores(stores: Store[]): Store {
88
return function Composition(state: State = {}, action: Action) {

0 commit comments

Comments
 (0)