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