generated from stacks-network/.github
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
85 lines (79 loc) · 2.45 KB
/
index.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
module.exports = {
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'prettier',
],
parser: '@typescript-eslint/parser',
plugins: ['import', '@typescript-eslint', 'prettier', 'unused-imports'],
settings: {
'import/parsers': {
'@typescript-eslint/parser': ['.ts', '.tsx'],
},
'import/resolver': { typescript: {} },
},
env: {
browser: true,
node: true,
},
rules: {
'no-tabs': 0,
'no-restricted-globals': 0,
'no-buffer-constructor': 0,
'no-mixed-operators': 0,
'no-plusplus': 0,
'no-bitwise': 0,
'prefer-promise-reject-errors': 0,
'class-methods-use-this': 0,
'prefer-destructuring': 0,
'no-prototype-builtins': 0,
'eol-last': 2,
'no-debugger': 1,
'no-mixed-requires': 0,
'no-underscore-dangle': 0,
'no-multi-spaces': 0,
'no-trailing-spaces': 0,
'no-extra-boolean-cast': 0,
'no-var': 2,
'no-param-reassign': 0,
'no-else-return': 0,
'no-console': 0,
'prefer-const': 2,
'new-cap': 0,
semi: 0,
'valid-jsdoc': 'off',
'object-curly-newline': 'off',
'arrow-parens': 'off',
'function-paren-newline': 0,
'no-shadow': 'off',
'no-use-before-define': 'off',
// https://github.com/prettier/eslint-plugin-prettier
'prettier/prettier': 'error',
// TODO: enable when this is fixed https://github.com/benmosher/eslint-plugin-import/issues/1282
'import/named': 'off',
'import/no-cycle': 0,
'import/prefer-default-export': 0,
'@typescript-eslint/array-type': [
'error',
{
default: 'array',
readonly: 'array',
},
],
'@typescript-eslint/no-non-null-assertion': ['error'],
'@typescript-eslint/explicit-member-accessibility': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/class-name-casing': 'off',
'@typescript-eslint/camelcase': 'off',
'@typescript-eslint/member-delimiter-style': 'off',
'@typescript-eslint/no-angle-bracket-type-assertion': 'off',
'@typescript-eslint/prefer-interface': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/no-unused-vars': 'off',
// TODO: enable this when reasonable
'@typescript-eslint/no-explicit-any': 'off',
// TODO: enable this when reasonable
'@typescript-eslint/promise-function-async': 'off',
'unused-imports/no-unused-imports': 'error',
},
};