This repository has been archived by the owner on Feb 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
.eslintrc.js
69 lines (68 loc) · 1.7 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
module.exports = {
'parserOptions': {
'sourceType': 'module',
"ecmaFeatures": {
"jsx": true,
"modules": true
}
},
"plugins": [
"react"
],
'rules': {
'linebreak-style': 0,
'global-require': 0,
"arrow-parens": 0,
"react/jsx-uses-vars": [2],
// need to keep as it's known issue with a dependency of airbnb standards
'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': [2, "as-needed"], // because we return BIG BIG promises
'no-shadow': ['error', {
'builtinGlobals': true,
'hoist': 'all'
}],
'eol-last': 0,
'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'],
'indent': ['error', 2,
{
'FunctionExpression': {
'parameters': 'first'
},
'CallExpression': {
'arguments': 'first'
},
'FunctionDeclaration': {
'parameters': 'first'
},
'CallExpression': {
'arguments': 'first'
},
'ObjectExpression': 'first',
'flatTernaryExpressions': true
}
],
'one-var': 0,
'one-var-declaration-per-line': 0
},
"extends": "google"
};