3.1.1 • Published 4 months ago

@untile/eslint-config-typescript-react v3.1.1

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

Requirements

  • Node.js >= 20
  • ESLint >= 9
  • TypeScript >= 4.9.0

Installation

With npm:

npm install eslint typescript-eslint @untile/eslint-config-typescript-react --save-dev

Or using yarn:

yarn add eslint @untile/eslint-config-typescript-react -D

Setup

Create an eslint.config.js file with the following:

const eslintUntileConfigTypescriptReact = require('@untile/eslint-config-typescript-react');
const tseslint = require('typescript-eslint');

module.exports = tseslint.config(eslintUntileConfigTypescriptReact);

Usage

Add the following script to your package.json:

{
  "scripts": {
    "lint": "eslint ."
  }
}

and run the linter with:

yarn lint