-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.js
114 lines (114 loc) · 2.84 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
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
112
113
114
module.exports = {
extends: [
'airbnb/base',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'prettier/@typescript-eslint',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 10,
sourceType: 'module',
ecmaFeatures: {
modules: true,
},
},
rules: {
quotes: [2, 'single', { allowTemplateLiterals: true, avoidEscape: true }],
'no-mixed-operators': 0,
'global-require': 0,
'no-console': 2,
'max-len': [1, 120, 2],
'no-param-reassign': [2, { props: false }],
'no-continue': 0,
'no-underscore-dangle': 0,
'generator-star-spacing': 0,
'no-duplicate-imports': 0,
'no-use-before-define': 0,
'consistent-return': 0,
'spaced-comment': 0,
'arrow-parens': 0,
'import/first': 1,
'no-return-await': 0,
'import/namespace': [2, { allowComputed: true }],
'import/no-duplicates': 1,
'import/order': [2, { 'newlines-between': 'always-and-inside-groups' }],
'no-unused-vars': [
2,
{
ignoreRestSiblings: true,
},
],
'no-await-in-loop': 0,
'no-plusplus': 0,
'import/prefer-default-export': 0,
'no-confusing-arrow': 0,
'no-restricted-syntax': 0,
'no-bitwise': 0,
'function-paren-newline': 0,
'object-curly-newline': 0,
'import/no-cycle': 1,
'import/no-unresolved': [
2,
{ ignore: ['@entria/graphql-mongoose-loader'] },
],
'import/no-self-import': 1,
indent: 0,
'@typescript-eslint/indent': 0,
'@typescript-eslint/camelcase': 0,
'@typescript-eslint/explicit-function-return-type': 0,
'interface-over-type-literal': 0,
'@typescript-eslint/consistent-type-definitions': 0,
'lines-between-class-members': 0,
'@typescript-eslint/explicit-member-accessibility': 0,
'@typescript-eslint/prefer-interface': 0,
'@typescript-eslint/interface-name-prefix': 0,
'@typescript-eslint/no-non-null-assertion': 1,
'@typescript-eslint/no-var-requires': 1,
'import/no-extraneous-dependencies': 1,
'prefer-const': [
2,
{
destructuring: 'all',
},
],
'no-multi-assign': 1,
'prefer-destructuring': 0,
'no-only-tests/no-only-tests': 'error',
'import/extensions': [
'error',
'ignorePackages',
{
ts: 'never',
tsx: 'never',
js: 'never',
jsx: 'never',
mjs: 'never',
},
],
},
plugins: [
'import',
'@typescript-eslint',
'no-only-tests',
],
globals: {
require: true,
},
env: {
jest: true,
node: true,
es6: true,
browser: true,
},
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
'eslint-import-resolver-typescript': true,
},
},
};