Skip to content

Commit

Permalink
Check for "dependencies" and "peerDepenendencies"
Browse files Browse the repository at this point in the history
Fix for following issues:

- eslint/eslint#3458
- eslint/eslint#2518
  • Loading branch information
niksy committed Jun 23, 2016
1 parent f6c16b5 commit b84cebb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions package.json
Expand Up @@ -20,6 +20,9 @@
"lodash": "^4.13.1",
"mocha": "^2.4.5"
},
"peerDependencies": {
"eslint-plugin-promise": "^1.3.2"
},
"engines": {
"node": ">=4"
},
Expand Down
9 changes: 9 additions & 0 deletions test/index.js
Expand Up @@ -12,6 +12,15 @@ function runEslint ( code, configFile ) {
});
}

describe('Dependencies', function () {

it('all "dependencies" are defined in "peerDependencies"', function () {
var pkg = require('../package.json');
assert.deepStrictEqual(pkg.dependencies, pkg.peerDependencies);
});

});

describe('Config format', function () {

var config = require('../');
Expand Down

0 comments on commit b84cebb

Please sign in to comment.