Skip to content

Commit

Permalink
chore(deps-dev): bump eslint-plugin-unicorn from 51.0.1 to 52.0.0 (#1159
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 authored Apr 14, 2024
1 parent 4027294 commit bc79ba4
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 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": "^6.21.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-unicorn": "^51.0.1",
"eslint-plugin-unicorn": "^52.0.0",
"husky": "^9.0.11",
"jest": "^29.7.0",
"lint-staged": "^15.2.2",
Expand Down
4 changes: 2 additions & 2 deletions scripts/generate-parser-feedback-test/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { readFile, writeFile } from 'node:fs/promises';
import { basename } from 'node:path';
import path from 'node:path';
import { Parser, type DefaultTreeAdapterMap, type TreeAdapterTypeMap, type Token, defaultTreeAdapter } from 'parse5';
import type { HtmlLibToken } from 'parse5-test-utils/utils/generate-tokenization-tests.js';
import { parseDatFile } from 'parse5-test-utils/utils/parse-dat-file.js';
Expand All @@ -8,7 +8,7 @@ import { addSlashes } from 'parse5-test-utils/utils/common.js';
for (const file of process.argv.slice(2)) {
const content = await readFile(file, 'utf8');
const feedbackTestContent = generateParserFeedbackTest(content);
const feedbackTestFile = `test/data/parser-feedback/${basename(file, '.dat')}.test`;
const feedbackTestFile = `test/data/parser-feedback/${path.basename(file, '.dat')}.test`;

await writeFile(feedbackTestFile, feedbackTestContent);
}
Expand Down
2 changes: 1 addition & 1 deletion test/utils/generate-location-info-parser-tests.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as assert from 'node:assert';
import * as fs from 'node:fs';
import * as path from 'node:path';
import path from 'node:path';
import { type TreeAdapterTypeMap, type TreeAdapter, type ParserOptions, type Token, serializeOuter } from 'parse5';
import {
removeNewLines,
Expand Down
2 changes: 1 addition & 1 deletion test/utils/generate-parsing-tests.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { ParserOptions, TreeAdapter, TreeAdapterTypeMap, ParserError } from 'parse5';
import * as fs from 'node:fs';
import * as path from 'node:path';
import path from 'node:path';
import * as assert from 'node:assert';
import { serializeToDatFileFormat } from './serialize-to-dat-file-format.js';
import { generateTestsForEachTreeAdapter } from './common.js';
Expand Down
2 changes: 1 addition & 1 deletion test/utils/generate-tokenization-tests.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as assert from 'node:assert';
import * as fs from 'node:fs';
import * as path from 'node:path';
import path from 'node:path';
import type { ParserError, Token } from 'parse5';
import { type Tokenizer, TokenizerMode, type TokenHandler } from 'parse5';
import { makeChunks } from './common.js';
Expand Down
2 changes: 1 addition & 1 deletion test/utils/load-sax-parser-test-data.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as fs from 'node:fs';
import * as path from 'node:path';
import path from 'node:path';
import { normalizeNewLine } from './common.js';

export function loadSAXParserTestData(): { name: string; src: string; expected: string }[] {
Expand Down

0 comments on commit bc79ba4

Please sign in to comment.