@manoelmotoso/eslint-config

1.0.4 • Public • Published

@manoelmotoso/eslint-config

ESlint config for Nodejs projects in Typescript with:

  • Airbnb code style
  • Prettier formatter

Setup

install

yarn add -D @manoelmotoso/eslint-config

install required dependencies

yarn add -D \
"@types/node@^18.6.2" \
"@typescript-eslint/eslint-plugin@^5.31.0" \
"@typescript-eslint/parser@^5.31.0" \
"eslint@^7.32.0" \
"eslint-config-airbnb-base@^15.0.0" \
"eslint-config-airbnb-typescript@^17.0.0" \
"eslint-config-prettier@^8.5.0" \
"eslint-import-resolver-typescript@^3.3.0" \
"eslint-plugin-import@^2.26.0" \
"eslint-plugin-prettier@^4.2.1" \
"prettier@^2.7.1"

Install VScode extensions

Prettier ESlint

Config Prettier

create a file .prettierrc

{
  "tabWidth": 2,
  "semi": true,
  "trailingComma": "all"
}

Change Vscode settings .vscode/settings.json

{
  "editor.defaultFormatter": "esbenp.prettier-vscode",
  "prettier.enable": true,
  "editor.formatOnSave": true,
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  },
  "eslint.validate": ["javascript", "typescript"]
}

Readme

Keywords

none

Package Sidebar

Install

npm i @manoelmotoso/eslint-config

Weekly Downloads

0

Version

1.0.4

License

ISC

Unpacked Size

7.99 kB

Total Files

5

Last publish

Collaborators

  • manoelmotoso