forked from Deuces9ers/core
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
38 lines (38 loc) · 1021 Bytes
/
.eslintrc
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
{
"parser": "@typescript-eslint/parser",
"extends": ["plugin:@typescript-eslint/recommended", "prettier"],
"parserOptions": { "ecmaVersion": 2022, "sourceType": "module", "project": ["./tsconfig.json"] },
"plugins": ["no-only-tests", "simple-import-sort"],
"rules": {
"@typescript-eslint/no-explicit-any": ["warn"],
"@typescript-eslint/no-unused-vars": ["warn"],
"@typescript-eslint/no-floating-promises": ["warn"],
// prevents committing `describe.only` and `it.only` tests
"no-only-tests/no-only-tests": "warn",
"simple-import-sort/imports": [
"error",
{
"groups": [
["^node:"],
["^\\u0000"],
["^[^@]\\w"],
["^@\\w"],
["^typechain-types"],
["^lib"],
["^test"],
["^../"],
["^./"],
["^"],
],
},
],
},
"overrides": [
{
"files": ["./scripts/{**/,}*.js", "./test/{**/,}*.js"],
"env": {
"mocha": true,
},
},
],
}