Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Sep 18, 2024
1 parent d05795c commit 34a757c
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 18 deletions.
5 changes: 5 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@
"lineWidth": 80
}
},
"css": {
"formatter": {
"quoteStyle": "single"
}
},
"overrides": [
{
"include": ["*.astro"],
Expand Down
18 changes: 10 additions & 8 deletions packages/docs/src/fonts/font-face.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
font-style: italic;
font-weight: 200;
font-display: swap;
src: url('./6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZYokSds18S0xR41.woff2')
format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
src: url('./6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZYokSds18S0xR41.woff2') format('woff2');
unicode-range:
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
U+FEFF, U+FFFD;
}
Expand All @@ -20,9 +20,9 @@
font-style: italic;
font-weight: 300;
font-display: swap;
src: url('./6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZMkids18S0xR41.woff2')
format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
src: url('./6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZMkids18S0xR41.woff2') format('woff2');
unicode-range:
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
U+FEFF, U+FFFD;
}
Expand All @@ -32,7 +32,8 @@
font-weight: 300;
font-display: swap;
src: url('./6xKydSBYKcSV-LCoeQqfX1RYOo3ik4zwlxdu3cOWxw.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
unicode-range:
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
U+FEFF, U+FFFD;
}
Expand All @@ -42,7 +43,8 @@
font-weight: 400;
font-display: swap;
src: url('./6xK3dSBYKcSV-LCoeQqfX1RYOo3qOK7lujVj9w.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
unicode-range:
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
U+FEFF, U+FFFD;
}
Expand Down
4 changes: 1 addition & 3 deletions packages/docs/src/styles/links.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@
border-bottom: none;
opacity: 0;
color: var(--sl-color-text);
transition:
color 0.3s,
opacity 0.3s;
transition: color 0.3s, opacity 0.3s;
}

&:hover a {
Expand Down
3 changes: 0 additions & 3 deletions packages/docs/src/styles/sponsors.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@
flex-direction: row;
align-items: unset;
}

.sponsors-body > .column:first-of-type {
}
}

.sponsors {
Expand Down
2 changes: 1 addition & 1 deletion packages/knip/src/ConfigurationChief.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ export class ConfigurationChief {
const workspaces = this.manifest?.workspaces
? Array.isArray(this.manifest.workspaces)
? this.manifest.workspaces
: this.manifest.workspaces.packages ?? []
: (this.manifest.workspaces.packages ?? [])
: [];
return workspaces.map(pattern => pattern.replace(/(?<=!?)\.\//, ''));
}
Expand Down
4 changes: 2 additions & 2 deletions packages/knip/src/IssueFixer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ export class IssueFixer {
const filePaths = new Set([...this.unusedTypeNodes.keys(), ...this.unusedExportNodes.keys()]);
for (const filePath of filePaths) {
const exportPositions: Fixes = [
...(this.isFixUnusedTypes ? this.unusedTypeNodes.get(filePath) ?? [] : []),
...(this.isFixUnusedExports ? this.unusedExportNodes.get(filePath) ?? [] : []),
...(this.isFixUnusedTypes ? (this.unusedTypeNodes.get(filePath) ?? []) : []),
...(this.isFixUnusedExports ? (this.unusedExportNodes.get(filePath) ?? []) : []),
].sort((a, b) => b[0] - a[0]);

if (exportPositions.length > 0) {
Expand Down
2 changes: 1 addition & 1 deletion packages/knip/src/util/to-source-path.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const matchExt = /(\.d)?\.(m|c)?(j|t)s$/;

export const augmentWorkspace = (workspace: Workspace, dir: string, compilerOptions: CompilerOptions) => {
const srcDir = join(dir, 'src');
workspace.srcDir = compilerOptions.rootDir ?? isDirectory(srcDir) ? srcDir : dir;
workspace.srcDir = (compilerOptions.rootDir ?? isDirectory(srcDir)) ? srcDir : dir;
workspace.outDir = compilerOptions.outDir || workspace.srcDir;
};

Expand Down

0 comments on commit 34a757c

Please sign in to comment.