File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 43
43
"rehype-stringify" : " ^6.0.0" ,
44
44
"remark-cli" : " ^7.0.0" ,
45
45
"remark-lint-first-heading-level" : " ^1.0.0" ,
46
- "remark-lint-no-dead-urls" : " ^0.5 .0" ,
46
+ "remark-lint-no-dead-urls" : " ^1.0 .0" ,
47
47
"remark-parse" : " ^7.0.0" ,
48
48
"remark-preset-wooorm" : " ^6.0.0" ,
49
49
"remark-rehype" : " ^5.0.0" ,
70
70
"unified" : " ^8.0.0" ,
71
71
"unist-util-visit" : " ^2.0.0" ,
72
72
"vfile-reporter" : " ^6.0.0" ,
73
- "xo" : " ^0.24 .0"
73
+ "xo" : " ^0.25 .0"
74
74
},
75
75
"scripts" : {
76
76
"format" : " remark src -qo && rehype src -q && prettier --write \" **/*.js\" && xo --fix" ,
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ function link() {
32
32
33
33
function replace ( $0 ) {
34
34
var id = singular ( $0 )
35
- var first = cache . indexOf ( id ) === - 1
35
+ var first = ! cache . includes ( id )
36
36
var title = titles [ id ]
37
37
var props
38
38
Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ function when(selector, cb) {
124
124
inView ( selector ) . on ( 'enter' , onenter )
125
125
126
126
function onenter ( $node ) {
127
- if ( seen . indexOf ( $node ) === - 1 ) {
127
+ if ( ! seen . includes ( $node ) ) {
128
128
seen . push ( $node )
129
129
cb ( $node )
130
130
}
You can’t perform that action at this time.
0 commit comments