Skip to content

Commit 44a927e

Browse files
committed
chore: bump eslint
1 parent 7d9d40f commit 44a927e

File tree

20 files changed

+1206
-2102
lines changed

20 files changed

+1206
-2102
lines changed

.vscode/settings.json

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
{
2-
"eslint.useFlatConfig": true,
3-
"dprint.path": "./node_modules/.bin/dprint",
4-
"editor.defaultFormatter": "dprint.dprint",
5-
"editor.codeActionsOnSave": {
6-
"source.fixAll": "explicit"
7-
},
8-
"editor.formatOnSave": true,
9-
}
10-
2+
"eslint.useFlatConfig": true,
3+
"dprint.path": "./node_modules/.bin/dprint",
4+
"editor.defaultFormatter": "dprint.dprint",
5+
"editor.codeActionsOnSave": {
6+
"source.fixAll": "explicit"
7+
},
8+
"editor.formatOnSave": true
9+
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ declare function getNodeDepth(node: NativeModule): number
3535
declare function visit<T extends AnyObject>(data: T[], fn: (data: T) => boolean | void): T | null
3636

3737
declare function findRelativeNode(p: {
38-
x: number
38+
x: number,
3939
y: number
4040
}, layoutNodes: LayoutModule[]): LayoutModule | null
4141

dev/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<title>Document</title>
77
<style>
8-
#app,html,body {
8+
#app, html, body {
99
margin: 0;
1010
padding: 0;
1111
overflow: hidden;

dev/live-reload.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
2+
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
13
declare const LIVE_RELOAD: boolean
24

35
if (LIVE_RELOAD) {
4-
new EventSource('/esbuild').addEventListener('change', e => {
6+
new EventSource('/esbuild').addEventListener('change', (e) => {
7+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
58
const { added, removed, updated } = JSON.parse(e.data)
69

710
if (!added.length && !removed.length && updated.length === 1) {

dprint.json

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,4 @@
11
{
22
"lineWidth": 140,
3-
"typescript": {
4-
"semiColons": "asi",
5-
"indentWidth": 2,
6-
"quoteStyle": "preferSingle",
7-
"useTabs": false,
8-
"trailingCommas": "never",
9-
"module.sortImportDeclarations": "maintain",
10-
"importDeclaration.sortNamedImports": "maintain",
11-
"operatorPosition": "maintain",
12-
"jsx.quoteStyle": "preferDouble",
13-
"jsx.bracketPosition": "maintain",
14-
"functionDeclaration.spaceBeforeParentheses": false
15-
},
16-
"json": {},
17-
"markdown": {},
18-
"excludes": [
19-
"**/node_modules",
20-
"**/*-lock.json"
21-
],
22-
"plugins": [
23-
"https://plugins.dprint.dev/typescript-0.93.0.wasm",
24-
"https://plugins.dprint.dev/json-0.19.3.wasm",
25-
"https://plugins.dprint.dev/markdown-0.17.8.wasm",
26-
"https://plugins.dprint.dev/toml-0.6.3.wasm",
27-
"https://plugins.dprint.dev/g-plane/markup_fmt-v0.13.1.wasm",
28-
"https://plugins.dprint.dev/g-plane/pretty_yaml-v0.5.0.wasm"
29-
]
3+
"extends": "https://dprint.nonzzz.moe/dprint.json"
304
}

package.json

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,28 +25,16 @@
2525
"@types/node": "^22.7.4",
2626
"dprint": "^0.47.2",
2727
"esbuild": "^0.24.0",
28-
"eslint": "8",
29-
"eslint-config-kagura": "^2.2.1",
28+
"eslint": "^9.16.0",
29+
"eslint-config-kagura": "^3.0.1",
3030
"jiek": "^2.1.11",
3131
"typescript": "^5.6.2"
3232
},
3333
"pnpm": {
3434
"overrides": {
3535
"esbuild": "0.24.0",
36-
"array-includes": "npm:@nolyfill/array-includes@^1",
37-
"array.prototype.flat": "npm:@nolyfill/array.prototype.flat@^1",
38-
"array.prototype.flatmap": "npm:@nolyfill/array.prototype.flatmap@^1",
39-
"deep-equal": "npm:@nolyfill/deep-equal@^1",
40-
"es-iterator-helpers": "npm:@nolyfill/es-iterator-helpers@^1",
41-
"hasown": "npm:@nolyfill/hasown@^1",
4236
"is-core-module": "npm:@nolyfill/is-core-module@^1",
43-
"object.assign": "npm:@nolyfill/object.assign@^1",
44-
"object.fromentries": "npm:@nolyfill/object.fromentries@^1",
45-
"object.values": "npm:@nolyfill/object.values@^1",
46-
"safe-buffer": "npm:@nolyfill/safe-buffer@^1",
47-
"safe-regex-test": "npm:@nolyfill/safe-regex-test@^1",
48-
"safer-buffer": "npm:@nolyfill/safer-buffer@^1",
49-
"string.prototype.includes": "npm:@nolyfill/string.prototype.includes@^1"
37+
"safer-buffer": "npm:@nolyfill/safer-buffer@^1"
5038
}
5139
},
5240
"packageManager": "[email protected]"

0 commit comments

Comments
 (0)