-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
31 lines (31 loc) · 893 Bytes
/
index.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
module.exports = {
extends: 'airbnb-base',
parserOptions: {
ecmaVersion: 6,
sourceType: 'module',
allowImportExportEverywhere: true,
ecmaFeatures: {
experimentalObjectRestSpread: true,
experimentalDecorators: true,
jsx: true
}
},
rules: {
'max-len': [2, { code: 79, tabWidth: 2 }],
'no-console': [0],
'brace-style': [2, 'stroustrup', { allowSingleLine: true }],
'no-param-reassign': [2, {'props': false}],
'no-underscore-dangle': [0],
'no-unused-vars': [2, {'args': 'none'}],
'function-paren-newline': [2, 'consistent'],
'arrow-parens': [2, 'always'],
'new-cap': ["error", { "properties": false }],
'comma-dangle': ['error', {
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'always-multiline',
exports: 'always-multiline',
functions: 'ignore'
}],
}
};