-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
49 lines (49 loc) · 1020 Bytes
/
.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
{
"extends": "@springernature/eslint-config",
"env": {
"commonjs": true,
"node": true,
"mocha": true
},
"globals": {
"Toastify": "readonly"
},
"ignorePatterns": ["**/vendor/**/*.js", "**/public/**/*.js"],
"parserOptions": {
"ecmaVersion": 2020
},
"rules": {
"indent": ["error", "tab"],
"comma-dangle": ["error", "always-multiline"],
"newline-per-chained-call": "warn",
"no-console": "off",
"no-param-reassign": [
"error",
{
"props": true
}
],
"no-use-before-define": ["error", { "variables": false }],
"prefer-const": "warn",
"camelcase": [
"error",
{
"allow": [
"comments_field"
]
}
],
"import/no-unassigned-import": [
"error",
{
"allow": [
"app/assets/clientjs/polyfills",
"@babel/polyfill"
]
}
],
"max-nested-callbacks": 0,
"unicorn/prevent-abbreviations": 0,
"unicorn/no-array-reduce": 1
}
}