Skip to content

Commit

Permalink
Update to Biome v1.9.4 (#2745)
Browse files Browse the repository at this point in the history
  • Loading branch information
connor-baer authored Oct 29, 2024
1 parent cd403d9 commit 77707a0
Show file tree
Hide file tree
Showing 8 changed files with 100 additions and 81 deletions.
2 changes: 1 addition & 1 deletion .storybook/components/Statuses.module.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.description {
margin-left: var(--cui-spacings-byte)
margin-left: var(--cui-spacings-byte);
}

.description p {
Expand Down
4 changes: 2 additions & 2 deletions .storybook/components/Teaser.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
.base h2 {
padding: 0;
margin-bottom: var(--cui-spacings-giga);
border: none
border: none;
}

.base p {
margin-top: 0;
}

.base a::after {
content: ' →';
content: " →";
}
12 changes: 10 additions & 2 deletions biome.jsonc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/1.8.2/schema.json",
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"extends": ["@sumup-oss/foundry/biome"],
"files": {
"ignore": [
Expand Down Expand Up @@ -30,9 +30,18 @@
"organizeImports": {
"enabled": false
},
"css": {
"formatter": {
"enabled": false
}
},
"linter": {
"rules": {
"recommended": true,
"a11y": {
"noRedundantRoles": "warn",
"useSemanticElements": "warn"
},
"style": {
"noDefaultExport": "error",
"useFilenamingConvention": {
Expand Down Expand Up @@ -60,7 +69,6 @@
"include": ["*.css"],
"css": {
"formatter": {
"enabled": true,
"indentStyle": "space",
"quoteStyle": "double"
},
Expand Down
151 changes: 80 additions & 71 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "circuit-ui-web",
"description": "The web implementation of Circuit UI, SumUp's design system",
"private": true,
"workspaces": ["packages/*", "templates/*", "templates/nextjs/template"],
"workspaces": [ "packages/*", "templates/*", "templates/nextjs/template"],
"repository": {
"type": "git",
"url": "git+https://github.com/sumup-oss/circuit-ui.git"
Expand All @@ -20,8 +20,8 @@
"build": "lerna run build",
"test": "vitest",
"test:ci": "vitest run --coverage",
"lint": "biome check && foundry run eslint . --ext .js,.jsx,.ts,.tsx",
"lint:fix": "biome check --write && foundry run eslint . --ext .js,.jsx,.ts,.tsx --fix",
"lint": "biome check --diagnostic-level=error && foundry run eslint . --ext .js,.jsx,.ts,.tsx",
"lint:fix": "biome check --write --diagnostic-level=error && foundry run eslint . --ext .js,.jsx,.ts,.tsx --fix",
"lint:ci": "biome ci && foundry run eslint . --ext .js,.jsx,.ts,.tsx --quiet ",
"lint:css": "foundry run stylelint '**/*.css'",
"lint:css:fix": "foundry run stylelint '**/*.css' --fix",
Expand All @@ -36,7 +36,7 @@
"release": "changeset publish"
},
"devDependencies": {
"@biomejs/biome": "1.8.3",
"@biomejs/biome": "1.9.4",
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.8",
"@emotion/eslint-plugin": "^11.12.0",
Expand Down
1 change: 1 addition & 0 deletions packages/circuit-ui/components/Field/Field.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export const FieldLabel = ({
htmlFor,
...props
}: FieldLabelProps) => (
// biome-ignore lint/a11y/noLabelWithoutControl: The control is rendered separately
<label
{...props}
htmlFor={htmlFor}
Expand Down
Loading

0 comments on commit 77707a0

Please sign in to comment.