Skip to content

Commit

Permalink
chore: bump eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
nonzzz committed Dec 5, 2024
1 parent 7d9d40f commit 44a927e
Show file tree
Hide file tree
Showing 20 changed files with 1,206 additions and 2,102 deletions.
17 changes: 8 additions & 9 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{
"eslint.useFlatConfig": true,
"dprint.path": "./node_modules/.bin/dprint",
"editor.defaultFormatter": "dprint.dprint",
"editor.codeActionsOnSave": {
"source.fixAll": "explicit"
},
"editor.formatOnSave": true,
}

"eslint.useFlatConfig": true,
"dprint.path": "./node_modules/.bin/dprint",
"editor.defaultFormatter": "dprint.dprint",
"editor.codeActionsOnSave": {
"source.fixAll": "explicit"
},
"editor.formatOnSave": true
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ declare function getNodeDepth(node: NativeModule): number
declare function visit<T extends AnyObject>(data: T[], fn: (data: T) => boolean | void): T | null

declare function findRelativeNode(p: {
x: number
x: number,
y: number
}, layoutNodes: LayoutModule[]): LayoutModule | null

Expand Down
2 changes: 1 addition & 1 deletion dev/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
#app,html,body {
#app, html, body {
margin: 0;
padding: 0;
overflow: hidden;
Expand Down
5 changes: 4 additions & 1 deletion dev/live-reload.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
declare const LIVE_RELOAD: boolean

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

if (!added.length && !removed.length && updated.length === 1) {
Expand Down
28 changes: 1 addition & 27 deletions dprint.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,4 @@
{
"lineWidth": 140,
"typescript": {
"semiColons": "asi",
"indentWidth": 2,
"quoteStyle": "preferSingle",
"useTabs": false,
"trailingCommas": "never",
"module.sortImportDeclarations": "maintain",
"importDeclaration.sortNamedImports": "maintain",
"operatorPosition": "maintain",
"jsx.quoteStyle": "preferDouble",
"jsx.bracketPosition": "maintain",
"functionDeclaration.spaceBeforeParentheses": false
},
"json": {},
"markdown": {},
"excludes": [
"**/node_modules",
"**/*-lock.json"
],
"plugins": [
"https://plugins.dprint.dev/typescript-0.93.0.wasm",
"https://plugins.dprint.dev/json-0.19.3.wasm",
"https://plugins.dprint.dev/markdown-0.17.8.wasm",
"https://plugins.dprint.dev/toml-0.6.3.wasm",
"https://plugins.dprint.dev/g-plane/markup_fmt-v0.13.1.wasm",
"https://plugins.dprint.dev/g-plane/pretty_yaml-v0.5.0.wasm"
]
"extends": "https://dprint.nonzzz.moe/dprint.json"
}
18 changes: 3 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,28 +25,16 @@
"@types/node": "^22.7.4",
"dprint": "^0.47.2",
"esbuild": "^0.24.0",
"eslint": "8",
"eslint-config-kagura": "^2.2.1",
"eslint": "^9.16.0",
"eslint-config-kagura": "^3.0.1",
"jiek": "^2.1.11",
"typescript": "^5.6.2"
},
"pnpm": {
"overrides": {
"esbuild": "0.24.0",
"array-includes": "npm:@nolyfill/array-includes@^1",
"array.prototype.flat": "npm:@nolyfill/array.prototype.flat@^1",
"array.prototype.flatmap": "npm:@nolyfill/array.prototype.flatmap@^1",
"deep-equal": "npm:@nolyfill/deep-equal@^1",
"es-iterator-helpers": "npm:@nolyfill/es-iterator-helpers@^1",
"hasown": "npm:@nolyfill/hasown@^1",
"is-core-module": "npm:@nolyfill/is-core-module@^1",
"object.assign": "npm:@nolyfill/object.assign@^1",
"object.fromentries": "npm:@nolyfill/object.fromentries@^1",
"object.values": "npm:@nolyfill/object.values@^1",
"safe-buffer": "npm:@nolyfill/safe-buffer@^1",
"safe-regex-test": "npm:@nolyfill/safe-regex-test@^1",
"safer-buffer": "npm:@nolyfill/safer-buffer@^1",
"string.prototype.includes": "npm:@nolyfill/string.prototype.includes@^1"
"safer-buffer": "npm:@nolyfill/safer-buffer@^1"
}
},
"packageManager": "[email protected]"
Expand Down
Loading

0 comments on commit 44a927e

Please sign in to comment.