-
Notifications
You must be signed in to change notification settings - Fork 15
/
.eslintrc.js
60 lines (60 loc) · 1.85 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
module.exports = {
parser: '@typescript-eslint/parser',
plugins: [
'typescript',
'@typescript-eslint',
],
extends: ['airbnb-base'],
rules: {
// allow debugger during development
'linebreak-style': 0,
'indent': [2, 4, {
'SwitchCase': 1
}],
'max-len': [2, { 'code': 160, 'ignoreUrls': true }],
'radix': ['error', 'as-needed'],
'object-shorthand': ['error', 'methods'],
'no-unused-expressions': ["error", {
"allowShortCircuit": true
}],
'no-bitwise': ['error', {
'allow': ['~']
}],
"import/extensions": 0,
'import/no-unresolved': 0,
'import/prefer-default-export': 0,
'import/no-dynamic-require': 0,
'object-curly-newline': 0,
'consistent-return': 0,
'no-shadow': 0,
'no-redeclare': 0,
'no-unused-vars': 0,
'no-useless-constructor': 0,
'no-empty-function': 0,
'class-methods-use-this': 0,
'import/no-extraneous-dependencies': 0,
'@typescript-eslint/no-shadow': 2,
'@typescript-eslint/no-redeclare': 2,
'@typescript-eslint/no-unused-vars': 2,
'@typescript-eslint/no-useless-constructor': 2,
'no-restricted-syntax': 0,
'no-param-reassign': 0,
'no-return-await': 0,
'no-use-before-define': 0,
'no-await-in-loop': 0,
'no-continue': 0,
'no-plusplus': 0,
'no-debugger': 0,
'no-console': 0,
'no-bitwise': 0,
"padding-line-between-statements": [
"warn",
{ "blankLine": "always", "prev": ["const", "let", "var"], "next": "*" },
{ "blankLine": "any", "prev": ["const", "let", "var"], "next": ["const", "let", "var"] },
{ "blankLine": "always", "prev": "*", "next": "return" },
{ "blankLine": "always", "prev": "block-like", "next": "*" },
{ "blankLine": "always", "prev": "block", "next": "*" },
{ "blankLine": "always", "prev": "function", "next": "*" },
],
}
}