From 70cc953a136609c4c889740ba0e7d4ca0c641b56 Mon Sep 17 00:00:00 2001 From: Andrew Duthie Date: Mon, 1 Apr 2019 15:40:50 -0400 Subject: [PATCH] NPM Package JSON Lint Config: Remove is-plain-obj dependency (#14751) * NPM Package JSON Lint Config: Remove is-plain-obj dependency * NPM Package JSON Lint Config: Resolve syntax error in isPlainObject function call --- package.json | 1 - packages/npm-package-json-lint-config/test/index.test.js | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 0f979954ba2dc0..67714b1706d143 100644 --- a/package.json +++ b/package.json @@ -95,7 +95,6 @@ "glob": "7.1.2", "husky": "0.14.3", "is-equal-shallow": "0.1.3", - "is-plain-obj": "1.1.0", "jsdom": "11.12.0", "lerna": "3.11.1", "lint-staged": "7.3.0", diff --git a/packages/npm-package-json-lint-config/test/index.test.js b/packages/npm-package-json-lint-config/test/index.test.js index 1660dda0a8a884..1fb05298c60736 100644 --- a/packages/npm-package-json-lint-config/test/index.test.js +++ b/packages/npm-package-json-lint-config/test/index.test.js @@ -1,7 +1,7 @@ /** * External dependencies */ -import isPlainObj from 'is-plain-obj'; +import { isPlainObject } from 'lodash'; /** * Internal dependencies @@ -10,10 +10,10 @@ import config from '../'; describe( 'npm-package-json-lint config tests', () => { it( 'should be an object', () => { - expect( isPlainObj( config ) ).toBeTruthy(); + expect( isPlainObject( config ) ).toBeTruthy(); } ); it( 'should have rules property as an object', () => { - expect( isPlainObj( config.rules ) ).toBeTruthy(); + expect( isPlainObject( config.rules ) ).toBeTruthy(); } ); } );