Skip to content

Commit a8b4e40

Browse files
ferossalberto
authored andcommitted
Fix: Install required eslint plugin for "standard" guide (fixes #6656) (#6657)
`eslint-config-standard` peer depends on `eslint-plugin-promise`, so let's install that for users.
1 parent 720686b commit a8b4e40

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/config/config-initializer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ function getConfigForStyleGuide(guide) {
278278
var guides = {
279279
google: {extends: "google"},
280280
airbnb: {extends: "airbnb", plugins: ["react"]},
281-
standard: {extends: "standard", plugins: ["standard"]}
281+
standard: {extends: "standard", plugins: ["standard", "promise"]}
282282
};
283283

284284
if (!guides[guide]) {

tests/lib/config/config-initializer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ describe("configInitializer", function() {
195195
it("should support the standard style guide", function() {
196196
var config = init.getConfigForStyleGuide("standard");
197197

198-
assert.deepEqual(config, {extends: "standard", installedESLint: true, plugins: ["standard"]});
198+
assert.deepEqual(config, {extends: "standard", installedESLint: true, plugins: ["standard", "promise"]});
199199
});
200200

201201
it("should throw when encountering an unsupported style guide", function() {

0 commit comments

Comments
 (0)