Skip to content

Commit c35f200

Browse files
chore(deps): update @biomejs/biome to v2 (#2063)
* chore(deps): update @biomejs/biome to v2 * apply biome fixes Signed-off-by: Adam Setch <adam.setch@outlook.com> * apply biome fixes Signed-off-by: Adam Setch <adam.setch@outlook.com> --------- Signed-off-by: Adam Setch <adam.setch@outlook.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Adam Setch <adam.setch@outlook.com>
1 parent 5fcd294 commit c35f200

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+174
-90
lines changed

biome.json

Lines changed: 43 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,52 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
3-
"organizeImports": {
4-
"enabled": true
2+
"$schema": "https://biomejs.dev/schemas/2.0.0/schema.json",
3+
"assist": {
4+
"actions": {
5+
"source": {
6+
"organizeImports": {
7+
"level": "on",
8+
"options": {
9+
"groups": [
10+
":NODE:",
11+
":BLANK_LINE:",
12+
["react*", "@testing-library/**"],
13+
":BLANK_LINE:",
14+
["*electron*", "menubar"],
15+
":BLANK_LINE:",
16+
"@primer/**",
17+
":BLANK_LINE:",
18+
":PACKAGE:",
19+
":BLANK_LINE:",
20+
"**"
21+
]
22+
}
23+
}
24+
}
25+
}
526
},
627
"linter": {
728
"enabled": true,
29+
"domains": {
30+
"react": "recommended",
31+
"test": "recommended"
32+
},
833
"rules": {
934
"recommended": true,
1035
"suspicious": {
11-
"noConsoleLog": "error"
36+
"noConsole": "error"
1237
},
1338
"style": {
14-
"useDefaultSwitchClause": "error"
39+
"useDefaultSwitchClause": "error",
40+
"noParameterAssign": "error",
41+
"useAsConstAssertion": "error",
42+
"useDefaultParameterLast": "error",
43+
"useEnumInitializers": "error",
44+
"useSelfClosingElements": "error",
45+
"useSingleVarDeclarator": "error",
46+
"noUnusedTemplateLiteral": "error",
47+
"useNumberNamespace": "error",
48+
"noInferrableTypes": "error",
49+
"noUselessElse": "error"
1550
},
1651
"a11y": {
1752
"useKeyWithClickEvents": "off",
@@ -25,6 +60,9 @@
2560
"hooks": [{ "name": "useNavigate", "stableResult": true }]
2661
}
2762
}
63+
},
64+
"nursery": {
65+
"useUniqueElementIds": "warn"
2866
}
2967
}
3068
},

config/webpack.config.main.base.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import path from 'node:path';
2+
23
import type webpack from 'webpack';
34
import { merge } from 'webpack-merge';
5+
46
import baseConfig from './webpack.config.common';
57
import webpackPaths from './webpack.paths';
68

config/webpack.config.main.prod.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import TerserPlugin from 'terser-webpack-plugin';
22
import type webpack from 'webpack';
33
import { merge } from 'webpack-merge';
4+
45
import baseConfig from './webpack.config.main.base';
56

67
const configuration: webpack.Configuration = {

config/webpack.config.renderer.base.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import path from 'node:path';
2+
23
import CopyWebpackPlugin from 'copy-webpack-plugin';
34
import HtmlWebpackPlugin from 'html-webpack-plugin';
45
import MiniCssExtractPlugin from 'mini-css-extract-plugin';
56
import webpack from 'webpack';
67
import { merge } from 'webpack-merge';
7-
import baseConfig from './webpack.config.common';
8-
import webpackPaths from './webpack.paths';
98

109
import { ALL_EMOJI_SVG_FILENAMES } from '../src/renderer/utils/emojis';
10+
import baseConfig from './webpack.config.common';
11+
import webpackPaths from './webpack.paths';
1112

1213
const configuration: webpack.Configuration = {
1314
devtool: 'inline-source-map',

config/webpack.config.renderer.prod.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import CssMinimizerPlugin from 'css-minimizer-webpack-plugin';
22
import TerserPlugin from 'terser-webpack-plugin';
33
import type webpack from 'webpack';
44
import { merge } from 'webpack-merge';
5+
56
import baseConfig from './webpack.config.renderer.base';
67

78
const configuration: webpack.Configuration = {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
"update-electron-app": "3.1.1"
7878
},
7979
"devDependencies": {
80-
"@biomejs/biome": "1.9.4",
80+
"@biomejs/biome": "2.0.0",
8181
"@discordapp/twemoji": "15.1.0",
8282
"@electron/notarize": "3.0.1",
8383
"@primer/octicons-react": "19.15.2",

pnpm-lock.yaml

Lines changed: 38 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/afterPack.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const builderConfig = require('../config/electron-builder');
66
const electronLanguages = builderConfig.electronLanguages;
77

88
function logAfterPackProgress(msg) {
9-
// biome-ignore lint/suspicious/noConsoleLog: log notarizing progress
9+
// biome-ignore lint/suspicious/noConsole: log notarizing progress
1010
console.log(` • [afterPack]: ${msg}`);
1111
}
1212

scripts/afterSign.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const { notarize } = require('@electron/notarize');
22
const { AfterPackContext } = require('electron-builder');
33

44
function logAfterSignProgress(msg) {
5-
// biome-ignore lint/suspicious/noConsoleLog: log notarizing progress
5+
// biome-ignore lint/suspicious/noConsole: log notarizing progress
66
console.log(` • [afterSign]: ${msg}`);
77
}
88

scripts/delete-source-maps.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import fs from 'node:fs';
22
import path from 'node:path';
3+
34
import { rimrafSync } from 'rimraf';
5+
46
import webpackPaths from '../config/webpack.paths';
57

68
function deleteSourceMaps() {

0 commit comments

Comments
 (0)