Skip to content

Commit

Permalink
fix: css lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
caohuilin committed Oct 14, 2024
1 parent 23e2311 commit 08441e0
Show file tree
Hide file tree
Showing 25 changed files with 120 additions and 324 deletions.
15 changes: 12 additions & 3 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
"$schema": "https://biomejs.dev/schemas/1.9.3/schema.json",
"vcs": {
"enabled": true,
"defaultBranch": "main",
Expand All @@ -16,6 +16,11 @@
"packages/generator/sandpack-react/src/templates/**"
]
},
"css": {
"formatter": {
"quoteStyle": "single"
}
},
"javascript": {
"formatter": {
"quoteStyle": "single",
Expand All @@ -41,7 +46,10 @@
"noImplicitAnyLet": "off",
"noAssignInExpressions": "off",
"noPrototypeBuiltins": "off",
"noRedeclare": "off"
"noRedeclare": "off",
"noDuplicateFontNames": "off",
"noShorthandPropertyOverrides": "off",
"noDuplicateAtImportRules": "off"
},
"complexity": {
"noForEach": "off",
Expand Down Expand Up @@ -69,7 +77,8 @@
"useExhaustiveDependencies": "off",
"noUnnecessaryContinue": "off",
"noUnreachable": "off",
"noInvalidUseBeforeDeclaration": "off"
"noInvalidUseBeforeDeclaration": "off",
"noUnknownProperty": "off"
}
}
},
Expand Down
1 change: 0 additions & 1 deletion packages/devtools/client/src/utils/pluggable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
} from '@modern-js/devtools-kit/runtime';
import { Hookable } from 'hookable';

// biome-ignore lint/complexity/noStaticOnlyClass: <explanation>
export class PluginGlobals
extends Hookable<GlobalHooks>
implements RuntimeGlobals
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

.card{
.card {
display: flex;
max-width: 32%;
flex: 1 1 32%;
Expand All @@ -8,7 +7,7 @@
margin-bottom: 16px;
height: 135px;
padding: 0 35.4px;
color: #FFFFFF;
color: #ffffff;
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
box-sizing: border-box;
Expand All @@ -17,32 +16,32 @@
transition: all 0.3s ease;
}

.card:hover{
.card:hover {
transition: all 0.3s ease;
background: rgba(78, 202, 255, 0.2);
}
.desc{
.desc {
display: inline-block;
margin-left: 20px;
color: #fff;
}

.icon{
.icon {
width: 48px;
height: 48px;
fill: #fff;
flex: 0 0 48px;
}

@media screen and (min-width: 966px) and (max-width: 1300px) {
.card{
.card {
max-width: 48%;
flex: 1 1 48%;
}
}

@media screen and (max-width: 966px) {
.card{
.card {
width: 100%;
height: 70px;
margin: 0;
Expand All @@ -51,7 +50,7 @@
max-width: none;
flex: none;
}
.icon{
.icon {
width: 20px;
height: 20px;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ main {
border-radius: 12px;
padding: 0.6rem 0.9rem;
font-size: 1.05rem;
font-family: Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono,
font-family:
Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono,
Bitstream Vera Sans Mono, Courier New, monospace;
}

Expand Down
6 changes: 4 additions & 2 deletions packages/server/server/tests/fixtures/pure/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ html,
body {
padding: 0;
margin: 0;
font-family: nunito_for_arco, Helvetica Neue, Helvetica, PingFang SC,
font-family:
nunito_for_arco, Helvetica Neue, Helvetica, PingFang SC,
Hiragino Sans GB, Microsoft YaHei, 微软雅黑, Arial, sans-serif;
}

Expand Down Expand Up @@ -70,7 +71,8 @@ main {
border-radius: 5px;
padding: 0.75rem;
font-size: 1.1rem;
font-family: Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono,
font-family:
Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono,
Bitstream Vera Sans Mono, Courier New, monospace;
}

Expand Down
6 changes: 1 addition & 5 deletions packages/toolkit/runtime-utils/src/browser/nestedRoutes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,7 @@ export const renderNestedRoute = (
} else if (isLoadableComponent(Component) && lazyImport) {
element = <Component />;
} else if (isRoot) {
element = (
<>
<Component {...props} />
</>
);
element = <Component {...props} />;
} else if (lazyImport) {
element = (
<Suspense fallback={null}>
Expand Down
Loading

0 comments on commit 08441e0

Please sign in to comment.