Skip to content

Commit d6a7978

Browse files
committed
feat: preventing the use of templated strings on non-templates
1 parent 664451f commit d6a7978

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

packages/eslint-config/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ module.exports = {
4444

4545
'prettier/prettier': ['error', prettierConfig],
4646

47+
// The `eslint-config-airbnb-base` that we extend off of doesn't have any rules for catching for
48+
// templated strings that aren't templates.
49+
'quotes': ['error', 'single', { avoidEscape: true }],
50+
4751
'unicorn/catch-error-name': ['error', { ignore: ['^(error|err|e)$'] }],
4852
// "unicorn/consistent-function-scoping": "error", // Maybe?
4953
'unicorn/custom-error-definition': 'error',

0 commit comments

Comments
 (0)