forked from nextcloud/cdav-library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
41 lines (41 loc) · 1.22 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
31
32
33
34
35
36
37
38
39
40
41
module.exports = {
root: true,
env: {
browser: true,
es6: true,
node: true
},
globals: {
dav: true
},
extends: ['eslint:recommended', 'plugin:node/recommended', 'standard'],
plugins: ['node'],
rules: {
// space before function ()
'space-before-function-paren': ['error', 'never'],
// curly braces always space
'object-curly-spacing': ['error', 'always'],
'array-bracket-spacing': ['error', 'never'],
// stay consistent with array brackets
'array-bracket-newline': ['error', 'consistent'],
// 1tbs brace style
'brace-style': 'error',
// tabs only
indent: ['error', 'tab'],
'no-tabs': 0,
// only debug console
'no-console': ['error', { allow: ['error', 'warn', 'debug'] }],
// classes blocks
'padded-blocks': ['error', { classes: 'always' }],
// always have the operator in front
'operator-linebreak': ['error', 'before'],
// ternary on multiline
'multiline-ternary': ['error', 'always-multiline'],
// es6 import/export and require
'node/no-unsupported-features/es-syntax': ['off'],
// disable the recommended no-extra-semi
semi: ['error', 'always'],
// dot notation exclusion for uppercase first letters variables
'dot-notation': ['error', { allowPattern: '^[A-Z][a-zA-Z]+$' }]
}
};