forked from deriv-com/deriv-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
30 lines (30 loc) · 1.19 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
module.exports = {
extends: [
'airbnb-base',
],
plugins: [
'align-assignments',
'arca',
],
env: {
browser: true,
jest : true,
node : true,
es6 : true,
},
rules: {
indent : ['error', 4, { SwitchCase: 1 }],
'align-assignments/align-assignments': ['error', { requiresOnly: false } ],
'arca/import-align' : 2,
'arca/import-ordering' : 2,
'arca/newline-after-import-section' : 2,
'camelcase' : 0,
'key-spacing' : ['error', { align: 'colon' }],
'max-len' : ['error', 100, 2, { comments: 120, ignoreUrls: true, ignoreComments: false, ignoreRegExpLiterals: true, ignoreStrings: true, ignoreTemplateLiterals: true, }],
'no-multi-spaces' : 0,
'no-param-reassign' : ['error', {props: false }],
'no-plusplus' : 0,
'no-underscore-dangle' : ['error', { allow: ['_data'] }],
'no-use-before-define' : 0,
},
};