浏览代码

chore: fix linting errors

Aaron Bassett 6 月之前
父节点
当前提交
a63891fcef
共有 2 个文件被更改,包括 110 次插入110 次删除
  1. 47 47
      apps/developer-hub/next.config.js
  2. 63 63
      apps/developer-hub/package.json

+ 47 - 47
apps/developer-hub/next.config.js

@@ -2,56 +2,56 @@ import createBundleAnalyzer from "@next/bundle-analyzer";
 import { createMDX } from "fumadocs-mdx/next";
 
 const withAnalyzer = createBundleAnalyzer({
-	enabled: process.env.ANALYZE === "true",
+  enabled: process.env.ANALYZE === "true",
 });
 
 const config = {
-	reactStrictMode: true,
-	pageExtensions: ["ts", "tsx", "mdx"],
-
-	logging: {
-		fetches: {
-			fullUrl: true,
-		},
-	},
-
-	webpack(config) {
-		config.module.rules.push({
-			test: /\.svg$/i,
-			use: ["@svgr/webpack"],
-		});
-
-		return config;
-	},
-
-	headers: async () => [
-		{
-			source: "/:path*",
-			headers: [
-				{
-					key: "X-XSS-Protection",
-					value: "1; mode=block",
-				},
-				{
-					key: "Referrer-Policy",
-					value: "strict-origin-when-cross-origin",
-				},
-				{
-					key: "Strict-Transport-Security",
-					value: "max-age=2592000",
-				},
-				{
-					key: "X-Content-Type-Options",
-					value: "nosniff",
-				},
-				{
-					key: "Permissions-Policy",
-					value:
-						"vibrate=(), geolocation=(), midi=(), notifications=(), push=(), sync-xhr=(), microphone=(), camera=(), magnetometer=(), gyroscope=(), speaker=(), vibrate=(), fullscreen=self",
-				},
-			],
-		},
-	],
+  reactStrictMode: true,
+  pageExtensions: ["ts", "tsx", "mdx"],
+
+  logging: {
+    fetches: {
+      fullUrl: true,
+    },
+  },
+
+  webpack(config) {
+    config.module.rules.push({
+      test: /\.svg$/i,
+      use: ["@svgr/webpack"],
+    });
+
+    return config;
+  },
+
+  headers: async () => [
+    {
+      source: "/:path*",
+      headers: [
+        {
+          key: "X-XSS-Protection",
+          value: "1; mode=block",
+        },
+        {
+          key: "Referrer-Policy",
+          value: "strict-origin-when-cross-origin",
+        },
+        {
+          key: "Strict-Transport-Security",
+          value: "max-age=2592000",
+        },
+        {
+          key: "X-Content-Type-Options",
+          value: "nosniff",
+        },
+        {
+          key: "Permissions-Policy",
+          value:
+            "vibrate=(), geolocation=(), midi=(), notifications=(), push=(), sync-xhr=(), microphone=(), camera=(), magnetometer=(), gyroscope=(), speaker=(), vibrate=(), fullscreen=self",
+        },
+      ],
+    },
+  ],
 };
 
 const withMDX = createMDX();

+ 63 - 63
apps/developer-hub/package.json

@@ -1,65 +1,65 @@
 {
-	"name": "@pythnetwork/developer-hub",
-	"version": "0.0.0",
-	"private": true,
-	"type": "module",
-	"engines": {
-		"node": "22"
-	},
-	"scripts": {
-		"build:vercel": "next build",
-		"build:analyze": "ANALYZE=true next build",
-		"fix:format": "prettier --write .",
-		"fix:lint:eslint": "eslint --fix .",
-		"fix:lint:stylelint": "stylelint --fix 'src/**/*.scss'",
-		"pull:env": "[ $CI ] || VERCEL_ORG_ID=team_BKQrg3JJFLxZyTqpuYtIY0rj VERCEL_PROJECT_ID=prj_TBkf9EyQjQF37gs4Vk0sQKJj97kE vercel env pull",
-		"start:dev": "next dev --port 3627",
-		"start:prod": "next start --port 3627",
-		"test:format": "prettier --check .",
-		"test:lint:eslint": "eslint . --max-warnings 0",
-		"test:lint:stylelint": "stylelint 'src/**/*.scss' --max-warnings 0",
-		"test:types": "tsc"
-	},
-	"dependencies": {
-		"@phosphor-icons/react": "catalog:",
-		"@pythnetwork/component-library": "workspace:*",
-		"@react-hookz/web": "catalog:",
-		"clsx": "catalog:",
-		"fumadocs-core": "catalog:",
-		"fumadocs-mdx": "catalog:",
-		"fumadocs-ui": "catalog:",
-		"next": "catalog:",
-		"next-themes": "catalog:",
-		"nuqs": "catalog:",
-		"react": "catalog:",
-		"react-aria": "catalog:",
-		"react-dom": "catalog:",
-		"zod": "catalog:",
-		"zod-validation-error": "catalog:"
-	},
-	"devDependencies": {
-		"@cprussin/eslint-config": "catalog:",
-		"@cprussin/jest-config": "catalog:",
-		"@cprussin/prettier-config": "catalog:",
-		"@cprussin/tsconfig": "catalog:",
-		"@next/bundle-analyzer": "catalog:",
-		"@svgr/webpack": "catalog:",
-		"@tailwindcss/postcss": "catalog:",
-		"@types/jest": "catalog:",
-		"@types/mdx": "catalog:",
-		"@types/node": "catalog:",
-		"@types/react": "catalog:",
-		"@types/react-dom": "catalog:",
-		"autoprefixer": "catalog:",
-		"eslint": "catalog:",
-		"jest": "catalog:",
-		"postcss": "catalog:",
-		"prettier": "catalog:",
-		"sass": "catalog:",
-		"stylelint": "catalog:",
-		"stylelint-config-standard-scss": "catalog:",
-		"tailwindcss": "^4.1.6",
-		"typescript": "catalog:",
-		"vercel": "catalog:"
-	}
+  "name": "@pythnetwork/developer-hub",
+  "version": "0.0.0",
+  "private": true,
+  "type": "module",
+  "engines": {
+    "node": "22"
+  },
+  "scripts": {
+    "build:vercel": "next build",
+    "build:analyze": "ANALYZE=true next build",
+    "fix:format": "prettier --write .",
+    "fix:lint:eslint": "eslint --fix .",
+    "fix:lint:stylelint": "stylelint --fix 'src/**/*.scss'",
+    "pull:env": "[ $CI ] || VERCEL_ORG_ID=team_BKQrg3JJFLxZyTqpuYtIY0rj VERCEL_PROJECT_ID=prj_TBkf9EyQjQF37gs4Vk0sQKJj97kE vercel env pull",
+    "start:dev": "next dev --port 3627",
+    "start:prod": "next start --port 3627",
+    "test:format": "prettier --check .",
+    "test:lint:eslint": "eslint . --max-warnings 0",
+    "test:lint:stylelint": "stylelint 'src/**/*.scss' --max-warnings 0",
+    "test:types": "tsc"
+  },
+  "dependencies": {
+    "@phosphor-icons/react": "catalog:",
+    "@pythnetwork/component-library": "workspace:*",
+    "@react-hookz/web": "catalog:",
+    "clsx": "catalog:",
+    "fumadocs-core": "catalog:",
+    "fumadocs-mdx": "catalog:",
+    "fumadocs-ui": "catalog:",
+    "next": "catalog:",
+    "next-themes": "catalog:",
+    "nuqs": "catalog:",
+    "react": "catalog:",
+    "react-aria": "catalog:",
+    "react-dom": "catalog:",
+    "zod": "catalog:",
+    "zod-validation-error": "catalog:"
+  },
+  "devDependencies": {
+    "@cprussin/eslint-config": "catalog:",
+    "@cprussin/jest-config": "catalog:",
+    "@cprussin/prettier-config": "catalog:",
+    "@cprussin/tsconfig": "catalog:",
+    "@next/bundle-analyzer": "catalog:",
+    "@svgr/webpack": "catalog:",
+    "@tailwindcss/postcss": "catalog:",
+    "@types/jest": "catalog:",
+    "@types/mdx": "catalog:",
+    "@types/node": "catalog:",
+    "@types/react": "catalog:",
+    "@types/react-dom": "catalog:",
+    "autoprefixer": "catalog:",
+    "eslint": "catalog:",
+    "jest": "catalog:",
+    "postcss": "catalog:",
+    "prettier": "catalog:",
+    "sass": "catalog:",
+    "stylelint": "catalog:",
+    "stylelint-config-standard-scss": "catalog:",
+    "tailwindcss": "^4.1.6",
+    "typescript": "catalog:",
+    "vercel": "catalog:"
+  }
 }