Skip to content

Commit

Permalink
fix(prettier-config): set multiline arrays wrap threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Apr 11, 2024
1 parent 79c676e commit ed8e00c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions projects/prettier-config/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
const multilineArraysWrapThreshold = 3;
const attributeOptions = {
attributeGroups: [
'$ANGULAR_STRUCTURAL_DIRECTIVE',
Expand Down Expand Up @@ -38,7 +39,7 @@ module.exports = {
'*.json',
],
options: {
multilineArraysWrapThreshold: 1,
multilineArraysWrapThreshold,
parser: 'json',
},
},
Expand Down Expand Up @@ -104,7 +105,7 @@ module.exports = {
...attributeOptions,
parser: 'typescript',
printWidth: 90,
multilineArraysWrapThreshold: 1,
multilineArraysWrapThreshold,
},
},
{
Expand Down

0 comments on commit ed8e00c

Please sign in to comment.