-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.eslintrc.js
61 lines (52 loc) · 1.14 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// Configuration
module.exports = {
root: true,
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module',
ecmaVersion: 2016,
ecmaFeatures: {
globalReturn: false,
impliedStrict: false,
jsx: true,
},
allowImportExportEverywhere: false,
},
env: {
browser: false,
es6: true,
node: true,
},
extends: [
'strongloop',
// 'plugin:node/recommended', // ES6 not supported yet, define which files are in node
],
plugins: [
'promise',
],
settings: {
},
// Note: 0 = off, 1 = warn, 2 = error
rules: {
// Eslint parameters
'padded-blocks': [2, {
blocks: 'never',
classes: 'never',
switches: 'never'
}],
'no-multiple-empty-lines': [1, {'max': 1, 'maxEOF': 1, 'maxBOF': 0}],
'no-unused-vars': 1,
'require-jsdoc': 0,
'max-len': [0, 100, 4],
'arrow-parens': 1,
'generator-star-spacing': 1,
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
'space-before-function-paren': [2, {
anonymous: 'always',
named: 'never',
}],
'new-cap': 1,
'no-empty': 1,
'no-invalid-this': 2,
},
};