-
-
Notifications
You must be signed in to change notification settings - Fork 218
/
.eslintrc
84 lines (84 loc) · 2.67 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
{
"extends": "@medic",
"parserOptions": {
"ecmaVersion": 6
},
"ignorePatterns": [
"**/node_modules/**",
"**/node_modules_backup/**",
"**/pupil/**",
"allure-report/**",
"allure-report-bak/**",
"api/build/**/*",
"api/extracted-resources/**/*",
"api/src/enketo-transformer/**",
"api/src/public/login/lib-bowser.js",
"build/**",
"jsdocs/**",
"tests/scalability/report*/**",
"tests/scalability/jmeter/**",
"webapp/src/ts/providers/xpath-element-path.provider.ts"
],
"plugins": ["promise", "node"],
"rules": {
"array-bracket-newline": ["error", "consistent"],
"array-callback-return": ["error", { "allowImplicit": true }],
"arrow-spacing": ["error", { "before": true, "after": true }],
"brace-style": ["error", "1tbs"],
"comma-spacing": ["error", { "before": false, "after": true }],
"comma-style": ["error", "last"],
"default-param-last": "error",
"dot-location": ["error", "property"],
"dot-notation": ["error", { "allowKeywords": true }],
"func-call-spacing": ["error", "never"],
"func-style": ["error", "expression"],
"function-call-argument-newline": ["error", "consistent"],
"function-paren-newline": ["error", "consistent"],
"implicit-arrow-linebreak": ["error", "beside"],
"key-spacing": ["error", { "beforeColon": false, "afterColon": true }],
"keyword-spacing": ["error", { "before": true, "after": true }],
"linebreak-style": ["error", "unix"],
"lines-between-class-members": ["error", "always", { "exceptAfterSingleLine": true }],
"new-parens": "error",
"no-alert": "error",
"no-else-return": "error",
"no-extra-bind": "error",
"no-lone-blocks": "error",
"no-nested-ternary": "error",
"no-undef-init": "error",
"no-useless-rename": "error",
"no-whitespace-before-property": "error",
"node/no-exports-assign": "error",
"rest-spread-spacing": ["error", "never"],
"semi-spacing": ["error", { "before": false, "after": true }],
"semi-style": ["error", "last"],
"template-curly-spacing": "error",
"unicode-bom": ["error", "never"]
},
"overrides": [
{
"files": [ "**/test/**", "**/tests/**" ],
"rules": {
"promise/catch-or-return": "error"
}
},
{
"files": ["config/**/**"],
"rules": {
"brace-style": "off",
"array-bracket-newline": "off",
"func-style": "off",
"function-call-argument-newline": "off",
"function-paren-newline": "off",
"key-spacing": "off"
}
},
{
"files": ["ddocs/**/*.js"],
"rules": {
"function-paren-newline": "off",
"keyword-spacing": "off",
}
}
]
}