chore(v2): fix code style (revert previous changes)

This commit is contained in:
Alexey Pyltsyn 2020-04-05 17:38:12 +03:00
parent 1480a7eb80
commit 1f00d15c74
143 changed files with 457 additions and 458 deletions

View file

@ -28,7 +28,7 @@ function getLanguage(file, refDir) {
if (match && env.translation.enabled) {
const enabledLanguages = env.translation
.enabledLanguages()
.map(language => language.tag);
.map((language) => language.tag);
if (enabledLanguages.indexOf(match[1]) !== -1) {
return match[1];
}
@ -55,7 +55,7 @@ function minifyCss(cssContent) {
zindex: false,
from: undefined,
})
.then(result => result.css);
.then((result) => result.css);
}
function autoPrefixCss(cssContent) {
@ -63,12 +63,12 @@ function autoPrefixCss(cssContent) {
.process(cssContent, {
from: undefined,
})
.then(result => result.css);
.then((result) => result.css);
}
function replaceAssetsLink(oldContent, location) {
let fencedBlock = false;
const lines = oldContent.split('\n').map(line => {
const lines = oldContent.split('\n').map((line) => {
if (line.trim().startsWith('```')) {
fencedBlock = !fencedBlock;
}