forked from random-guys/backend-developer-test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
103 lines (103 loc) · 3.38 KB
/
.eslintrc.json
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": [
"airbnb-base"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"rules": {
"no-undef": "off",
"semi": ["error", "always"],
"camelcase": ["error", { "properties": "never" }],
"constructor-super": "error",
"comma-dangle": ["error", {
"arrays": "always-multiline",
"objects": "always-multiline"
}],
"object-curly-spacing": ["error", "always"],
"no-multiple-empty-lines": ["error", {
"max": 1,
"maxEOF": 1
}],
"eol-last": ["error", "always"],
"linebreak-style": 0,
"global-require": 0,
"eslint linebreak-style": [0, "error", "windows"],
"import/prefer-default-export": 0,
"indent": ["error", 4, {
"SwitchCase": 1,
"VariableDeclarator": 1,
"outerIIFEBody": 1,
"FunctionDeclaration": {
"parameters": 1,
"body": 1
},
"FunctionExpression": {
"parameters": 1,
"body": 1
},
"CallExpression": {
"arguments": 1
},
"ArrayExpression": 1,
"ObjectExpression": 1,
"ImportDeclaration": 1,
"flatTernaryExpressions": false,
"ignoredNodes": ["JSXElement", "JSXElement > *", "JSXAttribute", "JSXIdentifier", "JSXNamespacedName", "JSXMemberExpression", "JSXSpreadAttribute", "JSXExpressionContainer", "JSXOpeningElement", "JSXClosingElement", "JSXText", "JSXEmptyExpression", "JSXSpreadChild"],
"ignoreComments": false
}],
"no-param-reassign": ["error", { "props": false }],
"arrow-body-style": ["error", "as-needed"],
"arrow-parens": ["warn", "as-needed", {
"requireForBlockBody": false
}],
"arrow-spacing": ["error", {
"before": true,
"after": true
}],
"no-const-assign": "error",
"no-dupe-class-members": "error",
"no-duplicate-imports": "error",
"no-new-symbol": "error",
"no-this-before-super": "error",
"no-useless-catch": "off",
"no-useless-computed-key": "error",
"no-useless-constructor": "warn",
"no-useless-rename": ["error", {
"ignoreDestructuring": false,
"ignoreImport": false,
"ignoreExport": false
}],
"no-var": "warn",
"object-curly-newline": ["error", { "consistent": true }],
"prefer-arrow-callback": ["warn", {
"allowUnboundThis": true
}],
"prefer-const": ["error", {
"destructuring": "all",
"ignoreReadBeforeAssign": true
}],
"prefer-template": "error",
"require-yield": "error",
"rest-spread-spacing": ["error", "never"],
"template-curly-spacing": "error",
"yield-star-spacing": ["error", "after"],
"prefer-spread": "error",
"generator-star-spacing": ["error", {
"before": false,
"after": true
}],
"symbol-description": "error",
"max-len": ["error", { "code": 100 }]
}
}