-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
89 lines (89 loc) · 2 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
{
"env": {
"es2022": true,
"jest": true
},
"plugins": ["jsdoc", "node", "prettier"],
"extends": [
"eslint:recommended",
"plugin:jsdoc/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",
"mockObjectProperty": "readonly",
"setMockResourceFunctions": "readonly"
},
"rules": {
"arrow-parens": ["error", "as-needed"],
"comma-dangle": 0,
"consistent-return": 1,
"jsdoc/no-undefined-types": 2,
"jsdoc/require-jsdoc": 2,
"jsdoc/require-param": 2,
"jsdoc/require-param-description": 0,
"jsdoc/require-param-name": 2,
"jsdoc/require-param-type": 2,
"jsdoc/require-property": 2,
"jsdoc/require-property-description": 0,
"jsdoc/require-property-name": 2,
"jsdoc/require-property-type": 2,
"jsdoc/require-returns": 2,
"jsdoc/require-returns-description": 0,
"jsdoc/require-returns-type": 2,
"jsdoc/tag-lines": [
"warn",
"always",
{
"count": 0,
"applyToEndTag": false,
"startLines": 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
}
}