-
Notifications
You must be signed in to change notification settings - Fork 311
/
eslint.config.js
39 lines (38 loc) · 1.23 KB
/
eslint.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import configPrisma from 'eslint-config-prisma'
import tsEslint from 'typescript-eslint'
export default tsEslint.config({
ignores: [
'playground/**/*',
'graffle/**/*',
'project/**/*',
'examples/35_custom-scalar/custom-scalar.ts',
'eslint.config.js',
'vite.config.ts',
'vitest*.config.ts',
'**/generated/**/*',
'tests/_/schemas/*/graffle/**/*',
'**/tests/fixture/graffle/**/*',
'src/layers/1_Schema/Hybrid/types/Scalar/Scalar.ts', // There is an ESLint error that goes away when ignored leading to a circular issue of either lint error or unused lint disable.
'**/$/**/*',
'legacy/**/*',
'**/build/**/*',
'website/**/*',
'bundle-sizes/**/*.{js,json}',
],
extends: configPrisma,
languageOptions: {
parserOptions: {
project: true,
tsconfigRootDir: import.meta.dirname,
},
},
rules: {
['prefer-arrow/prefer-arrow-functions']: 'off',
['@typescript-eslint/only-throw-error']: 'off',
['@typescript-eslint/no-unsafe-assignment']: 'off',
['@typescript-eslint/no-unsafe-call']: 'off',
['@typescript-eslint/no-unsafe-member-access']: 'off',
['@typescript-eslint/ban-types']: 'off',
['@typescript-eslint/no-unnecessary-condition']: 'off',
},
})