File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -430,7 +430,7 @@ function create(context: RuleContext): RuleListener {
430
430
yield * fixForBlock ( fixer , removeNode )
431
431
}
432
432
} else if ( parent . type === 'YAMLSequence' ) {
433
- if ( parent . entries . every ( p => removeNodes . includes ( p ) ) ) {
433
+ if ( parent . entries . every ( p => p && removeNodes . includes ( p ) ) ) {
434
434
// all remove
435
435
const before = sourceCode . getTokenBefore ( parent )
436
436
if ( before ) {
Original file line number Diff line number Diff line change 33
33
"lodash" : " ^4.17.11" ,
34
34
"parse5" : " ^6.0.0" ,
35
35
"vue-eslint-parser" : " ^7.0.0" ,
36
- "yaml-eslint-parser" : " ^0.1 .0"
36
+ "yaml-eslint-parser" : " ^0.2 .0"
37
37
},
38
38
"devDependencies" : {
39
39
"@types/debug" : " ^4.1.5" ,
Original file line number Diff line number Diff line change @@ -11024,10 +11024,10 @@ yallist@^4.0.0:
11024
11024
resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72"
11025
11025
integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==
11026
11026
11027
- yaml-eslint-parser@^0.1 .0 :
11028
- version "0.1 .0"
11029
- resolved "https://registry.yarnpkg.com/yaml-eslint-parser/-/yaml-eslint-parser-0.1 .0.tgz#37e7281b6bd20186c76c4d3b6f87f21ffe5db827 "
11030
- integrity sha512-JhDwzS/zlgxdOuzFG50sMZ4bDo3xbU5TjLyfW+Br7laIh/zaa//lRhHPVOQm6FanMvveS9DG+z6OkCVefyw5QA ==
11027
+ yaml-eslint-parser@^0.2 .0 :
11028
+ version "0.2 .0"
11029
+ resolved "https://registry.yarnpkg.com/yaml-eslint-parser/-/yaml-eslint-parser-0.2 .0.tgz#76bfe1645caf39adcd9b274c32752b3f6da90882 "
11030
+ integrity sha512-ZIqeTBi4K1eXzqYp9CqfN5Gr0RIA4q1T7+jiv0XoUV1ti05FL31iH7Yfw5aY0GpIJv/A003yEjvVTDb3XLH31A ==
11031
11031
dependencies :
11032
11032
eslint-visitor-keys "^1.3.0"
11033
11033
yaml "^1.10.0"
You can’t perform that action at this time.
0 commit comments