forked from rapomon/geojson-places
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
104 lines (104 loc) · 2.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
module.exports = {
'env': {
'node': true,
'es6': true
},
'extends': 'eslint:recommended',
'parser': '@babel/eslint-parser',
'parserOptions': {
'requireConfigFile': false,
'sourceType': 'module',
'allowImportExportEverywhere': false,
'ecmaVersion': 6,
'ecmaFeatures': {
'globalReturn': false
}
},
'rules': {
'no-console': 'off',
'no-unused-vars': ['error', { 'args': 'none' }],
'require-atomic-updates': 'off',
'indent': [
'error',
4
],
'quotes': [
'error',
'single'
],
'semi': [
'error',
'always'
],
'space-before-function-paren': [
'error', {
'anonymous': 'never',
'named': 'never',
'asyncArrow': 'always'
}
],
'space-unary-ops': [
2,
{
'words': true,
'nonwords': false,
'overrides': {
'new': false
}
}
],
'keyword-spacing': [
'error', {
'overrides': {
'if': { 'after': false },
'for': { 'after': false },
'while': { 'after': false },
'catch': { 'after': false },
'switch': { 'after': false }
}
}
],
'no-trailing-spaces': [
'error', {
'skipBlankLines': false,
'ignoreComments': false
}
],
'eqeqeq': [
'error', 'smart'
],
'spaced-comment': [
'error', 'always',
{
'block': {
'exceptions': ['*']
}
}
],
'comma-dangle': [
'error', 'never'
],
'no-multiple-empty-lines': [
'error',
{
'max': 1,
'maxEOF': 0
}
],
'no-multi-spaces': [
'error',
{
'ignoreEOLComments': true,
'exceptions': {
'AssignmentExpression': true,
'BinaryExpression': true,
'ConditionalExpression': true,
'LogicalExpression': true,
'JSXAttribute': true,
'Property': true,
'VariableDeclarator': true
}
}
]
}
};