forked from apiaryio/dredd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
43 lines (40 loc) · 1.25 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
module.exports = {
extends: 'airbnb-base',
env: {
'node': true
},
rules: {
// Using 'console' is perfectly okay for a Node.js CLI tool and avoiding
// it only brings unnecessary complexity
'no-console': 'off',
// Node 6 does not support dangling commas in function arguments
'comma-dangle': [
'error',
{
'arrays': 'always-multiline',
'objects': 'always-multiline',
'functions': 'never'
}
],
// This is to allow a convention for exporting functions solely for
// the purpose of the unit tests, see
// https://github.com/apiaryio/dredd-transactions/pull/179#discussion_r206852270
'no-underscore-dangle': 'off',
// Following rules were introduced to make the decaffeination
// of the codebase possible and are to be removed in the future
'class-methods-use-this': 'off',
'consistent-return': 'off',
'import/no-extraneous-dependencies': 'off',
'import/no-unresolved': 'off',
'max-len': 'off',
'no-continue': 'off',
'no-empty': 'off',
'no-multi-assign': 'off',
'no-new': 'off',
'no-param-reassign': 'off',
'no-plusplus': 'off',
'no-restricted-syntax': 'off',
'no-use-before-define': 'off',
'prefer-destructuring': 'off',
}
};