diff --git a/.eslintrc.js b/.eslintrc.js index 64ce20d480d398..2a6ad63b1eafc7 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -57,6 +57,10 @@ module.exports = { selector: 'CallExpression[callee.name=/^(__|_x|_n|_nx)$/] Literal[value=/\\.{3}/]', message: 'Use ellipsis character (…) in place of three dots', }, + { + selector: 'ImportDeclaration[source.value="redux"] Identifier.imported[name="combineReducers"]', + message: 'Use `combineReducers` from `@wordpress/data`', + }, { selector: 'ImportDeclaration[source.value="lodash"] Identifier.imported[name="memoize"]', message: 'Use memize instead of Lodash’s memoize', diff --git a/packages/core-data/src/queried-data/reducer.js b/packages/core-data/src/queried-data/reducer.js index 2ddf82f9045f46..8e78544dcdbe2f 100644 --- a/packages/core-data/src/queried-data/reducer.js +++ b/packages/core-data/src/queried-data/reducer.js @@ -1,9 +1,13 @@ /** * External dependencies */ -import { combineReducers } from 'redux'; import { keyBy, map, flowRight } from 'lodash'; +/** + * WordPress dependencies + */ +import { combineReducers } from '@wordpress/data'; + /** * Internal dependencies */