Skip to content

leandromatos/eslint-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b309553 · Mar 15, 2024
Jul 29, 2023
Jul 29, 2023
Jul 17, 2023
Sep 28, 2019
Sep 28, 2019
Jul 17, 2023
Mar 15, 2024
Mar 15, 2024
Mar 15, 2024
Aug 24, 2023
Aug 24, 2023
Nov 27, 2023

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