Skip to content

Commit 50f3a29

Browse files
committed
Add @convex-dev/eslint-plugin
1 parent 7dfeda9 commit 50f3a29

File tree

3 files changed

+237
-36
lines changed

3 files changed

+237
-36
lines changed

eslint.config.mjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import pluginJs from "@eslint/js";
33
import tseslint from "typescript-eslint";
44
import reactPlugin from "eslint-plugin-react";
55
import reactHooks from "eslint-plugin-react-hooks";
6+
import convexPlugin from "@convex-dev/eslint-plugin";
67

78
export default [
89
{ files: ["src/**/*.{js,mjs,cjs,ts,tsx}", "convex/**/*.{ts,tsx}"] },
@@ -21,6 +22,14 @@ export default [
2122
"vitest.workspace.ts",
2223
],
2324
},
25+
{
26+
files: ["convex/**/*.ts", "packages/convex-helpers/server/**/*.ts"],
27+
ignores: ["packages/convex-helpers/server/_generated/**/*"],
28+
plugins: {
29+
"@convex-dev": convexPlugin,
30+
},
31+
rules: convexPlugin.configs.recommended[0].rules,
32+
},
2433
{
2534
languageOptions: {
2635
globals: globals.worker,

0 commit comments

Comments
 (0)