Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
EdSDR committed Jun 25, 2024
1 parent 839e94a commit cbe571b
Show file tree
Hide file tree
Showing 20 changed files with 211 additions and 30 deletions.
File renamed without changes.
26 changes: 14 additions & 12 deletions apps/commune-governance/package.json
Original file line number Diff line number Diff line change
@@ -1,40 +1,42 @@
{
"name": "commune-governance",
"version": "1.0.0",
"type": "module",
"private": true,
"scripts": {
"dev": "next dev --port 3001",
"build": "next build",
"start": "next start",
"lint": "next lint",
"lint": "eslint",
"type-check": "tsc --noEmit"
},
"dependencies": {
"@commune-ts/providers": "workspace:*",
"@commune-ts/ui": "workspace:*",
"@heroicons/react": "^2.1.3",
"@t3-oss/env-nextjs": "^0.10.1",
"@uiw/react-markdown-preview": "^5.1.1",
"hast-util-to-string": "^3.0.0",
"next": "^14.2.3",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"rustie": "^0.2.0",
"tsafe": "^1.6.6",
"zod": "^3.23.8",
"@t3-oss/env-nextjs": "^0.10.1",
"@commune-ts/ui": "workspace:*",
"@commune-ts/providers": "workspace:*",
"@heroicons/react": "^2.1.3",
"@uiw/react-markdown-preview": "^5.1.1",
"hast-util-to-string": "^3.0.0"
"zod": "^3.23.8"
},
"devDependencies": {
"@commune-ts/eslint-config": "workspace:*",
"@commune-ts/tailwind-config": "workspace:*",
"@commune-ts/tsconfig": "workspace:*",
"@next/eslint-plugin-next": "^14.2.3",
"@types/node": "^20.11.24",
"@types/react": "^18.2.61",
"@types/react-dom": "^18.2.19",
"autoprefixer": "^10.4.18",
"@commune-ts/eslint-config": "workspace:*",
"eslint-config-next": "14.2.4",
"jiti": "^1.21.0",
"postcss": "^8.4.38",
"@commune-ts/tailwind-config": "workspace:*",
"tailwindcss": "^3.4.3",
"jiti": "^1.21.0",
"@commune-ts/tsconfig": "workspace:*",
"typescript": "^5.4.5"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,5 @@ export const DaoStatusLabel = (props: StatusLabelProps): JSX.Element => {
</Label>
),
};
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
return votingStatus[result ?? "Pending"];
};
1 change: 0 additions & 1 deletion apps/commune-governance/src/app/components/vote-label.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,5 @@ export function VoteLabel(props: VoteLabelProps): JSX.Element {
),
};

// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
return votingStatus[vote || "UNVOTED"];
}
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ export function ExpandedView(props: CustomContent): JSX.Element {
isProposalsLoading,
} = useCommune();

// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
function handleProposalsContent() {
const proposal = proposalsWithMeta?.find((p) => p.id === paramId);
if (!proposal) return null;
Expand All @@ -135,7 +134,6 @@ export function ExpandedView(props: CustomContent): JSX.Element {
return CustomContent;
}

// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
function handleDaosContent() {
const dao = daosWithMeta?.find((d) => d.id === paramId);
if (!dao) return null;
Expand All @@ -157,7 +155,6 @@ export function ExpandedView(props: CustomContent): JSX.Element {
return daoContent;
}

// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
function handleContent() {
if (contentType === "dao") {
return handleDaosContent();
Expand Down Expand Up @@ -232,12 +229,10 @@ export function ExpandedView(props: CustomContent): JSX.Element {

<div className="border-b border-gray-500 p-6">
<div className="flex items-center gap-3">
{/* eslint-disable-next-line @typescript-eslint/no-non-null-assertion */}
<VoteLabel vote={content.voted!} />
{contentType === "proposal" && (
<span className="border border-white px-4 py-1.5 text-center text-sm font-medium text-white">
{(content.netuid !== "GLOBAL" && (
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
<span> Subnet {content.netuid} </span>
)) || <span> Global </span>}
</span>
Expand Down
File renamed without changes.
3 changes: 2 additions & 1 deletion apps/commune-page/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
"name": "commune-page",
"version": "1.0.0",
"private": false,
"type": "module",
"scripts": {
"dev": "next dev --port 3000",
"build": "next build",
"start": "next start",
"lint": "next lint",
"lint": "eslint",
"type-check": "tsc --noEmit"
},
"dependencies": {
Expand Down
File renamed without changes.
3 changes: 2 additions & 1 deletion apps/commune-validator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
"name": "commune-validator",
"version": "1.0.0",
"private": true,
"type": "module",
"scripts": {
"dev": "next dev --port 3002",
"build": "next build",
"start": "next start",
"lint": "next lint",
"lint": "eslint",
"type-check": "tsc --noEmit"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/api/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import baseConfig from "@commune-ts/eslint-config/base";
export default [
{
ignores: ["dist/**"],
strictNullChecks,
strictNullChecks: true,
},
...baseConfig,
];
2 changes: 1 addition & 1 deletion packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@
"typescript": "^5.4.5"
},
"prettier": "@commune-ts/prettier-config"
}
}
2 changes: 1 addition & 1 deletion packages/db/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import baseConfig, { restrictEnvAccess } from "@commune-ts/eslint-config/base";
export default [
{
ignores: ["dist/**"],
strictNullChecks,
strictNullChecks: true,
},
...baseConfig,
...restrictEnvAccess,
Expand Down
2 changes: 1 addition & 1 deletion packages/db/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@
"typescript": "^5.4.5"
},
"prettier": "@commune-ts/prettier-config"
}
}
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/subspace/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import baseConfig from "@commune-ts/eslint-config/base";
export default [
{
ignores: ["dist/**"],
strictNullChecks,
strictNullChecks: true,
},
...baseConfig,
];
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@
"react": "^18.3.1"
},
"prettier": "@commune-ts/prettier-config"
}
}
Loading

0 comments on commit cbe571b

Please sign in to comment.