1.2.1 • Published 2 months ago

@felipe-ds-lima/eslint-config v1.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

eslint-config

My eslint default configs for typescript node and react and prettier

How to use

Install the package

npm i --dev @felipe-ds-lima/eslint-config

or

yarn -D @felipe-ds-lima/eslint-config

If you get some error, upgrade the typescript version to >=3.3.1

Create the .eslint.json file:

{
  "extends": [
    "@felipe-ds-lima/eslint-config/react-config"
  ],
  "parserOptions": {
    "project": "tsconfig.json"
  },
  "ignorePatterns": ["*.js"],
  "rules": {
  }
}

In rules you can put your own rules.

Create the .prettierrc file:

{
  "semi": false,
  "singleQuote": true,
  "arrowParens": "always",
  "trailingComma": "es5",
  "endOfLine": "auto"
}