-
Notifications
You must be signed in to change notification settings - Fork 12
/
.eslintrc.js
84 lines (84 loc) · 2.12 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
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
module.exports = {
env: {
browser: true,
es2021: true,
jest: true,
node: true,
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 12,
sourceType: 'module',
},
plugins: ['@typescript-eslint', 'spellcheck'],
rules: {
'@typescript-eslint/no-non-null-assertion': 0,
'@typescript-eslint/no-explicit-any': 0,
'react/no-unescaped-entities': 0,
'@typescript-eslint/explicit-function-return-type': 0,
'@typescript-eslint/explicit-module-boundary-types': 0,
'@typescript-eslint/member-delimiter-style': 0,
'@typescript-eslint/camelcase': 0,
'@typescript-eslint/no-namespace': 0,
'@typescript-eslint/no-unused-vars': [
'error',
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
],
'no-unsafe-finally': 0,
'no-useless-escape': 0,
'no-console': ['error', { allow: ['info', 'warn', 'error'] }],
'spellcheck/spell-checker': [
1,
{
comments: true,
strings: true,
identifiers: true,
lang: 'en_GB',
skipWords: [
'duffel',
'Datetime',
'arrivalDatetime',
'departure_datetime',
'Earheart',
'es2021',
'Danvers',
],
skipIfMatch: [
'http://[^s]*',
'https://[^s]*',
'/[^s]*',
' ',
'^[-\\w]+/[-\\w\\.]+$',
'^[a-z]{3,4}_[a-zA-Z0-9]{21,23}$',
'pas_[a-zA-Z0-9]{22}',
'ord_[a-zA-Z0-9]{22}',
'ser_[a-zA-Z0-9]{22}',
'seg_[a-zA-Z0-9]{22}',
'sto_[a-zA-Z0-9]{22}',
'pit_[a-zA-Z0-9]{22}',
'quo_[a-zA-Z0-9]{22}',
'g2wAAAACbQAAABBBZXJvbWlzdC1LaGFya2l2bQAAAB=',
'Earhart',
'Embraer',
'errorMsg',
'perf',
'Webhook',
],
skipWordIfMatch: [
'.*vh$',
'.*vw$',
'.*px$',
'.*%$',
'^[a-f0-9]{6}$',
'^[a-z]{3,4}_*',
],
minLength: 3,
},
],
},
}