Skip to content

Commit

Permalink
Format all frontend code with biome (#3935)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoacierno authored Aug 4, 2024
1 parent 5bc7891 commit 71c2bb6
Show file tree
Hide file tree
Showing 95 changed files with 925 additions and 957 deletions.
6 changes: 4 additions & 2 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@
"rules": {
"recommended": true,
"correctness": {
"useExhaustiveDependencies": "off"
"useExhaustiveDependencies": "off",
"useJsxKeyInIterable": "off"
},
"style": {
"noNonNullAssertion": "off"
"noNonNullAssertion": "off",
"useNodejsImportProtocol": "off"
},
"suspicious": {
"noExplicitAny": "off",
Expand Down
5 changes: 0 additions & 5 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@
},
"dependencies": {
"@apollo/client": "^3.7.3",
"@babel/plugin-transform-react-jsx": "^7.12.1",
"@babel/plugin-transform-react-pure-annotations": "^7.12.1",
"@emotion/babel-plugin-jsx-pragmatic": "^0.1.5",
"@emotion/core": "^10.0.35",
"@emotion/react": ">=11.0.0 <12.0.0",
"@graphql-codegen/add": "^5.0.2",
"@graphql-codegen/cli": "^2.11.3",
"@graphql-codegen/fragment-matcher": "^3.3.0",
Expand Down
162 changes: 2 additions & 160 deletions frontend/pnpm-lock.yaml

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

4 changes: 2 additions & 2 deletions frontend/src/apollo/client.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ApolloClient, Operation } from "@apollo/client/core";
import type { ApolloClient, Operation } from "@apollo/client/core";
import merge from "deepmerge";
import { DefinitionNode } from "graphql";
import type { DefinitionNode } from "graphql";

import isEqual from "../helpers/lodash-is-equal";
import { createClient } from "./create-client";
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/alert/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import clsx from "clsx";
import React from "react";
import type React from "react";

type Props = {
variant: "alert" | "success" | "info";
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/components/article/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Heading, Spacer } from "@python-italia/pycon-styleguide";
import React, { Fragment } from "react";
import type React from "react";
import { Fragment } from "react";

type ArticleProps = {
title?: string;
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/blocks-renderer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from "react";

import { MapBlock } from "~/components/blocks/map";
import { TextSection } from "~/components/blocks/text-section";
import { Block } from "~/types";
import type { Block } from "~/types";

import { CheckoutSection } from "../blocks/checkout-section";
import { HomeIntroSection } from "../blocks/home-intro-section";
Expand Down
Loading

0 comments on commit 71c2bb6

Please sign in to comment.