1.0.1 • Published 9 months ago

@wardes/eslint-config-react v1.0.1

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

eslint-config

Personal Eslint config (react + typescript)

Prettier friendly !


Installation

Install @wardes/eslint-config-react:

npm i -D eslint @wardes/eslint-config-react
yarn add -D eslint @wardes/eslint-config-react
pnpm add -D eslint @wardes/eslint-config-react

Add the following to your eslint config:

{
  "extends": [
    "@wardes/eslint-config-react"
  ]
}

or for nextjs:

{
  "extends": [
    "@wardes/eslint-config-react/next"
  ]
}

And add ECMAScript env in your eslint config from Eslint envrionement config

{
  "strict": true,
  "parserOptions": {
    "project": "./tsconfig.json"
  }
}

or

{
  "noImplicitAny": true,
  "strictNullChecks": true,
  "parserOptions": {
    "project": "./tsconfig.json"
  }
}