-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
30 lines (30 loc) · 1.21 KB
/
.eslintrc.json
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
{
"parser": "@typescript-eslint/parser",
"extends": ["prettier/@typescript-eslint", "plugin:prettier/recommended"],
"plugins": ["@typescript-eslint"],
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"project": "./tsconfig.json"
},
"rules": {
"camelcase": "off",
"no-return-await": "error",
"lines-between-class-members": [1, "always", { "exceptAfterSingleLine": true }],
"padding-line-between-statements": [
1,
{ "blankLine": "always", "prev": "*", "next": "if" },
{ "blankLine": "always", "prev": "if", "next": "*" },
{ "blankLine": "always", "prev": "*", "next": "try" },
{ "blankLine": "always", "prev": "try", "next": "*" },
{ "blankLine": "always", "prev": "*", "next": "return" }
],
"@typescript-eslint/member-ordering": 2,
"@typescript-eslint/interface-name-prefix": 2,
"@typescript-eslint/explicit-member-accessibility": 2,
"@typescript-eslint/class-name-casing": 2,
"@typescript-eslint/camelcase": 1,
"@typescript-eslint/no-require-imports": 1,
"@typescript-eslint/prefer-includes": 1
}
}