Skip to content

Commit f566960

Browse files
renovate[bot]renovate-botota-meshi
authored
fix(deps): update dependency yaml-eslint-parser to ^0.2.0 (#142)
* fix(deps): update dependency yaml-eslint-parser to ^0.2.0 * fix type Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: yosuke ota <[email protected]>
1 parent 43aa3bd commit f566960

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

lib/rules/no-unused-keys.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ function create(context: RuleContext): RuleListener {
430430
yield* fixForBlock(fixer, removeNode)
431431
}
432432
} else if (parent.type === 'YAMLSequence') {
433-
if (parent.entries.every(p => removeNodes.includes(p))) {
433+
if (parent.entries.every(p => p && removeNodes.includes(p))) {
434434
// all remove
435435
const before = sourceCode.getTokenBefore(parent)
436436
if (before) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"lodash": "^4.17.11",
3434
"parse5": "^6.0.0",
3535
"vue-eslint-parser": "^7.0.0",
36-
"yaml-eslint-parser": "^0.1.0"
36+
"yaml-eslint-parser": "^0.2.0"
3737
},
3838
"devDependencies": {
3939
"@types/debug": "^4.1.5",

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11024,10 +11024,10 @@ yallist@^4.0.0:
1102411024
resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72"
1102511025
integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==
1102611026

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==
1103111031
dependencies:
1103211032
eslint-visitor-keys "^1.3.0"
1103311033
yaml "^1.10.0"

0 commit comments

Comments
 (0)