Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/prisma/eslint-config-prisma

๐Ÿงน Prisma's .eslintrc as an extensible shared config.
https://github.com/prisma/eslint-config-prisma

Last synced: about 2 months ago
JSON representation

๐Ÿงน Prisma's .eslintrc as an extensible shared config.

Awesome Lists containing this project

README

        

# eslint-config-prisma

[![trunk](https://github.com/prisma/eslint-config-prisma/actions/workflows/trunk.yaml/badge.svg)](https://github.com/prisma/eslint-config-prisma/actions/workflows/trunk.yaml)

# Installation

```sh
npm add -D eslint-config-prisma \
eslint \
@typescript-eslint/eslint-plugin \
@typescript-eslint/parser \
eslint-plugin-deprecation \
eslint-plugin-only-warn \
eslint-plugin-prefer-arrow \
eslint-plugin-tsdoc
```

# Usage

```ts
import configPrisma from 'eslint-config-prisma'
import tsEslint from 'typescript-eslint'

export default tsEslint.config({
ignores: ['**/build/**/*', 'eslint.config.js'],
extends: [...configPrisma],
languageOptions: {
parserOptions: {
project: true,
tsconfigRootDir: import.meta.dirname,
},
}
})
```