Skip to content

Commit ae9e466

Browse files
authored
chore: replace tslint with eslint (#68)
* chore: replace tslint with eslint * fix eslint
1 parent 08d16dd commit ae9e466

8 files changed

Lines changed: 2651 additions & 905 deletions

File tree

eslint.json

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
{
2+
"extends": [
3+
"eslint:recommended",
4+
"plugin:@typescript-eslint/recommended",
5+
"plugin:@stylistic/recommended-extends"
6+
],
7+
"rules": {
8+
"max-len": [
9+
"error",
10+
{
11+
"code": 120
12+
}
13+
],
14+
"no-console": "error",
15+
"@typescript-eslint/no-unused-vars": "error",
16+
"@stylistic/array-bracket-spacing": [
17+
"error",
18+
"always"
19+
],
20+
"@stylistic/operator-linebreak": [
21+
"error",
22+
"after"
23+
],
24+
"@stylistic/brace-style": [
25+
"error",
26+
"1tbs",
27+
{
28+
"allowSingleLine": true
29+
}
30+
],
31+
"@stylistic/member-delimiter-style": [
32+
"error",
33+
{
34+
"overrides": {
35+
"interface": {
36+
"multiline": {
37+
"delimiter": "semi",
38+
"requireLast": true
39+
}
40+
}
41+
}
42+
}
43+
],
44+
"indent": "off",
45+
"@stylistic/indent": [
46+
"error",
47+
2,
48+
{
49+
"SwitchCase": 1,
50+
"FunctionDeclaration": {
51+
"parameters": "first"
52+
},
53+
"FunctionExpression": {
54+
"parameters": "first"
55+
}
56+
}
57+
],
58+
"semi": "off",
59+
"@stylistic/semi": [
60+
"error",
61+
"always"
62+
]
63+
},
64+
"parser": "@typescript-eslint/parser",
65+
"parserOptions": {
66+
"project": [
67+
"tsconfig.eslint.json"
68+
],
69+
"sourceType": "module",
70+
"ecmaFeatures": {
71+
"jsx": true,
72+
"modules": true,
73+
"experimentalObjectRestSpread": true
74+
}
75+
}
76+
}

0 commit comments

Comments
 (0)