Skip to content

Commit 31df592

Browse files
renovate[bot]renovate-botKingDarBoja
authored
chore(deps): update typescript-eslint monorepo to v3.3.0 (#607)
* Update typescript-eslint monorepo to v3.3.0 * refactor: optional chain at comment-format converter Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: KingDarBoja <[email protected]>
1 parent 7aa233c commit 31df592

File tree

3 files changed

+25
-28
lines changed

3 files changed

+25
-28
lines changed

package-lock.json

Lines changed: 22 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
"@types/glob": "7.1.2",
2929
"@types/jest": "26.0.0",
3030
"@types/node": "12.12.21",
31-
"@typescript-eslint/eslint-plugin": "3.1.0",
32-
"@typescript-eslint/parser": "3.1.0",
31+
"@typescript-eslint/eslint-plugin": "3.3.0",
32+
"@typescript-eslint/parser": "3.3.0",
3333
"babel-jest": "26.0.1",
3434
"eslint": "7.3.0",
3535
"husky": "4.2.5",

src/rules/converters/comment-format.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@ export const convertCommentFormat: RuleConverter = (tslintRule) => {
2121
if (typeof tslintRule.ruleArguments[tslintRule.ruleArguments.length - 1] === "object") {
2222
const objectArgument: CommentFormatOptions =
2323
tslintRule.ruleArguments[tslintRule.ruleArguments.length - 1];
24-
if (
25-
(objectArgument["ignore-words"] && objectArgument["ignore-words"].length) ||
26-
objectArgument["ignore-pattern"]
27-
) {
24+
if (objectArgument["ignore-words"]?.length || objectArgument["ignore-pattern"]) {
2825
capitalizedNotices.push(CapitalizedIgnoreMessage);
2926
}
3027
}

0 commit comments

Comments
 (0)