Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/prisma/eslint-config-prisma
- Owner: prisma
- License: mit
- Created: 2023-03-15T15:03:22.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-11T03:46:28.000Z (9 months ago)
- Last Synced: 2024-04-24T03:05:36.101Z (8 months ago)
- Language: JavaScript
- Homepage:
- Size: 139 KB
- Stars: 11
- Watchers: 12
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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,
},
}
})
```