forked from iobroker-community-adapters/ioBroker.ring
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
executable file
·39 lines (38 loc) · 980 Bytes
/
.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
'use strict';
module.exports = {
'extends': ['eslint:recommended', 'plugin:react/recommended'],
'parserOptions': {
'ecmaVersion': 8,
'ecmaFeatures': {
'experimentalObjectRestSpread': true,
'jsx': true
},
'sourceType': 'module'
},
'env': {
'node': true,
'es6': true
},
'rules': {
'no-console': ['warn'],
'no-undef': ['error'],
'no-unused-vars': ['warn'],
'one-var': 'off',
'arrow-parens': ['error', 'always'],
'semi': ['error', 'always'],
'indent': ['error', 2, {
'SwitchCase': 1
}],
'max-len': [
'warn',
{
'code': 200,
'ignoreTemplateLiterals': true,
'ignoreStrings': true
}
],
'generator-star-spacing': 'off',
'func-names': ['error', 'never'],
'quotes': ['error', 'single']
}
}