Merge pull request #4194 from balena-io/balena-lint/prettier

patch: configure prettier in the project to use balena-lint config
This commit is contained in:
flowzone-app[bot] 2024-04-22 06:51:31 +00:00 committed by GitHub
commit 59356c5bd1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 28 additions and 22 deletions

6
.prettierrc.js Normal file
View File

@ -0,0 +1,6 @@
const fs = require("fs");
const path = require("path");
module.exports = JSON.parse(
fs.readFileSync(path.join(__dirname, "node_modules", "@balena", "lint", "config", ".prettierrc"), "utf8"),
);

View File

@ -15,36 +15,36 @@
*/ */
@font-face { @font-face {
font-family: "SourceSansPro"; font-family: 'SourceSansPro';
src: url("./fonts/SourceSansPro-Regular.ttf") format("truetype"); src: url('./fonts/SourceSansPro-Regular.ttf') format('truetype');
font-weight: 500; font-weight: 500;
font-style: normal; font-style: normal;
} }
@font-face { @font-face {
font-family: "SourceSansPro"; font-family: 'SourceSansPro';
src: url("./fonts/SourceSansPro-SemiBold.ttf") format("truetype"); src: url('./fonts/SourceSansPro-SemiBold.ttf') format('truetype');
font-weight: 600; font-weight: 600;
font-style: normal; font-style: normal;
} }
html, html,
body { body {
margin: 0; margin: 0;
overflow: hidden; overflow: hidden;
/* Prevent white flash when running application */ /* Prevent white flash when running application */
background-color: #4d5057; background-color: #4d5057;
/* Prevent WebView bounce effect in OS X */ /* Prevent WebView bounce effect in OS X */
height: 100%; height: 100%;
width: 100%; width: 100%;
} }
/* Prevent text selection */ /* Prevent text selection */
body { body {
-webkit-user-select: none; -webkit-user-select: none;
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
} }
/* Prevent blue outline */ /* Prevent blue outline */
@ -52,15 +52,15 @@ a:focus,
input:focus, input:focus,
button:focus, button:focus,
[tabindex]:focus, [tabindex]:focus,
input[type="checkbox"] + div { input[type='checkbox'] + div {
outline: none !important; outline: none !important;
box-shadow: none !important; box-shadow: none !important;
} }
.disabled { .disabled {
opacity: 0.4; opacity: 0.4;
} }
#rendition-tooltip-root > div { #rendition-tooltip-root > div {
font-family: "SourceSansPro", sans-serif; font-family: 'SourceSansPro', sans-serif;
} }