forked from blockfrost/blockfrost-backend-ryo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
44 lines (44 loc) · 1.15 KB
/
.eslintrc.cjs
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
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: ['@typescript-eslint', 'prettier'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
'plugin:unicorn/recommended',
'plugin:import/recommended',
],
rules: {
'no-console': 'off',
'import/extensions': ['error', 'always'],
'import/no-unresolved': 'off',
'no-extra-boolean-cast': 'off',
'arrow-parens': [2, 'as-needed'],
'prettier/prettier': 2,
eqeqeq: ['error', 'always'],
'newline-after-var': ['error', 'always'],
'unicorn/prefer-module': 0,
'unicorn/prefer-node-protocol': 0,
'unicorn/prefer-json-parse-buffer': 0,
'unicorn/no-process-exit': 0,
'unicorn/prefer-ternary': 0,
'unicorn/no-null': 'off',
'no-nested-ternary': 'off',
'unicorn/prevent-abbreviations': [
'error',
{
allowList: {
dbSync: true,
CardanoDbSync: true,
getDbSync: true,
clientDbSync: true,
},
},
],
},
};