Skip to content

Commit a63891f

Browse files
committed
chore: fix linting errors
1 parent a6e9c64 commit a63891f

File tree

2 files changed

+110
-110
lines changed

2 files changed

+110
-110
lines changed

apps/developer-hub/next.config.js

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -2,56 +2,56 @@ import createBundleAnalyzer from "@next/bundle-analyzer";
22
import { createMDX } from "fumadocs-mdx/next";
33

44
const withAnalyzer = createBundleAnalyzer({
5-
enabled: process.env.ANALYZE === "true",
5+
enabled: process.env.ANALYZE === "true",
66
});
77

88
const config = {
9-
reactStrictMode: true,
10-
pageExtensions: ["ts", "tsx", "mdx"],
11-
12-
logging: {
13-
fetches: {
14-
fullUrl: true,
15-
},
16-
},
17-
18-
webpack(config) {
19-
config.module.rules.push({
20-
test: /\.svg$/i,
21-
use: ["@svgr/webpack"],
22-
});
23-
24-
return config;
25-
},
26-
27-
headers: async () => [
28-
{
29-
source: "/:path*",
30-
headers: [
31-
{
32-
key: "X-XSS-Protection",
33-
value: "1; mode=block",
34-
},
35-
{
36-
key: "Referrer-Policy",
37-
value: "strict-origin-when-cross-origin",
38-
},
39-
{
40-
key: "Strict-Transport-Security",
41-
value: "max-age=2592000",
42-
},
43-
{
44-
key: "X-Content-Type-Options",
45-
value: "nosniff",
46-
},
47-
{
48-
key: "Permissions-Policy",
49-
value:
50-
"vibrate=(), geolocation=(), midi=(), notifications=(), push=(), sync-xhr=(), microphone=(), camera=(), magnetometer=(), gyroscope=(), speaker=(), vibrate=(), fullscreen=self",
51-
},
52-
],
53-
},
54-
],
9+
reactStrictMode: true,
10+
pageExtensions: ["ts", "tsx", "mdx"],
11+
12+
logging: {
13+
fetches: {
14+
fullUrl: true,
15+
},
16+
},
17+
18+
webpack(config) {
19+
config.module.rules.push({
20+
test: /\.svg$/i,
21+
use: ["@svgr/webpack"],
22+
});
23+
24+
return config;
25+
},
26+
27+
headers: async () => [
28+
{
29+
source: "/:path*",
30+
headers: [
31+
{
32+
key: "X-XSS-Protection",
33+
value: "1; mode=block",
34+
},
35+
{
36+
key: "Referrer-Policy",
37+
value: "strict-origin-when-cross-origin",
38+
},
39+
{
40+
key: "Strict-Transport-Security",
41+
value: "max-age=2592000",
42+
},
43+
{
44+
key: "X-Content-Type-Options",
45+
value: "nosniff",
46+
},
47+
{
48+
key: "Permissions-Policy",
49+
value:
50+
"vibrate=(), geolocation=(), midi=(), notifications=(), push=(), sync-xhr=(), microphone=(), camera=(), magnetometer=(), gyroscope=(), speaker=(), vibrate=(), fullscreen=self",
51+
},
52+
],
53+
},
54+
],
5555
};
5656

5757
const withMDX = createMDX();

apps/developer-hub/package.json

Lines changed: 63 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,65 @@
11
{
2-
"name": "@pythnetwork/developer-hub",
3-
"version": "0.0.0",
4-
"private": true,
5-
"type": "module",
6-
"engines": {
7-
"node": "22"
8-
},
9-
"scripts": {
10-
"build:vercel": "next build",
11-
"build:analyze": "ANALYZE=true next build",
12-
"fix:format": "prettier --write .",
13-
"fix:lint:eslint": "eslint --fix .",
14-
"fix:lint:stylelint": "stylelint --fix 'src/**/*.scss'",
15-
"pull:env": "[ $CI ] || VERCEL_ORG_ID=team_BKQrg3JJFLxZyTqpuYtIY0rj VERCEL_PROJECT_ID=prj_TBkf9EyQjQF37gs4Vk0sQKJj97kE vercel env pull",
16-
"start:dev": "next dev --port 3627",
17-
"start:prod": "next start --port 3627",
18-
"test:format": "prettier --check .",
19-
"test:lint:eslint": "eslint . --max-warnings 0",
20-
"test:lint:stylelint": "stylelint 'src/**/*.scss' --max-warnings 0",
21-
"test:types": "tsc"
22-
},
23-
"dependencies": {
24-
"@phosphor-icons/react": "catalog:",
25-
"@pythnetwork/component-library": "workspace:*",
26-
"@react-hookz/web": "catalog:",
27-
"clsx": "catalog:",
28-
"fumadocs-core": "catalog:",
29-
"fumadocs-mdx": "catalog:",
30-
"fumadocs-ui": "catalog:",
31-
"next": "catalog:",
32-
"next-themes": "catalog:",
33-
"nuqs": "catalog:",
34-
"react": "catalog:",
35-
"react-aria": "catalog:",
36-
"react-dom": "catalog:",
37-
"zod": "catalog:",
38-
"zod-validation-error": "catalog:"
39-
},
40-
"devDependencies": {
41-
"@cprussin/eslint-config": "catalog:",
42-
"@cprussin/jest-config": "catalog:",
43-
"@cprussin/prettier-config": "catalog:",
44-
"@cprussin/tsconfig": "catalog:",
45-
"@next/bundle-analyzer": "catalog:",
46-
"@svgr/webpack": "catalog:",
47-
"@tailwindcss/postcss": "catalog:",
48-
"@types/jest": "catalog:",
49-
"@types/mdx": "catalog:",
50-
"@types/node": "catalog:",
51-
"@types/react": "catalog:",
52-
"@types/react-dom": "catalog:",
53-
"autoprefixer": "catalog:",
54-
"eslint": "catalog:",
55-
"jest": "catalog:",
56-
"postcss": "catalog:",
57-
"prettier": "catalog:",
58-
"sass": "catalog:",
59-
"stylelint": "catalog:",
60-
"stylelint-config-standard-scss": "catalog:",
61-
"tailwindcss": "^4.1.6",
62-
"typescript": "catalog:",
63-
"vercel": "catalog:"
64-
}
2+
"name": "@pythnetwork/developer-hub",
3+
"version": "0.0.0",
4+
"private": true,
5+
"type": "module",
6+
"engines": {
7+
"node": "22"
8+
},
9+
"scripts": {
10+
"build:vercel": "next build",
11+
"build:analyze": "ANALYZE=true next build",
12+
"fix:format": "prettier --write .",
13+
"fix:lint:eslint": "eslint --fix .",
14+
"fix:lint:stylelint": "stylelint --fix 'src/**/*.scss'",
15+
"pull:env": "[ $CI ] || VERCEL_ORG_ID=team_BKQrg3JJFLxZyTqpuYtIY0rj VERCEL_PROJECT_ID=prj_TBkf9EyQjQF37gs4Vk0sQKJj97kE vercel env pull",
16+
"start:dev": "next dev --port 3627",
17+
"start:prod": "next start --port 3627",
18+
"test:format": "prettier --check .",
19+
"test:lint:eslint": "eslint . --max-warnings 0",
20+
"test:lint:stylelint": "stylelint 'src/**/*.scss' --max-warnings 0",
21+
"test:types": "tsc"
22+
},
23+
"dependencies": {
24+
"@phosphor-icons/react": "catalog:",
25+
"@pythnetwork/component-library": "workspace:*",
26+
"@react-hookz/web": "catalog:",
27+
"clsx": "catalog:",
28+
"fumadocs-core": "catalog:",
29+
"fumadocs-mdx": "catalog:",
30+
"fumadocs-ui": "catalog:",
31+
"next": "catalog:",
32+
"next-themes": "catalog:",
33+
"nuqs": "catalog:",
34+
"react": "catalog:",
35+
"react-aria": "catalog:",
36+
"react-dom": "catalog:",
37+
"zod": "catalog:",
38+
"zod-validation-error": "catalog:"
39+
},
40+
"devDependencies": {
41+
"@cprussin/eslint-config": "catalog:",
42+
"@cprussin/jest-config": "catalog:",
43+
"@cprussin/prettier-config": "catalog:",
44+
"@cprussin/tsconfig": "catalog:",
45+
"@next/bundle-analyzer": "catalog:",
46+
"@svgr/webpack": "catalog:",
47+
"@tailwindcss/postcss": "catalog:",
48+
"@types/jest": "catalog:",
49+
"@types/mdx": "catalog:",
50+
"@types/node": "catalog:",
51+
"@types/react": "catalog:",
52+
"@types/react-dom": "catalog:",
53+
"autoprefixer": "catalog:",
54+
"eslint": "catalog:",
55+
"jest": "catalog:",
56+
"postcss": "catalog:",
57+
"prettier": "catalog:",
58+
"sass": "catalog:",
59+
"stylelint": "catalog:",
60+
"stylelint-config-standard-scss": "catalog:",
61+
"tailwindcss": "^4.1.6",
62+
"typescript": "catalog:",
63+
"vercel": "catalog:"
64+
}
6565
}

0 commit comments

Comments
 (0)