-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbase.js
67 lines (67 loc) · 2.8 KB
/
base.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
module.exports = {
extends: 'eslint:all',
rules: {
'array-bracket-newline': ['error', 'consistent'],
'array-element-newline': ['error', 'consistent'],
'arrow-parens': ['error', 'as-needed'],
'brace-style': ['error', '1tbs', { allowSingleLine: true }],
'capitalized-comments': 'off',
'class-methods-use-this': 'off',
'comma-dangle': ['error', 'always-multiline'],
'complexity': 'off',
'curly': ['error', 'multi-line'],
'dot-location': ['error', 'property'],
'func-names': ['error', 'as-needed'],
'func-style': 'off',
'function-call-argument-newline': ['error', 'consistent'],
'grouped-accessor-pairs': ['error', 'getBeforeSet'],
'id-length': 'off',
'indent': ['error', 2],
'line-comment-position': 'off',
'linebreak-style': 'off',
'lines-around-comment': 'off',
'lines-between-class-members': ['error', 'never'],
'max-len': ['error', { code: 200, tabWidth: 2 }],
'max-lines': 'off',
'max-lines-per-function': 'off',
'max-statements-per-line': 'off',
'max-statements': 'off',
'multiline-comment-style': 'off',
'multiline-ternary': ['error', 'always-multiline'],
'no-bitwise': 'off',
'no-empty-function': 'off',
'no-inline-comments': 'off',
'no-magic-numbers': 'off',
'no-multiple-empty-lines': ['error', { max: 1, maxEOF: 0, maxBOF: 0 }],
'no-nested-ternary': 'off',
'no-plusplus': 'off',
'no-ternary': 'off',
'no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
'no-warning-comments': 'off',
'object-curly-spacing': ['error', 'always'],
'object-property-newline': ['error', { allowAllPropertiesOnSameLine: true }],
'one-var': ['error', 'never'],
'one-var-declaration-per-line': ['error', 'always'],
'operator-linebreak': ['error', 'after', { 'overrides': { '?': 'before', ':': 'before' } }],
'padded-blocks': ['error', 'never'],
'padding-line-between-statements': [
'error',
// imports always grouped and separate from the rest
{ blankLine: 'always', prev: 'import', next: '*' },
{ blankLine: 'always', prev: '*', next: 'import' },
{ blankLine: 'never', prev: 'import', next: 'import' },
{ blankLine: 'always', prev: 'cjs-import', next: '*' },
{ blankLine: 'always', prev: '*', next: 'cjs-import' },
{ blankLine: 'never', prev: 'cjs-import', next: 'cjs-import' },
{ blankLine: 'never', prev: 'import', next: 'cjs-import' },
{ blankLine: 'never', prev: 'cjs-import', next: 'import' },
],
'quote-props': ['error', 'consistent'],
'quotes': ['error', 'single'],
'semi': ['error', 'never'],
'sort-imports': 'off',
'sort-keys': 'off',
'space-before-function-paren': ['error', { anonymous: 'never', asyncArrow: 'always', named: 'never' }],
'strict': ['error', 'never'],
},
}