-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
118 lines (118 loc) · 2.37 KB
/
.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
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
{
"env": {
"es2022": true,
"jest": true
},
"plugins": ["jest", "jsdoc", "node", "prettier"],
"extends": [
"eslint:recommended",
"plugin:jsdoc/recommended",
"plugin:jest/recommended",
"plugin:node/recommended",
"plugin:prettier/recommended"
],
"overrides": [
{
"files": ["tests/**/*.js", "lib/**/*.js"],
"plugins": ["jest"],
"extends": [
"plugin:jest/recommended"
]
}
],
"parserOptions": {
"ecmaVersion": 2022
},
"globals": {
"generateFixture": "readonly"
},
"rules": {
"arrow-parens": ["error", "as-needed"],
"comma-dangle": 0,
"jsdoc/check-tag-names": [
2,
{
"definedTags": [
"api",
"apiDescription",
"apiError",
"apiErrorExample",
"apiGroup",
"apiHeader",
"apiMock",
"apiParam",
"apiSuccess",
"apiSuccessExample"
]
}
],
"jsdoc/no-undefined-types": [
1,
{
"definedTypes": [
"delete",
"get",
"html",
"json",
"patch",
"post",
"put",
"RandomResponse"
]
}
],
"jsdoc/require-param-description": 0,
"jsdoc/require-property-description": 0,
"jsdoc/require-returns-description": 0,
"jsdoc/tag-lines": [
"warn",
"always",
{
"count": 0,
"applyToEndTag": false,
"startLines": 1
}
],
"consistent-return": 1,
"max-len": [
"error",
{
"code": 240,
"ignoreUrls": true
}
],
"no-console": 0,
"no-debugger": 1,
"no-plusplus": 0,
"no-unsafe-optional-chaining": 1,
"no-var": 2,
"node/no-unsupported-features/es-syntax": 1,
"node/shebang": 0,
"node/no-unpublished-bin": 0,
"node/no-unpublished-require": [
"error",
{
"allowModules": ["shelljs", "mockery", "mock-fs"]
}
],
"padded-blocks": 0,
"prettier/prettier": [
"error",
{
"arrowParens": "avoid",
"singleQuote": true,
"trailingComma": "none",
"printWidth": 120
}
],
"space-before-function-paren": 0,
"valid-jsdoc": [
1,
{
"requireParamDescription": false,
"requireReturnDescription": false,
"requireReturn": false
}
]
}
}