Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.
/ eslint-config Public archive

An ESLint configuration, with additional rules for readability and stylistic code, for React/TypeScript projects.

License

Notifications You must be signed in to change notification settings

neilbryson/eslint-config

Repository files navigation

eslint-config

An ESLint configuration, with additional rules for readability and stylistic code, for React/TypeScript projects.

Installation

Run npm install --save-dev @neilbryson/eslint-config

Usage

Add this to the extends field of .eslintrc :

Option 1:

{
  "extends": "@neilbryson"
}

Option 2:

{
  "extends": "@neilbryson/eslint-config"
}

This ESLint config uses TypeScript ESLint so make sure that the parser is correctly configured.

{
  "parserOptions": {
    "project": "./path/to/tsconfig.json"
  }
}

License

MIT