Skip to content

Commit

Permalink
NPM Package JSON Lint Config: Remove is-plain-obj dependency (#14751)
Browse files Browse the repository at this point in the history
* NPM Package JSON Lint Config: Remove is-plain-obj dependency

* NPM Package JSON Lint Config: Resolve syntax error in isPlainObject function call
  • Loading branch information
aduth authored Apr 1, 2019
1 parent 02d0184 commit 70cc953
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions packages/npm-package-json-lint-config/test/index.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* External dependencies
*/
import isPlainObj from 'is-plain-obj';
import { isPlainObject } from 'lodash';

/**
* Internal dependencies
Expand All @@ -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();
} );
} );

0 comments on commit 70cc953

Please sign in to comment.