Skip to content

Commit a3b3a4d

Browse files
authored
fix lodash imports (#78456)
1 parent 895eb09 commit a3b3a4d

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

packages/kbn-std/src/merge.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@
1616
* specific language governing permissions and limitations
1717
* under the License.
1818
*/
19-
// Prefer importing entire lodash library, e.g. import { get } from "lodash"
20-
// eslint-disable-next-line no-restricted-imports
21-
import isPlainObject from 'lodash/isPlainObject';
19+
import { isPlainObject } from 'lodash';
2220
/**
2321
* Deeply merges two objects, omitting undefined values, and not deeply merging Arrays.
2422
*

x-pack/plugins/licensing/public/services/feature_usage_service.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44
* you may not use this file except in compliance with the Elastic License.
55
*/
66

7-
// Prefer importing entire lodash library, e.g. import { get } from "lodash"
8-
// eslint-disable-next-line no-restricted-imports
9-
import isDate from 'lodash/isDate';
7+
import { isDate } from 'lodash';
108
import type { HttpSetup, HttpStart } from 'src/core/public';
119
import { LicenseType } from '../../common/types';
1210

0 commit comments

Comments
 (0)