Skip to content

Commit fef01f2

Browse files
committed
fix prettier
1 parent 9bb9848 commit fef01f2

3 files changed

Lines changed: 10 additions & 13 deletions

File tree

api/eslint.config.js

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,10 @@ import js from "@eslint/js";
22
import reactHooks from "eslint-plugin-react-hooks";
33
import tseslint from "typescript-eslint";
44

5-
export default tseslint.config(
6-
{ ignores: ["node_modules"] },
7-
js.configs.recommended,
8-
...tseslint.configs.recommended,
9-
{
10-
plugins: { "react-hooks": reactHooks },
11-
rules: {
12-
...reactHooks.configs.recommended.rules,
13-
"quotes": ["error", "double"],
14-
},
5+
export default tseslint.config({ ignores: ["node_modules"] }, js.configs.recommended, ...tseslint.configs.recommended, {
6+
plugins: { "react-hooks": reactHooks },
7+
rules: {
8+
...reactHooks.configs.recommended.rules,
9+
quotes: ["error", "double"],
1510
},
16-
);
11+
});

api/src/components/Docs/ReferencesLink.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export const ReferencesLink: React.FC<{ name: string }> = ({ name }) => {
3333
return (
3434
<StyledReferencesLink
3535
to={`/vscripts${search}`}
36-
className={() => isActive ? "active" : ""}
36+
className={() => (isActive ? "active" : "")}
3737
title="Find all usages of this API"
3838
>
3939
{referencesCount} reference{referencesCount === 1 ? "" : "s"}

api/src/components/layout/NavBar.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ const ToggleThumb = styled.span<{ $active: boolean }>`
100100
border-radius: 50%;
101101
background-color: ${(props) => (props.$active ? "#606060" : "#ffffff")};
102102
border: 2px solid ${(props) => (props.$active ? "#404040" : "#e0e0e0")};
103-
transition: left 0.2s, background-color 0.2s;
103+
transition:
104+
left 0.2s,
105+
background-color 0.2s;
104106
box-sizing: border-box;
105107
`;
106108

0 commit comments

Comments
 (0)