mirror of
https://github.com/danog/sass-site.git
synced 2024-11-30 04:29:17 +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) =>
|
||||
source.split('\n').map((line) => line.length),
|
||||
) : [0];
|
||||
const cssSourceLengths = cssExamples.length
|
||||
? cssExamples.flatMap((source) =>
|
||||
source.split('\n').map((line) => line.length),
|
||||
)
|
||||
: [0];
|
||||
|
||||
const maxSourceWidth = Math.max(...exampleSourceLengths);
|
||||
const maxCSSWidth = Math.max(...cssSourceLengths);
|
||||
|
Loading…
Reference in New Issue
Block a user