Skip to content

Commit 073106c

Browse files
feat: eslint, upgrade deps, maybeToPromise defaults (#150)
1 parent 91d174b commit 073106c

38 files changed

+1019
-270
lines changed

.eslintrc.json

+106
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
{
2+
"ignorePatterns": [
3+
"dist",
4+
"vscode",
5+
"node_modules",
6+
"coverage",
7+
"ormconfig.js",
8+
"jest.config.js",
9+
"jest.setup.js",
10+
"scripts"
11+
],
12+
"parser": "@typescript-eslint/parser",
13+
"parserOptions": {
14+
"project": "tsconfig.json",
15+
"sourceType": "module"
16+
},
17+
"plugins": [
18+
"@typescript-eslint/eslint-plugin",
19+
"promise",
20+
"rxjs"
21+
],
22+
"extends": [
23+
"plugin:@typescript-eslint/eslint-recommended",
24+
"plugin:@typescript-eslint/recommended",
25+
"plugin:promise/recommended"
26+
],
27+
"env": {
28+
"node": true,
29+
"jest": true
30+
},
31+
"settings": {
32+
"import/resolver": {
33+
"typescript": {}
34+
}
35+
},
36+
"rules": {
37+
"no-irregular-whitespace": 2,
38+
"array-bracket-spacing": [
39+
2,
40+
"never"
41+
],
42+
"space-in-parens": [
43+
2,
44+
"never"
45+
],
46+
"promise/no-nesting": 0,
47+
"semi": [
48+
2,
49+
"never"
50+
],
51+
"@typescript-eslint/indent": [
52+
"error",
53+
2
54+
],
55+
"@typescript-eslint/comma-spacing": [
56+
"error",
57+
{
58+
"before": false,
59+
"after": true
60+
}
61+
],
62+
"@typescript-eslint/quotes": [
63+
"error",
64+
"single"
65+
],
66+
"comma-dangle": 2,
67+
"no-unexpected-multiline": 2,
68+
"@typescript-eslint/interface-name-prefix": 0,
69+
"@typescript-eslint/no-explicit-any": 2,
70+
"@typescript-eslint/no-empty-function": 0,
71+
"@typescript-eslint/no-var-requires": 0,
72+
"@typescript-eslint/explicit-function-return-type": 2,
73+
"@typescript-eslint/no-unused-vars": [
74+
"error",
75+
{
76+
"args": "after-used"
77+
}
78+
],
79+
"no-multiple-empty-lines": [
80+
"error",
81+
{
82+
"max": 1,
83+
"maxEOF": 0
84+
}
85+
],
86+
"eol-last": [
87+
"error",
88+
"always"
89+
],
90+
"@typescript-eslint/member-delimiter-style": [
91+
2,
92+
{
93+
"multiline": {
94+
"delimiter": "none",
95+
"requireLast": true
96+
}
97+
}
98+
],
99+
"rxjs/no-nested-subscribe": 2,
100+
"rxjs/no-index": 2,
101+
"rxjs/no-internal": 2,
102+
"rxjs/no-unsafe-takeuntil": 2,
103+
"rxjs/no-unsafe-first": 2,
104+
"rxjs/no-unsafe-catch": 2
105+
}
106+
}

.node-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
13.9.0
1+
14.3.0

.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
13.9.0
1+
14.3.0

.vscode/settings.json

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"editor.tabSize": 2,
3-
"tslint.autoFixOnSave": true,
43
"jest.showCoverageOnLoad": true,
54
"typescript.tsdk": "node_modules/typescript/lib"
65
}

0 commit comments

Comments
 (0)