-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
104 lines (102 loc) · 3.32 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
{
"parser": "vue-eslint-parser",
"parserOptions": {
"parser": "@typescript-eslint/parser",
"sourceType": "module",
"ecmaVersion": 2021,
"project": "tsconfig.json",
"extraFileExtensions": [".vue"]
},
"extends": [
"prettier",
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:vue/vue3-recommended",
"plugin:functional/external-typescript-recommended",
"plugin:prettier/recommended"
],
"plugins": ["@typescript-eslint", "functional", "vitest"],
"env": {
"browser": true,
"node": true
},
"rules": {
"@typescript-eslint/explicit-function-return-type": [
"error",
{
"allowExpressions": true,
"allowTypedFunctionExpressions": true
}
],
"@typescript-eslint/unbound-method": "off",
"functional/prefer-readonly-type": "error",
"vitest/consistent-test-filename": "error",
"vitest/consistent-test-it": ["error", { "fn": "test", "withinDescribe": "test" }],
"vitest/expect-expect": "off",
"vitest/max-expect": "off",
"vitest/max-expects": "off",
"vitest/max-nested-describe": ["error", { "max": 1 }],
"vitest/no-alias-methods": "error",
"vitest/no-commented-out-tests": "error",
"vitest/no-conditional-expect": "off",
"vitest/no-conditional-in-test": "off",
"vitest/no-conditional-tests": "error",
"vitest/no-disabled-tests": "error",
"vitest/no-duplicate-hooks": "error",
"vitest/no-focused-tests": "error",
"vitest/no-hooks": "off",
"vitest/no-identical-title": "error",
"vitest/no-import-node-test": "error",
"vitest/no-interpolation-in-snapshots": "error",
"vitest/no-large-snapshots": "error",
"vitest/no-mocks-import": "error",
"vitest/no-restricted-matchers": "error",
"vitest/no-restricted-vi-methods": "off",
"vitest/no-standalone-expect": "error",
"vitest/no-test-prefixes": "error",
"vitest/no-test-return-statement": "error",
"vitest/prefer-called-with": "off",
"vitest/prefer-comparison-matcher": "error",
"vitest/prefer-each": "error",
"vitest/prefer-equality-matcher": "error",
"vitest/prefer-expect-assertions": "off",
"vitest/prefer-expect-resolves": "error",
"vitest/prefer-hooks-in-order": "error",
"vitest/prefer-hooks-on-top": "error",
"vitest/prefer-lowercase-title": "off",
"vitest/prefer-mock-promise-shorthand": "error",
"vitest/prefer-snapshot-hint": "error",
"vitest/prefer-spy-on": "error",
"vitest/prefer-strict-equal": "error",
"vitest/prefer-to-be-falsy": "off",
"vitest/prefer-to-be-object": "error",
"vitest/prefer-to-be-truthy": "off",
"vitest/prefer-to-be": "error",
"vitest/prefer-to-contain": "error",
"vitest/prefer-to-have-length": "error",
"vitest/prefer-todo": "error",
"vitest/require-hook": "off",
"vitest/require-local-test-context-for-concurrent-snapshots": "error",
"vitest/require-to-throw-message": "off",
"vitest/require-top-level-describe": "off",
"vitest/valid-describe-callback": "error",
"vitest/valid-expect": "error",
"vitest/valid-title": "error"
},
"overrides": [
{
"files": "source/**/*.test.ts",
"rules": {
"@typescript-eslint/no-floating-promises": "off"
}
},
{
"files": ["source/github-statistics/graphql-query.test.ts", "source/resume/date.test.ts"],
"rules": {
"functional/prefer-readonly-type": "off"
}
}
]
}