Skip to content

Commit 48215ad

Browse files
committed
feat(biome): add biome and running format
1 parent 9ff8686 commit 48215ad

34 files changed

Lines changed: 1970 additions & 1741 deletions

next.config.ts

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,31 @@
1-
import type { NextConfig } from "next";
1+
import type { NextConfig } from 'next';
2+
import type { Configuration } from 'webpack';
3+
import MonacoWebpackPlugin from 'monaco-editor-webpack-plugin';
24

35
const nextConfig: NextConfig = {
4-
/* config options here */
6+
webpack: (config: Configuration, { isServer }): Configuration => {
7+
config.module = config.module || { rules: [] };
8+
config.module.rules = config.module.rules || [];
9+
10+
if (!isServer) {
11+
config.plugins = config.plugins || [];
12+
config.plugins.push(
13+
new MonacoWebpackPlugin({
14+
languages: ['typescript', 'javascript'],
15+
filename: 'static/[name].worker.js',
16+
})
17+
);
18+
}
19+
20+
config.module.rules.push({
21+
test: /\.d\.ts$/,
22+
use: 'raw-loader',
23+
});
24+
25+
return config;
26+
},
27+
poweredByHeader: false,
28+
reactStrictMode: true,
529
};
630

7-
export default nextConfig;
31+
export default nextConfig;

package.json

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,31 @@
1111
},
1212
"dependencies": {
1313
"@monaco-editor/react": "^4.7.0",
14+
"@polkadot/api": "^15.9.2",
1415
"@types/webpack": "^5.28.5",
16+
"biome": "^0.3.3",
1517
"classnames": "^2.5.1",
1618
"lucide-react": "^0.487.0",
19+
"monaco-editor": "^0.52.2",
20+
"monaco-editor-webpack-plugin": "^7.1.0",
1721
"next": "15.2.4",
22+
"polkadot-api": "^1.9.13",
1823
"react": "^19.0.0",
1924
"react-dom": "^19.0.0",
25+
"rxjs": "^7.8.2",
2026
"webpack": "^5.99.6"
2127
},
2228
"devDependencies": {
23-
"typescript": "^5",
29+
"@biomejs/biome": "^1.9.4",
30+
"@eslint/eslintrc": "^3",
31+
"@tailwindcss/postcss": "^4",
2432
"@types/node": "^20",
2533
"@types/react": "^19",
2634
"@types/react-dom": "^19",
27-
"@tailwindcss/postcss": "^4",
28-
"tailwindcss": "^4",
2935
"eslint": "^9",
3036
"eslint-config-next": "15.2.4",
31-
"@eslint/eslintrc": "^3"
37+
"i": "^0.3.7",
38+
"tailwindcss": "^4",
39+
"typescript": "^5"
3240
}
3341
}

0 commit comments

Comments
 (0)