-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
21 lines (21 loc) · 881 Bytes
/
.eslintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"plugins": ["@typescript-eslint"],
"extends": ["plugin:@typescript-eslint/eslint-recommended", "plugin:@typescript-eslint/recommended", "prettier"],
"rules": {
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": ["error", { "variables": false }],
"no-console": "warn",
"no-warning-comments": ["warn", { "terms": ["@todo", "todo", "fixme"], "location": "start" }],
"@typescript-eslint/lines-between-class-members": ["error", "always", { "exceptAfterOverload": true, "exceptAfterSingleLine": true }],
"@typescript-eslint/no-floating-promises": "error"
},
"ignorePatterns": ["dist", "migrations", ".eslintrc", "scripts"],
"env": {
"node": true
}
}