feat: separate prettier from eslint

This commit is contained in:
Rainer Killinger
2023-01-11 13:25:18 +01:00
committed by Thea Schöbl
parent 939fb6ef0f
commit a88d000ccd
381 changed files with 17952 additions and 38411 deletions

View File

@@ -77,9 +77,7 @@ async function minifyIconFont() {
glyphs.push(config.codePoints[icon]);
} else {
console.log();
console.error(
`${icon} code point could not be determined. Add it to config.codePoints.`,
);
console.error(`${icon} code point could not be determined. Add it to config.codePoints.`);
process.exit(-1);
}
}
@@ -91,15 +89,7 @@ async function minifyIconFont() {
const pythonPath = `"${await run('npm config get python')}"`;
console.log(`Using python from npm config ${pythonPath}`);
console.log(await run(`${pythonPath} --version`));
console.log(
await run([
pythonPath,
'-m',
'pip',
'install',
'fonttools[ufo,lxml,unicode,woff]',
]),
);
console.log(await run([pythonPath, '-m', 'pip', 'install', 'fonttools[ufo,lxml,unicode,woff]']));
console.log(
await run([
@@ -119,10 +109,9 @@ async function minifyIconFont() {
const before = statSync(config.inputPath).size;
console.log(
`${toByteUnit(before)} > ${toByteUnit(result)} (${(
((before - result) / before) *
100
).toFixed(2)}% Reduction)`,
`${toByteUnit(before)} > ${toByteUnit(result)} (${(((before - result) / before) * 100).toFixed(
2,
)}% Reduction)`,
);
}