Skip to content

Commit

Permalink
Changes 'array-bracket-newline' to get rid of weird line breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
patric-eberle committed Sep 6, 2022
1 parent 4aa52d2 commit fc123b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 14.1.3
* (Change) Updates 'array-bracket-newline' to prevent strange line breaks during `--fix` on arrays.

## 14.1.2
* (Change) Increases 'minItems' on array-element-newline.ArrayPattern to allow `[key, value]` combinations on same line.

Expand Down
5 changes: 1 addition & 4 deletions fix.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ module.exports = {
minItems: 3, // 2 was not used because of [key, value] cases
}
}],
'array-bracket-newline': ['error', {
multiline: true,
minItems: 3, // 2 was not used because of [key, value] cases
}],
'array-bracket-newline': ['error', 'consistent'],
'array-bracket-spacing': ['error', 'never'],
}
};

0 comments on commit fc123b6

Please sign in to comment.