This repository has been archived by the owner on Sep 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.json
57 lines (54 loc) · 1.58 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "eslint-plugin-tsdoc"],
"extends": ["eslint:recommended", "xo", "xo-typescript", "plugin:unicorn/recommended", "prettier"],
"parserOptions": {
"project": ["./tsconfig.json", "./tests/tsconfig.json"]
},
"rules": {
// Eslint suite rules
"max-params": ["error", 5],
"new-cap": ["error", { "capIsNew": false }],
"semi": "error",
"quotes": [
"error",
"single",
{
"allowTemplateLiterals": true,
"avoidEscape": true
}
],
// Typescript rules
"@typescript-eslint/explicit-function-return-type": [
"error",
{
"allowExpressions": true,
"allowTypedFunctionExpressions": true
}
],
"@typescript-eslint/explicit-member-accessibility": [
"error",
{
"accessibility": "explicit",
"overrides": {
"constructors": "no-public"
}
}
],
"@typescript-eslint/naming-convention": [
"error",
{ "selector": "class", "format": ["PascalCase", "camelCase"] }
],
// Unicorn rules
"unicorn/consistent-function-scoping": [
"error",
{
"checkArrowFunctions": false
}
],
"unicorn/prefer-export-from": "off",
// TSDOC rules
"tsdoc/syntax": "warn"
}
}