forked from joao-fontenele/express-prometheus-middleware
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
56 lines (56 loc) · 1.26 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
module.exports = {
extends: 'airbnb-base',
plugins: [
'import',
],
parser: 'babel-eslint',
rules: {
'no-restricted-syntax': 'off',
'comma-dangle': ['error', {
'arrays': 'always-multiline',
'objects': 'always-multiline',
'imports': 'always-multiline',
'exports': 'always-multiline',
'functions': 'never'
}],
'max-len': ['warn', 120, { 'ignoreUrls': true }],
'object-curly-spacing': 'off',
'global-require': 'warn',
'import/no-dynamic-require': 'off',
'no-underscore-dangle': 'off',
'quote-props': ['error', 'consistent-as-needed'],
'prefer-arrow-callback': ['off'],
'space-before-function-paren': [
'error', {
'anonymous': 'never',
'named': 'always',
'asyncArrow': 'ignore',
},
],
'no-unused-vars': [
'error',
{
'vars': 'all',
'args': 'after-used',
},
],
'indent': [
'error',
2,
{
'MemberExpression': 1,
'SwitchCase': 1,
},
],
'import/no-extraneous-dependencies': ['off', { 'dev-dependencies': true }],
'no-undef': ['warn'],
'no-unused-expressions': ['warn'],
'no-throw-literal': ['off'],
},
env: {
es6: true,
node: true,
},
globals: {
}
};