We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7a3243 commit 021cf14Copy full SHA for 021cf14
eslint/eslint-patch/src/eslint-bulk-suppressions/bulk-suppressions-file.ts
@@ -55,7 +55,8 @@ export function getSuppressionsConfigForEslintrcFolderPath(
55
const suppressionsPath: string = `${eslintrcFolderPath}/${SUPPRESSIONS_JSON_FILENAME}`;
56
let rawJsonFile: string | undefined;
57
try {
58
- rawJsonFile = fs.readFileSync(suppressionsPath).toString();
+ // Decoding during read hits an optimized fast path in NodeJS.
59
+ rawJsonFile = fs.readFileSync(suppressionsPath, 'utf8');
60
} catch (e) {
61
throwIfAnythingOtherThanNotExistError(e);
62
}
0 commit comments