Skip to content

Commit

Permalink
docs: add installation and usage sections to README
Browse files Browse the repository at this point in the history
  • Loading branch information
vscav committed Oct 20, 2023
1 parent 3110c1d commit 9f59f32
Showing 1 changed file with 31 additions and 2 deletions.
33 changes: 31 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,32 @@
# eslint-config-typescript
# @qonto/eslint-config-typescript

A shared ESLint TypeScript config for Qonto's open source projects.
A shared ESLint TypeScript configuration used at Qonto. It has TypeScript specific rules from [@typescript-eslint/eslint-plugin](https://www.npmjs.com/package/@typescript-eslint/eslint-plugin).

## Installation

`@qonto/eslint-config-typescript` has a few peer dependencies that need to be installed alongside:

- [`eslint`](https://eslint.org/)
- [`typescript`](https://www.typescriptlang.org/)

Install `@qonto/eslint-config-typescript` and its peer dependencies:

```bash
pnpm add -D @qonto/eslint-config-typescript eslint typescript
```

You can use the package manager of your choice.

## Usage

Here is an example of a `.eslintrc.js` file.

```js
module.exports = {
extends: ["eslint:recommended"],
overrides: [
files: ['*.ts'],
extends: ["@qonto/eslint-config-typescript"],
]
};
```

0 comments on commit 9f59f32

Please sign in to comment.