Skip to content

Commit 4f89d51

Browse files
committed
Update packages and Node.js
1 parent 316da38 commit 4f89d51

File tree

12 files changed

+858
-540
lines changed

12 files changed

+858
-540
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,3 @@ on:
1111
jobs:
1212
build:
1313
uses: yoriiis/actions/.github/workflows/test-and-build.yml@main
14-
with:
15-
node-version: 18

.github/workflows/github-pages-deploy.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,4 @@ jobs:
1414
id-token: write
1515
uses: yoriiis/actions/.github/workflows/github-pages-deploy.yml@main
1616
with:
17-
node-version: 18
1817
build-dir: dist

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
lts/jod
1+
lts/krypton

biome.json

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.3.6/schema.json",
3+
"vcs": {
4+
"enabled": true,
5+
"clientKind": "git",
6+
"useIgnoreFile": true
7+
},
8+
"files": {
9+
"ignoreUnknown": false,
10+
"includes": ["**"]
11+
},
12+
"formatter": {
13+
"enabled": true,
14+
"useEditorconfig": true,
15+
"formatWithErrors": false,
16+
"indentStyle": "tab",
17+
"indentWidth": 2,
18+
"lineEnding": "lf",
19+
"lineWidth": 100,
20+
"attributePosition": "auto",
21+
"bracketSpacing": true
22+
},
23+
"assist": { "actions": { "source": { "organizeImports": "on" } } },
24+
"linter": {
25+
"enabled": true,
26+
"rules": {
27+
"recommended": true,
28+
"complexity": { "noForEach": "off" },
29+
"suspicious": { "noExplicitAny": "off" },
30+
"correctness": {
31+
"noUnknownTypeSelector": "off"
32+
}
33+
}
34+
},
35+
"javascript": {
36+
"formatter": {
37+
"jsxQuoteStyle": "double",
38+
"quoteProperties": "asNeeded",
39+
"trailingCommas": "none",
40+
"semicolons": "asNeeded",
41+
"arrowParentheses": "always",
42+
"bracketSameLine": true,
43+
"quoteStyle": "single",
44+
"attributePosition": "auto",
45+
"bracketSpacing": true
46+
}
47+
},
48+
"css": {
49+
"formatter": {
50+
"indentStyle": "tab",
51+
"indentWidth": 2,
52+
"quoteStyle": "double"
53+
}
54+
}
55+
}

config/babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module.exports = function (api) {
1+
module.exports = (api) => {
22
const presets = [['@babel/preset-env']]
33

44
api.cache(true)

config/webpack.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
const fs = require('fs')
2-
const path = require('path')
1+
const fs = require('node:fs')
2+
const path = require('node:path')
33
const webpack = require('webpack')
44
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
55
const TerserPlugin = require('terser-webpack-plugin')
@@ -10,7 +10,7 @@ const CopyPlugin = require('copy-webpack-plugin')
1010
const appDirectory = fs.realpathSync(process.cwd())
1111
const resolveApp = (relativePath) => path.resolve(appDirectory, relativePath)
1212

13-
module.exports = (env, argv) => {
13+
module.exports = (_env, argv) => {
1414
const isProduction = argv.mode === 'production'
1515

1616
return {

0 commit comments

Comments
 (0)