File tree Expand file tree Collapse file tree 4 files changed +5
-8
lines changed Expand file tree Collapse file tree 4 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 9
9
" @babel/preset-env" ,
10
10
{
11
11
"targets" : {
12
- "node" : 10
12
+ "node" : 12
13
13
}
14
14
}
15
15
]
Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ os: linux
2
2
dist : xenial
3
3
language : node_js
4
4
node_js :
5
+ - 16
5
6
- 14
6
7
- 12
7
- - 10
8
8
9
9
before_install :
10
10
- npm config set depth 0
Original file line number Diff line number Diff line change 36
36
"gitdown" : " ^3.1.4" ,
37
37
"glob" : " ^7.1.7" ,
38
38
"husky" : " ^6.0.0" ,
39
- "lint-staged" : " ^10.5.4 " ,
39
+ "lint-staged" : " ^11.0.0 " ,
40
40
"mocha" : " ^8.4.0" ,
41
41
"nyc" : " ^15.1.0" ,
42
42
"rimraf" : " ^3.0.2" ,
43
43
"semantic-release" : " ^17.4.2" ,
44
44
"typescript" : " ^4.2.4"
45
45
},
46
46
"engines" : {
47
- "node" : " >=10 "
47
+ "node" : " >=12 "
48
48
},
49
49
"lint-staged" : {
50
50
".eslintignore" : " npm run lint" ,
Original file line number Diff line number Diff line change @@ -325,10 +325,7 @@ const isValidTag = (
325
325
) : boolean => {
326
326
const tagNames = getTagNamesForMode ( mode , context ) ;
327
327
328
- // Todo[engine:node@>=12]: Switch to flatten
329
-
330
- // eslint-disable-next-line unicorn/prefer-array-flat -- Not yet supported
331
- const validTagNames = Object . keys ( tagNames ) . concat ( _ . flatten ( Object . values ( tagNames ) ) ) ;
328
+ const validTagNames = Object . keys ( tagNames ) . concat ( Object . values ( tagNames ) . flat ( ) ) ;
332
329
const additionalTags = definedTags ;
333
330
const allTags = validTagNames . concat ( additionalTags ) ;
334
331
You can’t perform that action at this time.
0 commit comments