corysimmons
corysimmons

Reputation: 7675

How can I pass ESLint recommended to package.json?

According to http://eslint.org/docs/user-guide/configuring I can pass an eslintConfig object in package.json with my config in it. I just want to pass the standard ESLint recommended preset. How can I do that within that object?

Upvotes: 3

Views: 126

Answers (1)

corysimmons
corysimmons

Reputation: 7675

Figured it out:

"eslintConfig": {
  "extends": "eslint:recommended"
}

Upvotes: 3

Related Questions