@leandromatos/eslint-config

2.3.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @leandromatos/eslint-config

Weekly Downloads

26

Version

2.3.0

License

MIT

Unpacked Size

11.8 kB

Total Files

8

Last publish

Collaborators

  • leandromatos