0.1.0 • Published 5 years ago

@bilue/eslint-config-react v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

Bilue Logo

@bilue/eslint-config-react

npm (scoped)

This package provides an opinionated ESLint preset for React projects using TypeScript, intended to be used for all of our React projects at Bilue.

Installation

# Yarn
yarn add --dev @bilue/eslint-config-react

# npm
npm save --dev @bilue/eslint-config-react

Usage

In your ESLint configuration, usually an .eslintrc file at the root of your project, add the following:

{
  "extends": "@bilue/react"
}

Features

  • Support for linting TypeScript files
  • Sensible default rules for linting React projects
  • Rules to enforce proper accessibility annotations
  • Rules to ensure common mistakes are avoided when using React hooks
  • Integration with Prettier