Skip to content

eslint-recommended/eslint-config-typescript

Folders and files

NameName
Last commit message
Last commit date
May 12, 2024
Apr 20, 2024
Apr 20, 2024
May 30, 2024
May 12, 2024
Oct 4, 2022
Jun 2, 2024
Jun 2, 2024
Jul 1, 2024
Jul 1, 2024
May 12, 2024

Repository files navigation

npm version lint ESLint Recommended

@eslint-recommended/eslint-config-typescript

Recommended ESLint Shareable Config for TypeScript

Overview

@eslint-recommended/eslint-config-typescript is using following configurations and plugins.

Requirements

  • Node.js v20 or later
  • ESLint v8

Installation

npm:

npm i -D @eslint-recommended/eslint-config-typescript

Yarn:

yarn add -D @eslint-recommended/eslint-config-typescript

pnpm:

pnpm add -D @eslint-recommended/eslint-config-typescript

Usage

Add @eslint-recommended/typescript to the extends section of your ESLint configuration file.

JavaScript:

module.exports = {
  extends: [
    '@eslint-recommended/typescript'
    // add other rulesets here if needed
  ]
}

YAML:

extends:
  - @eslint-recommended/typescript
  # add other rulesets here if needed

JSON:

{
  "extends": [
    "@eslint-recommended/typescript"
    // add other rulesets here if needed
  ]
}

Badge

You can use below badge to show that your project is using ESLint Recommended.

ESLint Recommended

Markdown:

[![ESLint Recommended](https://img.shields.io/badge/eslint-recommended-%234B32C3)](https://github.com/eslint-recommended)

HTML:

<a href="https://github.com/eslint-recommended"><img src="https://img.shields.io/badge/eslint-recommended-%234B32C3" alt="ESLint Recommended"></a>

Related Packages