-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.ts
111 lines (107 loc) · 3.54 KB
/
index.ts
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
export = {
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2019,
project: './tsconfig.json',
sourceType: 'module',
},
plugins: ['import', 'fp-ts'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
'plugin:prettier/recommended',
'plugin:rxjs/recommended',
'plugin:fp-ts/all',
'plugin:import/typescript',
],
settings: {
'import/resolver': {
typescript: true,
node: {
extensions: ['.ts', '.tsx', '.js', '.jsx', '.json'],
},
},
},
rules: {
complexity: 'off',
curly: 'error',
'default-case': 'off',
'dot-notation': 'off',
eqeqeq: 'error',
'guard-for-in': 'error',
'id-match': 'error',
'no-bitwise': 'error',
'no-console': 'error',
'no-eq-null': 'error',
'no-extend-native': 'error',
'no-extra-bind': 'error',
'no-implicit-coercion': 'error',
'no-implicit-globals': 'error',
'no-invalid-this': 'off',
'no-lone-blocks': 'error',
'no-native-reassign': 'error',
'no-nested-ternary': 'error',
'no-new-func': 'error',
'no-new-wrappers': 'error',
'no-param-reassign': 'error',
'no-redeclare': 'off',
'no-shadow': 'off',
'no-undef-init': 'error',
'no-unused-vars': 'off',
'no-useless-call': 'error',
'no-useless-concat': 'error',
'no-var': 'error',
'no-void': 'error',
'new-cap': [
'error',
{
newIsCap: true,
capIsNew: false,
},
],
'prefer-arrow-callback': 'error',
'prefer-const': 'error',
'prefer-rest-params': 'error',
'prefer-template': 'error',
'wrap-iife': ['error', 'inside'],
'@typescript-eslint/dot-notation': 'error',
'@typescript-eslint/no-namespace': 'warn',
'@typescript-eslint/consistent-type-definitions': 'error',
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off', // https://github.com/typescript-eslint/typescript-eslint/issues/1071,
'@typescript-eslint/unified-signatures': 'error',
'@typescript-eslint/consistent-type-imports': 'error',
'@typescript-eslint/no-unused-vars': [
'warn',
{
argsIgnorePattern: '^_',
},
],
'@typescript-eslint/no-shadow': ['error', { hoist: 'all', ignoreTypeValueShadow: true }],
'prettier/prettier': 'error',
'import/no-duplicates': ['error', { 'prefer-inline': false }],
'import/no-deprecated': 'off', // https://github.com/import-js/eslint-plugin-import/issues/1532
'import/no-unresolved': 'off',
'import/export': 'off',
'import/order': [
'error',
{
groups: ['external', 'builtin', 'parent', 'sibling', 'index'],
pathGroups: [
{
pattern: '*.scss',
group: 'parent',
position: 'after',
},
],
alphabetize: {
order: 'asc',
},
},
],
'fp-ts/no-module-imports': 'off',
},
}