File tree 2 files changed +25
-7
lines changed
2 files changed +25
-7
lines changed Original file line number Diff line number Diff line change @@ -2,14 +2,31 @@ root: true
2
2
3
3
env:
4
4
node: true
5
- es6: true
6
5
mocha: true
7
6
8
- ecmaFeatures:
9
- modules: true
10
-
11
7
extends:
12
8
"eslint:recommended"
13
9
14
- globals:
15
- should: true
10
+ rules:
11
+ array-bracket-spacing: [2, "never"]
12
+ block-scoped-var: 2
13
+ brace-style: [2, "1tbs"]
14
+ camelcase: 1
15
+ curly: 2
16
+ eol-last: 2
17
+ eqeqeq: [2, "smart"]
18
+ indent: [2, 2, { "SwitchCase": 1 }]
19
+ max-depth: [1, 3]
20
+ max-len: [1, 80]
21
+ max-statements: [1, 15]
22
+ new-cap: 1
23
+ no-extend-native: 2
24
+ no-mixed-spaces-and-tabs: 2
25
+ no-trailing-spaces: 2
26
+ no-unused-vars: 1
27
+ no-use-before-define: [2, "nofunc"]
28
+ object-curly-spacing: [2, "never"]
29
+ quotes: [2, "single", "avoid-escape"]
30
+ semi: [2, "always"]
31
+ space-after-keywords: [2, "always"]
32
+ space-unary-ops: 2
Original file line number Diff line number Diff line change @@ -41,7 +41,8 @@ var groupByParents = function(array, options) {
41
41
42
42
/**
43
43
* arrayToTree
44
- * Convert a plain array of nodes (with pointers to parent nodes) to a nested data structure
44
+ * Convert a plain array of nodes (with pointers to parent nodes) to a nested
45
+ * data structure
45
46
*
46
47
* @name arrayToTree
47
48
* @function
You can’t perform that action at this time.
0 commit comments