-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.js
35 lines (34 loc) · 1020 Bytes
/
.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
'use strict';
module.exports = {
env: {
node: true
},
plugins: ['node'],
extends: ['plugin:node/recommended', 'eslint-config-salesflare'],
rules: {
// Taken from server
'node/callback-return': [
'error',
[
'callback',
'next',
'done'
]
],
'node/file-extension-in-import': ['error', 'always', { '.js': 'never' }],
'node/global-require': 'error',
'node/handle-callback-err': 'error',
'node/no-exports-assign': 'error',
'node/no-missing-import': 'error',
'node/no-sync': [
'error',
{
allowAtRootLevel: true
}
],
'node/no-unpublished-require': ['error'],
'no-underscore-dangle': ['error', { allow: ['_dirty', '_deleted'], allowAfterThis: true }], // We do allow after this unlike the server
// Custom rules
'class-methods-use-this': 'off'
}
};