Skip to content

Commit

Permalink
chore(deps-dev): bump eslint-plugin-unicorn from 46.0.0 to 47.0.0 (#927)
Browse files Browse the repository at this point in the history
Co-authored-by: Felix <188768+fb55@users.noreply.github.com>
  • Loading branch information
dependabot[bot] and fb55 committed May 21, 2023
1 parent 050570f commit 021b6ac
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 52 deletions.
2 changes: 2 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
"unicorn/no-array-push-push": "off",
"unicorn/no-for-loop": "off",
"unicorn/consistent-destructuring": "off",
"unicorn/prefer-string-replace-all": "off",
"unicorn/prefer-at": "off",
"unicorn/prefer-switch": ["error", { "emptyDefaultCase": "do-nothing-comment" }]
},
"parserOptions": {
Expand Down
104 changes: 55 additions & 49 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@typescript-eslint/parser": "^5.59.6",
"eslint": "^8.39.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-unicorn": "^46.0.0",
"eslint-plugin-unicorn": "^47.0.0",
"husky": "^8.0.3",
"jest": "^29.5.0",
"lint-staged": "^13.2.2",
Expand Down
2 changes: 1 addition & 1 deletion scripts/generate-parser-feedback-test/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function collectParserTokens(html: string): HtmlLibToken[] {
return;
}

const lastToken = tokens[tokens.length - 1];
const lastToken = tokens.at(-1);

if (lastToken?.[0] === 'Character') {
lastToken[1] += token[1];
Expand Down
2 changes: 1 addition & 1 deletion test/utils/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export function normalizeNewLine(str: string): string {
}

export function removeNewLines(str: string): string {
return str.replace(/\r/g, '').replace(/\n/g, '');
return str.replace(/[\n\r]/g, '');
}

export function writeChunkedToStream(str: string, stream: Writable): void {
Expand Down

0 comments on commit 021b6ac

Please sign in to comment.