-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy patheslint.config.mjs
54 lines (53 loc) · 1.11 KB
/
eslint.config.mjs
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
import cyf from "@codeyourfuture/eslint-config-standard";
import jest from "eslint-plugin-jest";
import globals from "globals";
import ts from "typescript-eslint";
/** @type {import("eslint").Linter.Config[]} */
export default [
cyf,
...ts.configs.strict,
...ts.configs.stylistic,
{
languageOptions: {
globals: globals.node,
},
rules: {
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-non-null-assertion": "error",
"@typescript-eslint/no-unused-vars": [
"error",
{
"ignoreRestSiblings": true,
},
],
"no-console": "error",
},
},
{
files: ["**/*.spec.[jt]s"],
...jest.configs["flat/recommended"],
rules: {
...jest.configs["flat/recommended"].rules,
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"jest/expect-expect": [
"error",
{
"assertFunctionNames": [
"expect",
"request.**.expect",
],
},
],
"jest/no-commented-out-tests": "error",
"jest/no-disabled-tests": "error",
},
},
{
ignores: [
"coverage/",
"**/lib/",
"**/node_modules/",
],
},
];