This repository has been archived by the owner on Mar 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
78 lines (78 loc) · 2.41 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
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*
* OpenCRVS is also distributed under the terms of the Civil Registration
* & Healthcare Disclaimer located at http://opencrvs.org/license.
*
* Copyright (C) The OpenCRVS Authors. OpenCRVS and the OpenCRVS
* graphic logo are (registered/a) trademark(s) of Plan International.
*/
module.exports = {
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:import/typescript',
'prettier'
],
plugins: ['@typescript-eslint', 'import'],
env: {
es6: true,
node: true,
jest: true
},
rules: {
'import/namespace': 'off',
'prettier/prettier': [
'error',
{
printWidth: 80,
singleQuote: true,
useTabs: false,
tabWidth: 2,
trailingComma: 'none',
semi: false
}
],
'no-console': 'warn',
'arrow-parens': 'off',
'no-return-assign': 'off',
'no-restricted-imports': 'error',
'no-unreachable': 2,
'import/no-unassigned-import': 'error',
'import/no-extraneous-dependencies': 'off',
'import/no-unresolved': 'off',
'import/prefer-default-export': 'off',
'import/no-named-as-default': 'off',
'import/no-relative-parent-imports': 2,
'import/named': 0,
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/explicit-member-accessibility': 'off',
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/no-var-requires': 'error',
'@typescript-eslint/prefer-interface': 'off',
'@typescript-eslint/array-type': 'off',
'@typescript-eslint/no-object-literal-type-assertion': 'off',
'@typescript-eslint/ban-types': [
'error',
{
types: {
'{}': false
},
extendDefaults: true
}
],
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-empty-function': 'off'
},
globals: {},
parser: '@typescript-eslint/parser'
}