-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
50 lines (50 loc) · 1.54 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
module.exports = {
extends: require.resolve('../eslint-config-airbnb-base'),
rules: {
'arrow-parens': [2, 'as-needed'],
'brace-style': [2, 'stroustrup', { allowSingleLine: true }],
'comma-dangle': [1, {
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'always-multiline',
exports: 'always-multiline',
functions: 'ignore',
}],
'consistent-return': 0,
'default-case': 0,
'eol-last': 0, // Belongs to editorconfig
'global-require': 0,
'guard-for-in': 0,
'max-len': 0,
'newline-before-return': 2,
'newline-per-chained-call': 0,
'no-confusing-arrow': 0,
'no-console': 0,
'no-mixed-operators': 0,
'no-multi-spaces': 1,
'no-nested-ternary': 0,
'no-new': 0,
'no-param-reassign': 0,
'no-plusplus': 0,
'no-restricted-syntax': 0,
'no-return-assign': 0,
'no-self-compare': 0, // For NaN check
'no-shadow': 0,
'no-trailing-spaces': 0, // Belongs to editorconfig
'no-underscore-dangle': 0,
'no-unused-expressions': 0,
'no-unused-vars': 1,
'no-use-before-define': [2, { functions: false, classes: false }],
'object-curly-spacing': 1,
'one-var-declaration-per-line': 0,
'one-var': [2, { uninitialized: 'always', initialized: 'never' }],
'padded-blocks': 0,
'radix': 0,
'semi': 1,
'space-in-parens': 1,
'spaced-comment': 0,
'import/no-dynamic-require': 0,
'import/no-extraneous-dependencies': [2, { devDependencies: true }],
'import/no-unresolved': 2,
},
};