forked from hayes/pothos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
56 lines (56 loc) · 1.79 KB
/
.eslintrc.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
module.exports = {
root: true,
extends: ['moon', 'moon/node'],
parserOptions: {
project: 'tsconfig.eslint.json',
tsconfigRootDir: __dirname,
},
plugins: ['prettier'],
rules: {
'import/no-cycle': 2,
'import/no-unresolved': 'off',
'import/no-default-export': 'off',
'prettier/prettier': 'error',
'sort-keys': 'off',
'promise/prefer-await-to-callbacks': 'off',
'node/no-unpublished-import': 'off',
'promise/prefer-await-to-then': 'off',
complexity: 'off',
'import/no-extraneous-dependencies': 'off',
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/sort-type-union-intersection-members': 'off',
'@typescript-eslint/key-spacing': 'off',
},
overrides: [
{
files: ['{packages,examples,website}/**/*.js', '{packages,examples,website}/**/*.mjs'],
rules: {
'import/no-commonjs': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-unsafe-argument': 'off',
},
},
{
files: ['packages/*/tests/**/*'],
rules: {
'no-magic-numbers': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
},
},
{
files: ['packages/*/tests/examples?/**/*', 'examples/**/*'],
rules: {
'no-console': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-argu