1.0.10 • Published 9 days ago

@mrcointreau/eslint-config-typescript v1.0.10

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

TypeScript ESLint Configuration

This package provides an ESLint configuration tailored for TypeScript projects. It extends several recommended ESLint configurations and plugins to enforce a consistent code style and catch common mistakes in TypeScript code.

Installation

Using npm

npm install --save-dev @mrcointreau/eslint-config-typescript eslint

Using Yarn

yarn add --dev @mrcointreau/eslint-config-typescript eslint

Using pnpm

pnpm add --save-dev @mrcointreau/eslint-config-typescript eslint

Configuration

Create an .eslintrc.cjs file in the root of your project with the following contents:

module.exports = {
  root: true,
  extends: ["@mrcointreau/eslint-config-typescript"],
};

To make it easy to run ESLint, add a script entry in your project's package.json:

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