Skip to content

Commit

Permalink
Add ESLint rules to auto fix concatenated strings
Browse files Browse the repository at this point in the history
  • Loading branch information
colinrotherham committed Jul 26, 2023
1 parent 6c17a95 commit fc31d03
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ module.exports = {
alphabetize: { order: 'asc' },
'newlines-between': 'always'
}
]
],

// Automatically use template strings
'no-useless-concat': 'error',
'prefer-template': 'error'
}
},
{
Expand Down

0 comments on commit fc31d03

Please sign in to comment.