File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
packages/core-data/src/queried-data Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,10 @@ module.exports = {
5757 selector : 'CallExpression[callee.name=/^(__|_x|_n|_nx)$/] Literal[value=/\\.{3}/]' ,
5858 message : 'Use ellipsis character (…) in place of three dots' ,
5959 } ,
60+ {
61+ selector : 'ImportDeclaration[source.value="redux"] Identifier.imported[name="combineReducers"]' ,
62+ message : 'Use `combineReducers` from `@wordpress/data`' ,
63+ } ,
6064 {
6165 selector : 'ImportDeclaration[source.value="lodash"] Identifier.imported[name="memoize"]' ,
6266 message : 'Use memize instead of Lodash’s memoize' ,
Original file line number Diff line number Diff line change 11/**
22 * External dependencies
33 */
4- import { combineReducers } from 'redux' ;
54import { keyBy , map , flowRight } from 'lodash' ;
65
6+ /**
7+ * WordPress dependencies
8+ */
9+ import { combineReducers } from '@wordpress/data' ;
10+
711/**
812 * Internal dependencies
913 */
You can’t perform that action at this time.
0 commit comments