Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable unicorn/text-encoding-identifier-case rule #12526

Merged
merged 1 commit into from Mar 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintrc.js
Expand Up @@ -154,6 +154,7 @@ module.exports = {
"unicorn/prefer-switch": "error",
"unicorn/prefer-type-error": "error",
"unicorn/template-indent": "error",
"unicorn/text-encoding-identifier-case": "error",
},
overrides: [
{
Expand Down
2 changes: 1 addition & 1 deletion scripts/generate-changelog.mjs
Expand Up @@ -100,7 +100,7 @@ async function createChangelog(title, user, prNumber, category) {
__dirname,
"../changelog_unreleased/TEMPLATE.md"
);
const changelogTemplate = await fs.readFile(changelogTemplatePath, "utf-8");
const changelogTemplate = await fs.readFile(changelogTemplatePath, "utf8");

const titlePart = "Title";
const prNumberPart = "#XXXX";
Expand Down
2 changes: 1 addition & 1 deletion scripts/release/steps/update-changelog.js
Expand Up @@ -14,7 +14,7 @@ import {
const outdentString = outdent.string;

function writeChangelog(params) {
const changelog = fs.readFileSync("CHANGELOG.md", "utf-8");
const changelog = fs.readFileSync("CHANGELOG.md", "utf8");
const newEntry = `# ${params.version}\n\n` + getChangelogContent(params);
fs.writeFileSync("CHANGELOG.md", newEntry + "\n\n" + changelog);
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/release/utils.js
Expand Up @@ -83,7 +83,7 @@ function writeJson(filename, content) {
}

function processFile(filename, fn) {
const content = fs.readFileSync(filename, "utf-8");
const content = fs.readFileSync(filename, "utf8");
fs.writeFileSync(filename, fn(content));
}

Expand Down
2 changes: 1 addition & 1 deletion scripts/vendors/bundle-vendors.mjs
Expand Up @@ -43,7 +43,7 @@ async function generateDts(vendor) {
]
.filter((line) => line !== null)
.join("\n"),
"utf-8"
"utf8"
);
}

Expand Down