Skip to content

Commit

Permalink
Split JS rules.quotes into 2 lines to not exceed 120 chars
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlui committed Jan 28, 2025
1 parent dffbe82 commit a8f0226
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ export default [
'ignoreComments': true, 'ignoreStrings': true, // ...trailing/own-line comments, quoted strings...
'ignoreTemplateLiterals': true, 'ignoreRegExpLiterals': true }], // ...or template/regex literals
'js-styles/no-extra-semi': 'error', // disallow unnecessary semicolons
'quotes': ['error', 'single', { 'allowTemplateLiterals': true }], // enforce single quotes except backticks to avoid escaping quotes
'quotes': ['error', 'single', // enforce single quotes...
{ 'allowTemplateLiterals': true }], // ...except backticks to avoid escaping quotes
'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)
'no-constant-condition': 'off', // allow constant conditions
Expand Down

0 comments on commit a8f0226

Please sign in to comment.