This repository has been archived by the owner on Oct 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
.eslintrc.js
48 lines (47 loc) · 1.67 KB
/
.eslintrc.js
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
module.exports = {
"extends": "google",
"parserOptions": {
"ecmaVersion": 7,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
}
},
env: {
'es6': true,
'jasmine': true
},
rules: {
"new-cap": [2, {
"capIsNewExceptions": ["SwaggerUi"]
}],
"switch-colon-spacing": 0,
// need to keep as it's known issue with a dependency of airbnb standards
"arrow-parens": 0,
'jsx-a11y/href-no-hash': 0,
'camelcase': 0, // allowing underscore case
'semi': 0, // allowing lines with or without semi colon at the end
'arrow-body-style': ['error', 'always'], // because we return BIG BIG promises
'no-shadow': ['error', { 'builtinGlobals': true, 'hoist': 'all' }],
'no-param-reassign': 0,
'no-unused-vars': 'error',
'no-use-before-define': 0,
'radix': ['error', 'as-needed'],
'max-len': ['error', { 'ignoreComments': true, 'ignoreTemplateLiterals': true, 'ignoreUrls': true }],
'require-jsdoc': ['error', {
'require': {
'FunctionDeclaration': true,
'MethodDefinition': true,
'ClassDeclaration': true,
'ArrowFunctionExpression': true
}
}],
'valid-jsdoc': 2,
'comma-dangle': ['error', 'never'],
'one-var': 0,
'one-var-declaration-per-line': 0,
// disable linebreak-style check so that ESLint won't give WinOS trouble
'linebreak-style': 0,
'global-require': 0
}
};