Skip to content

Commit 2fcaeaf

Browse files
committed
small fixes -- format only (no lint:fix)
1 parent 0d97d6a commit 2fcaeaf

5 files changed

Lines changed: 19 additions & 9 deletions

File tree

bin/publish-schema.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ import { copyFile, readFile, symlink, unlink } from 'node:fs/promises';
66
async function link(schemaFile, linkFile) {
77
try {
88
await unlink(linkFile);
9-
// eslint-disable-next-line
10-
} catch (err) { // @typescript-eslint/no-unused-vars
9+
} catch (_err) {
1110
// file may not have existed
1211
}
1312
await symlink(schemaFile, linkFile);

eslint.config.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,20 @@ export default tseslint.config(
2222
},
2323
rules: {
2424
"no-unexpected-multiline": "off",
25+
"no-unused-vars": "off",
2526
"@typescript-eslint/no-explicit-any": "warn",
26-
"@typescript-eslint/no-unused-vars": "warn",
27+
"@typescript-eslint/no-unused-vars": [
28+
"error",
29+
{
30+
args: "all",
31+
argsIgnorePattern: "^_",
32+
caughtErrors: "all",
33+
caughtErrorsIgnorePattern: "^_",
34+
destructuredArrayIgnorePattern: "^_",
35+
varsIgnorePattern: "^_",
36+
ignoreRestSiblings: true
37+
}
38+
],
2739
"@typescript-eslint/no-unused-expressions": "warn",
2840
"@typescript-eslint/no-this-alias": "warn",
2941
"@typescript-eslint/ban-ts-comment": "warn"

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@
1919
"clean": "lerna run clean",
2020
"lint": "lerna run lint",
2121
"test": "tsc --build && lerna run schema && vitest run",
22-
"format": "prettier --write '**/*.{js,ts,tsx,json,css,md}'",
23-
"lint:fix": "eslint '**/*.{js,ts,tsx}' --fix",
22+
"format": "eslint '**/*.{js,ts,tsx}' --fix && prettier --write '**/*.{json,css,md}'",
2423
"server": "cd packages/server/duckdb-server && npm run dev",
2524
"server:rust": "cd packages/server/duckdb-server-rust && cargo run",
2625
"server:node": "nodemon packages/server/duckdb/bin/run-server.js",

packages/mosaic/core/src/MosaicClient.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ export class MosaicClient {
128128
* @param filter The filtering criteria to apply in the query.
129129
* @returns The client query
130130
*/
131-
// eslint-disable-next-line
132-
query(filter?: FilterExpr | null): ClientQuery { // @typescript-eslint/no-unused-vars
131+
// @typeescript-eslint/no-unused-vars
132+
query(filter?: FilterExpr | null): ClientQuery {
133133
return null;
134134
}
135135

packages/mosaic/core/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"include": ["src/**/*"],
44
"compilerOptions": {
55
"outDir": "dist",
6-
"strict": true
6+
"strict": true,
77
},
8-
"references": [{ "path": "../sql" }]
8+
"references": [{ "path": "../sql" }],
99
}

0 commit comments

Comments
 (0)