Skip to content

Commit

Permalink
Fix: update peerDependencies of airbnb option for --init (fixes #6843
Browse files Browse the repository at this point in the history
…) (#6846)
  • Loading branch information
vitorbal authored and ilyavolodin committed Aug 5, 2016
1 parent 8581f4f commit 7e1bf01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/config/config-initializer.js
Expand Up @@ -267,7 +267,7 @@ function processAnswers(answers) {
function getConfigForStyleGuide(guide) {
const guides = {
google: {extends: "google"},
airbnb: {extends: "airbnb", plugins: ["react"]},
airbnb: {extends: "airbnb", plugins: ["react", "jsx-a11y", "import"]},
standard: {extends: "standard", plugins: ["standard", "promise"]}
};

Expand Down
2 changes: 1 addition & 1 deletion tests/lib/config/config-initializer.js
Expand Up @@ -187,7 +187,7 @@ describe("configInitializer", function() {
it("should support the airbnb style guide", function() {
const config = init.getConfigForStyleGuide("airbnb");

assert.deepEqual(config, {extends: "airbnb", installedESLint: true, plugins: ["react"]});
assert.deepEqual(config, {extends: "airbnb", installedESLint: true, plugins: ["react", "jsx-a11y", "import"]});
});

it("should support the standard style guide", function() {
Expand Down

1 comment on commit 7e1bf01

@MicroKibaco
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the same problem with me,and now i don't know how to solve with it

Please sign in to comment.