This repository was archived by the owner on Jan 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
51 lines (51 loc) · 1.51 KB
/
.eslintrc.js
File metadata and controls
51 lines (51 loc) · 1.51 KB
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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint',
],
extends: [
'airbnb-typescript/base',
],
parserOptions: {
project: './tsconfig.json',
tsconfigRootDir: __dirname,
},
'rules': { // 0 = off, 1 = warn, 2 = error
'eol-last': ['error', 'always'],
'max-len': ['error', 300],
'import/no-cycle': ['off'],
'@typescript-eslint/interface-name-prefix': ['off'],
'@typescript-eslint/no-explicit-any': ['off'],
'@typescript-eslint/adjacent-overload-signatures': ['error'],
'@typescript-eslint/explicit-function-return-type': ['error'],
'@typescript-eslint/member-delimiter-style': ['error'],
'@typescript-eslint/no-for-in-array': ['error'],
'@typescript-eslint/naming-convention': ['error',
{
'selector': 'variable',
'format': ['camelCase', 'UPPER_CASE']
},
{
'selector': 'function',
'format': ['camelCase']
},
],
'@typescript-eslint/no-dynamic-delete': ['error'],
'@typescript-eslint/no-misused-new': ['error'],
'@typescript-eslint/no-throw-literal': ['error'],
'@typescript-eslint/no-unnecessary-boolean-literal-compare': ['error'],
'no-underscore-dangle': "off",
'@typescript-eslint/explicit-member-accessibility': ['error'],
'@typescript-eslint/type-annotation-spacing': ['error', {
'before': false,
'after': true,
overrides: {
arrow: {
before: true,
after: true
}
}
}],
}
};