Skip to content

Commit 71c2bb6

Browse files
authored
Format all frontend code with biome (#3935)
1 parent 5bc7891 commit 71c2bb6

95 files changed

Lines changed: 925 additions & 957 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

biome.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@
88
"rules": {
99
"recommended": true,
1010
"correctness": {
11-
"useExhaustiveDependencies": "off"
11+
"useExhaustiveDependencies": "off",
12+
"useJsxKeyInIterable": "off"
1213
},
1314
"style": {
14-
"noNonNullAssertion": "off"
15+
"noNonNullAssertion": "off",
16+
"useNodejsImportProtocol": "off"
1517
},
1618
"suspicious": {
1719
"noExplicitAny": "off",

frontend/package.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@
1515
},
1616
"dependencies": {
1717
"@apollo/client": "^3.7.3",
18-
"@babel/plugin-transform-react-jsx": "^7.12.1",
19-
"@babel/plugin-transform-react-pure-annotations": "^7.12.1",
20-
"@emotion/babel-plugin-jsx-pragmatic": "^0.1.5",
21-
"@emotion/core": "^10.0.35",
22-
"@emotion/react": ">=11.0.0 <12.0.0",
2318
"@graphql-codegen/add": "^5.0.2",
2419
"@graphql-codegen/cli": "^2.11.3",
2520
"@graphql-codegen/fragment-matcher": "^3.3.0",

frontend/pnpm-lock.yaml

Lines changed: 2 additions & 160 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/src/apollo/client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { ApolloClient, Operation } from "@apollo/client/core";
1+
import type { ApolloClient, Operation } from "@apollo/client/core";
22
import merge from "deepmerge";
3-
import { DefinitionNode } from "graphql";
3+
import type { DefinitionNode } from "graphql";
44

55
import isEqual from "../helpers/lodash-is-equal";
66
import { createClient } from "./create-client";

frontend/src/components/alert/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import clsx from "clsx";
2-
import React from "react";
2+
import type React from "react";
33

44
type Props = {
55
variant: "alert" | "success" | "info";

frontend/src/components/article/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { Heading, Spacer } from "@python-italia/pycon-styleguide";
2-
import React, { Fragment } from "react";
2+
import type React from "react";
3+
import { Fragment } from "react";
34

45
type ArticleProps = {
56
title?: string;

frontend/src/components/blocks-renderer/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from "react";
22

33
import { MapBlock } from "~/components/blocks/map";
44
import { TextSection } from "~/components/blocks/text-section";
5-
import { Block } from "~/types";
5+
import type { Block } from "~/types";
66

77
import { CheckoutSection } from "../blocks/checkout-section";
88
import { HomeIntroSection } from "../blocks/home-intro-section";

0 commit comments

Comments
 (0)