mirror of
https://github.com/danog/sass-site.git
synced 2024-11-26 20:14:53 +01:00
Lint
This commit is contained in:
parent
599abec691
commit
1ebc87908f
@ -263,9 +263,11 @@ const getCanSplit = (
|
||||
const exampleSourceLengths = [...scssExamples, ...sassExamples].flatMap(
|
||||
(source) => source.split('\n').map((line) => line.length),
|
||||
);
|
||||
const cssSourceLengths = cssExamples.length ? cssExamples.flatMap((source) =>
|
||||
const cssSourceLengths = cssExamples.length
|
||||
? cssExamples.flatMap((source) =>
|
||||
source.split('\n').map((line) => line.length),
|
||||
) : [0];
|
||||
)
|
||||
: [0];
|
||||
|
||||
const maxSourceWidth = Math.max(...exampleSourceLengths);
|
||||
const maxCSSWidth = Math.max(...cssSourceLengths);
|
||||
|
Loading…
Reference in New Issue
Block a user