forked from ExpediaGroup/insights-explorer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
74 lines (74 loc) · 1.89 KB
/
.eslintrc.yml
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
root: true
env:
node: true
es2022: true
ignorePatterns:
- '**/coverage/'
- '**/dist/'
- '**/generated/graphql.ts'
- '**/node_modules/'
parser: '@typescript-eslint/parser'
parserOptions:
ecmaVersion: 2022
project: './tsconfig.eslint.json' #['./packages/*/tsconfig.json']
sourceType: module
warnOnUnsupportedTypeScriptVersion: false,
plugins:
- '@typescript-eslint'
- unicorn
extends:
- eslint:recommended
- plugin:import/errors
- plugin:import/typescript
- plugin:@typescript-eslint/recommended
- plugin:prettier/recommended
- plugin:unicorn/recommended
overrides: [{ files: ['*.js'], extends: ['plugin:@typescript-eslint/disable-type-checked'] }]
settings:
import/resolver:
typescript:
alwaysTryTypes: true
node:
extensions: ['.js', '.jsx', '.ts', '.tsx']
moduleDirectory: ['node_modules', 'src/']
rules:
no-console: ['error']
'@typescript-eslint/consistent-type-imports':
- error
- prefer: type-imports
disallowTypeAnnotations: false
'@typescript-eslint/no-explicit-any': off
'@typescript-eslint/no-non-null-assertion': off
import/newline-after-import: error
import/order:
- error
- groups:
- builtin
- external
- internal
- parent
- sibling
- index
alphabetize:
order: asc
caseInsensitive: true
newlines-between: always
unicorn/consistent-function-scoping:
- error
- checkArrowFunctions: false
unicorn/no-array-for-each: off
unicorn/no-array-reduce: off
unicorn/no-null: off
unicorn/no-useless-switch-case: off
unicorn/prefer-dom-node-text-content: off
unicorn/prefer-module: off
unicorn/prefer-node-protocol: off
unicorn/prefer-object-from-entries: off
unicorn/prevent-abbreviations:
- off
- checkFilenames: false
allowList:
req: true
res: true
process-env: true
ProcessEnv: true