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 1c422ef commit 58bbdbb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 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
'indent': 'off', 'no-unexpected-multiline': 'off', 'key-spacing': '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
'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 58bbdbb

Please sign in to comment.