Skip to content

leandromatos/eslint-config

Repository files navigation

Eslint Config

Note

With the v2.x, you don't need to install the custom prettier-config. All the prettier rules were added to this eslint-config.

Setup

Use yarn to install Eslint and custom config:

yarn add --dev eslint @leandromatos/eslint-config

Create a new .eslintrc.js file and export an object containing your settings:

module.exports = {
  extends: ["@leandromatos/eslint-config/node"],
  // extends: ["@leandromatos/eslint-config/react"],
  // extends: ["@leandromatos/eslint-config/vue"],
};

If you are working on a project that uses Vue, you also need to add the settings for Vue to the .eslintrc.js file:

module.exports = {
  extends: ["@leandromatos/eslint-config", "@leandromatos/eslint-config/vue"],
};

© All rights reserved

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published