Skip to content

fix: deprecation warning #81

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

Merged
merged 1 commit into from
Jul 23, 2025
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion configs/stylistic.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const recommendedConfig = {
"@stylistic/quotes": [
"error",
"double",
{ avoidEscape: true, allowTemplateLiterals: false },
{ avoidEscape: true, allowTemplateLiterals: "never" },
],
"@stylistic/spaced-comment": [
"error",
Expand Down
36 changes: 27 additions & 9 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 @@ -45,7 +45,7 @@
"devDependencies": {
"@eslint/js": "^9.29.0",
"@eslint/markdown": "^6.6.0",
"@stylistic/eslint-plugin": "^5.0.0",
"@stylistic/eslint-plugin": "^5.2.2",
"eslint": "^9.29.0",
"eslint-find-rules": "^5.0.0",
"eslint-plugin-import": "^2.32.0",
Expand Down
22 changes: 22 additions & 0 deletions validation/code.js
Original file line number Diff line number Diff line change
Expand Up @@ -947,3 +947,25 @@ export const aaa = 1;
sumFn(1, 2);

export const bbb = 1;

const backtick1 = `back
tick`;
// eslint-disable-next-line @stylistic/quotes
const backtick2 = `back\ntick`;
const backtick3 = tag`backtick`;
// eslint-disable-next-line @stylistic/quotes
const backtick4 = `single`;
// eslint-disable-next-line @stylistic/quotes
const backtick5 = `\``;
// eslint-disable-next-line @stylistic/quotes
const backtick6 = `"`;

/**
* @param {...string[]} args args
* @returns {string} concated strings
*/
function concat(...args) {
return args.join("\n");
}

concat(backtick1, backtick2, backtick3, backtick4, backtick5, backtick6);
Loading