Skip to content

Commit 3bae97a

Browse files
committed
lint
1 parent 84788ad commit 3bae97a

File tree

3 files changed

+14
-15
lines changed

3 files changed

+14
-15
lines changed

eslint.config.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ export default [
88
{
99
ignores: [
1010
"dist/**",
11-
"eslint.config.js",
12-
"vitest.config.ts",
11+
"*.config.{js,mjs,ts}",
1312
"**/_generated/",
1413
"node10stubs.mjs",
14+
"example/.expo/**",
15+
"example/**/*.config.{js,mjs,ts}",
16+
"example/expo-env.d.ts",
1517
],
1618
},
1719
{
@@ -60,7 +62,7 @@ export default [
6062
},
6163
// React app code - Browser environment
6264
{
63-
files: ["src/react/**/*.{ts,tsx}", "example/src/**/*.{ts,tsx}"],
65+
files: ["src/react/**/*.{ts,tsx}", "example/app/**/*.{ts,tsx}"],
6466
languageOptions: {
6567
ecmaVersion: 2020,
6668
globals: globals.browser,
@@ -84,16 +86,14 @@ export default [
8486
varsIgnorePattern: "^_",
8587
},
8688
],
87-
},
88-
},
89-
// Example config files (vite.config.ts, etc.) - Node environment
90-
{
91-
files: ["example/vite.config.ts", "example/**/*.config.{js,ts}"],
92-
languageOptions: {
93-
globals: {
94-
...globals.node,
95-
...globals.browser,
96-
},
89+
"@typescript-eslint/no-unused-expressions": [
90+
"warn",
91+
{
92+
allowShortCircuit: true,
93+
allowTernary: true,
94+
allowTaggedTemplates: true,
95+
},
96+
],
9797
},
9898
},
9999
];

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"clean": "rm -rf dist *.tsbuildinfo",
2626
"build": "tsc --project ./tsconfig.build.json",
2727
"typecheck": "tsc --noEmit && tsc -p example && tsc -p example/convex",
28-
"lint": "eslint src",
28+
"lint": "eslint .",
2929
"all": "run-p -r 'dev:*' 'test:watch'",
3030
"test": "vitest run --typecheck",
3131
"test:watch": "vitest --typecheck --clearScreen false",

src/component/helpers.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ export const shutdownGracefully = async (ctx: MutationCtx) => {
8787
default: {
8888
const _typeCheck: never = job.state;
8989
ctx.logger.error(
90-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
9190
`Unknown job state ${(job.state as any).kind} for sender ${sender._id}. Cleaning it up. `,
9291
);
9392
await ctx.db.delete(sender._id);

0 commit comments

Comments
 (0)