-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
99 lines (99 loc) · 2.97 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
module.exports = {
root : true,
ignorePatterns: [
'dist',
'export',
'coverage',
'node_modules',
],
env: {
es2021 : true,
mocha : true,
node : true,
commonjs: true,
},
extends: [
'airbnb-base',
'airbnb-typescript/base',
],
parser : '@typescript-eslint/parser',
parserOptions: {
project : 'tsconfig.json',
ecmaVersion: 2021,
},
plugins: ['arca'],
rules : {
'no-plusplus' : 0,
'import/extensions' : 0,
'prefer-destructuring' : 0,
'prefer-arrow-callback': 0,
'no-param-reassign' : 0,
'no-await-in-loop' : 0,
'func-names' : 0,
'arca/import-align' : 2,
'arca/import-ordering' : 2,
'no-process-exit' : 0,
'no-console' : 0,
'no-restricted-syntax' : 0,
'no-case-declarations' : 0,
'no-shadow' : 0,
'no-nested-ternary' : 0,
'no-undef' : 0,
'arrow-body-style' : 0,
'key-spacing' : [
2,
{ singleLine: { beforeColon: false,
afterColon : true },
multiLine: { beforeColon: false,
afterColon : true,
align : 'colon' } },
],
'object-curly-newline': [
2,
{
ObjectExpression : { consistent: true },
ObjectPattern : { consistent: true },
ImportDeclaration: { consistent: true },
ExportDeclaration: { consistent: true },
},
],
'no-multiple-empty-lines': [
2, { max: 1, maxBOF: 0, maxEOF: 1 },
],
'max-len' : 0,
'no-multi-spaces' : 0,
'no-underscore-dangle' : 0,
'no-mixed-operators' : 0,
'import/order' : 0,
'import/no-extraneous-dependencies' : 0,
'import/prefer-default-export' : 0,
'@typescript-eslint/naming-convention' : 1,
'@typescript-eslint/ban-types' : 0,
'@typescript-eslint/no-var-requires' : 0,
'@typescript-eslint/ban-ts-comment' : 0,
'@typescript-eslint/explicit-function-return-type': 0,
'@typescript-eslint/no-explicit-any' : 0,
'@typescript-eslint/type-annotation-spacing' : 0,
'@typescript-eslint/lines-between-class-members' : 0,
'@typescript-eslint/no-use-before-define' : 0,
'@typescript-eslint/no-empty-interface' : 0,
'@typescript-eslint/no-non-null-assertion' : 0,
'@typescript-eslint/no-unused-vars' : [
1, {
argsIgnorePattern : 'res|next|^err|^_',
ignoreRestSiblings: true,
caughtErrors : 'none',
},
],
},
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
},
'import/parsers': {
'@typescript-eslint/parser': ['.ts', '.js'],
},
},
};