Skip to content

Commit

Permalink
Allowed whitespace anywhere in between obj key/vals
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlui committed Jun 2, 2024
1 parent 997fec4 commit e3595c4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ export default [
js.configs.recommended,
{
rules: {
'indent': 'off', 'no-unexpected-multiline': 'off', // allow whitespace anywhere
'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
'indent': 'off', 'no-unexpected-multiline': 'off', 'key-spacing': 'off', // allow whitespace anywhere
'quotes': ['error', 'single'], // enforce single quotes for string literals
'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 e3595c4

Please sign in to comment.