Skip to content

Commit

Permalink
feat: preventing the use of templated strings on non-templates
Browse files Browse the repository at this point in the history
  • Loading branch information
erunion committed Jun 21, 2022
1 parent 664451f commit d6a7978
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/eslint-config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ module.exports = {

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

// The `eslint-config-airbnb-base` that we extend off of doesn't have any rules for catching for
// templated strings that aren't templates.
'quotes': ['error', 'single', { avoidEscape: true }],

'unicorn/catch-error-name': ['error', { ignore: ['^(error|err|e)$'] }],
// "unicorn/consistent-function-scoping": "error", // Maybe?
'unicorn/custom-error-definition': 'error',
Expand Down

0 comments on commit d6a7978

Please sign in to comment.