Skip to content

Commit

Permalink
Excepted single quote enforcement when using backticks to avoid escap…
Browse files Browse the repository at this point in the history
…ing quotes
  • Loading branch information
adamlui committed Apr 29, 2024
1 parent 587221f commit 7429b0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default [
{
rules: {
'indent': 'off', 'no-unexpected-multiline': 'off', // allow whitespace anywhere
'quotes': ['error', 'single'], // enforce single quotes for string literals
'quotes': ['error', 'single', { 'allowTemplateLiterals': true }], // enforce single quotes except backticks to avoid escaping quotes
'key-spacing': ['error', { 'beforeColon': false, 'afterColon': true }], // enforce spacing in object properties
'comma-dangle': ['error', 'never'], // enforce no trailing commas in arrays or objects
'no-async-promise-executor': 'off', // allow promise executor functions to be async (to accomodate await lines)
Expand Down

0 comments on commit 7429b0e

Please sign in to comment.