-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc.js
85 lines (85 loc) · 1.61 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
module.exports = {
globals: {
'__dirname': true,
'process': true
},
'env': {
browser: false,
commonjs: true,
node: true,
jest: true,
es6: true
},
extends: [
'eslint:recommended',
'plugin:import/errors',
'plugin:import/warnings'
],
parser: 'babel-eslint',
parserOptions: {
'sourceType': 'module',
'ecmaFeatures': {
'jsx': true
}
},
plugins: [
'import'
],
rules: {
'eqeqeq': 'error',
'import/no-unresolved': [2, {'commonjs': true, 'amd': true}],
'import/named': 2,
'import/namespace': 2,
'import/default': 2,
'import/export': 2,
'indent': [
'error',
2,
{
'VariableDeclarator': 1,
'outerIIFEBody': 1,
'SwitchCase': 1,
'flatTernaryExpressions': true,
'ObjectExpression': 1,
'ignoredNodes': ['MemberExpression', 'CallExpression', 'JSXElement', 'JSXElement *'],
'FunctionDeclaration': {
'parameters': 1,
'body': 1
},
'FunctionExpression': {
'parameters': 1,
'body': 1
},
'CallExpression': {
'arguments': 1
},
'ArrayExpression': 1
}
],
'newline-per-chained-call': [
'error',
{
'ignoreChainWithDepth': 8
}
],
'no-whitespace-before-property': 'error',
'linebreak-style': [
'error',
'unix'
],
'quotes': [
'error',
'single'
],
'semi': [
'error',
'never'
],
'object-curly-spacing': [
2,
'always'
],
'no-unused-vars': 1,
'no-console': 1
}
}