Skip to content

Commit eedad58

Browse files
committed
chore: More linting
1 parent 85398cb commit eedad58

File tree

13 files changed

+1555
-86
lines changed

13 files changed

+1555
-86
lines changed

.eslintrc

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,37 @@
11
{
22
"root": true,
33
"parser": "@typescript-eslint/parser",
4-
"plugins": ["@typescript-eslint", "prettier"],
4+
"plugins": ["@typescript-eslint", "prettier", "unicorn"],
5+
"parserOptions": {
6+
"project": "./tsconfig.json"
7+
},
58
"extends": [
69
"eslint:recommended",
10+
"plugin:import/recommended",
11+
"plugin:import/typescript",
712
"plugin:@typescript-eslint/eslint-recommended",
813
"plugin:@typescript-eslint/recommended",
914
"prettier",
10-
"plugin:unicorn/recommended"
15+
"plugin:unicorn/recommended",
16+
"plugin:n/recommended",
17+
"plugin:promise/recommended",
18+
"plugin:ava/recommended",
19+
"plugin:you-dont-need-lodash-underscore/all"
1120
],
1221
"rules": {
13-
"@typescript-eslint/no-unused-vars": 0
22+
"@typescript-eslint/no-unused-vars": 0,
23+
"require-await": "off",
24+
"@typescript-eslint/require-await": "error",
25+
"import/order": [
26+
2,
27+
{
28+
"newlines-between": "always",
29+
"alphabetize": {
30+
"order": "asc",
31+
"caseInsensitive": true
32+
}
33+
}
34+
]
1435
},
1536
"overrides": [
1637
{
@@ -25,5 +46,11 @@
2546
"unicorn/no-array-for-each": 0
2647
}
2748
}
28-
]
49+
],
50+
"settings": {
51+
"import/resolver": {
52+
"typescript": true,
53+
"node": true
54+
}
55+
}
2956
}

0 commit comments

Comments
 (0)