Skip to content
Open
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
3 changes: 3 additions & 0 deletions packages/eslint-config/__snapshots__/eslint.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,7 @@ exports[`ESLint Config Integrity > library config matches snapshot 1`] = `
"single",
{
"allowTemplateLiterals": true,
"avoidEscape": true,
},
],
"sonarjs/cognitive-complexity": [
Expand Down Expand Up @@ -1082,6 +1083,7 @@ exports[`ESLint Config Integrity > react config matches snapshot 1`] = `
"single",
{
"allowTemplateLiterals": true,
"avoidEscape": true,
},
],
"sonarjs/cognitive-complexity": [
Expand Down Expand Up @@ -1721,6 +1723,7 @@ exports[`ESLint Config Integrity > storybook config matches snapshot 1`] = `
"single",
{
"allowTemplateLiterals": true,
"avoidEscape": true,
},
],
"sonarjs/cognitive-complexity": [
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const baseConfig = defineConfig(
'no-console': 'off',
'no-prototype-builtins': 'off',
'no-unused-vars': 'off',
quotes: ['error', 'single', { allowTemplateLiterals: true }],
quotes: ['error', 'single', { allowTemplateLiterals: true, avoidEscape: true }],

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO backticks work for this purpose already...

'sonarjs/cognitive-complexity': ['error', 17],
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/member-ordering': ['error', { default: { order: 'alphabetically-case-insensitive' } }],
Expand Down