@vllnt/eslint-config 1.0.1 → 2.0.0-canary.1bf4fa1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +81 -75
- package/flat/convex.js +48 -36
- package/package.json +26 -16
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ Every rule enforces `error` — no warnings, no compromises.
|
|
|
8
8
|
[](https://www.npmjs.com/package/@vllnt/eslint-config)
|
|
9
9
|
[](https://github.com/vllnt/eslint-config/actions/workflows/ci.yml)
|
|
10
10
|
[](LICENSE)
|
|
11
|
-
[](https://nodejs.org)
|
|
12
12
|
[](https://eslint.org)
|
|
13
13
|
|
|
14
14
|
</div>
|
|
@@ -26,56 +26,61 @@ Every rule enforces `error` — no warnings, no compromises.
|
|
|
26
26
|
## Install
|
|
27
27
|
|
|
28
28
|
```sh
|
|
29
|
-
pnpm add -D @vllnt/eslint-config eslint typescript
|
|
29
|
+
pnpm add -D @vllnt/eslint-config@^2 @typescript/native@npm:typescript@^7.0.2 eslint prettier typescript@npm:@typescript/typescript6@^6.0.2
|
|
30
30
|
```
|
|
31
31
|
|
|
32
|
+
Version 2 follows the official TypeScript 7 side-by-side migration arrangement:
|
|
33
|
+
`tsc` runs TypeScript 7, while type-aware ESLint tooling imports the TypeScript 6
|
|
34
|
+
JavaScript API through the canonical `typescript` package. TypeScript 5 is no
|
|
35
|
+
longer supported.
|
|
36
|
+
|
|
32
37
|
## Quick start
|
|
33
38
|
|
|
34
39
|
```js
|
|
35
40
|
// eslint.config.js
|
|
36
|
-
import { nextjs } from
|
|
41
|
+
import { nextjs } from "@vllnt/eslint-config/nextjs";
|
|
37
42
|
|
|
38
|
-
export default [...nextjs]
|
|
43
|
+
export default [...nextjs];
|
|
39
44
|
```
|
|
40
45
|
|
|
41
46
|
Each preset is an array — spread it into your flat config. All presets include `projectService: true` for type-aware linting.
|
|
42
47
|
|
|
43
48
|
## Presets
|
|
44
49
|
|
|
45
|
-
| Import
|
|
46
|
-
|
|
47
|
-
| `@vllnt/eslint-config`
|
|
48
|
-
| `@vllnt/eslint-config/nextjs`
|
|
49
|
-
| `@vllnt/eslint-config/react`
|
|
50
|
-
| `@vllnt/eslint-config/nodejs`
|
|
51
|
-
| `@vllnt/eslint-config/convex`
|
|
52
|
-
| `@vllnt/eslint-config/turbo`
|
|
53
|
-
| `@vllnt/eslint-config/boundaries` | Architecture boundary enforcement (opt-in)
|
|
50
|
+
| Import | Use case |
|
|
51
|
+
| --------------------------------- | ------------------------------------------------------ |
|
|
52
|
+
| `@vllnt/eslint-config` | Base — TypeScript strict + Prettier + import sorting |
|
|
53
|
+
| `@vllnt/eslint-config/nextjs` | Next.js apps (includes React + a11y + core web vitals) |
|
|
54
|
+
| `@vllnt/eslint-config/react` | React apps without Next.js |
|
|
55
|
+
| `@vllnt/eslint-config/nodejs` | Node.js backends |
|
|
56
|
+
| `@vllnt/eslint-config/convex` | Convex backends (4 official + 7 custom rules) |
|
|
57
|
+
| `@vllnt/eslint-config/turbo` | Turborepo cache rules (opt-in) |
|
|
58
|
+
| `@vllnt/eslint-config/boundaries` | Architecture boundary enforcement (opt-in) |
|
|
54
59
|
|
|
55
60
|
## Composing presets
|
|
56
61
|
|
|
57
62
|
Mix and match — presets are arrays:
|
|
58
63
|
|
|
59
64
|
```js
|
|
60
|
-
import { nodejs } from
|
|
61
|
-
import { turbo } from
|
|
65
|
+
import { nodejs } from "@vllnt/eslint-config/nodejs";
|
|
66
|
+
import { turbo } from "@vllnt/eslint-config/turbo";
|
|
62
67
|
|
|
63
|
-
export default [...nodejs, ...turbo]
|
|
68
|
+
export default [...nodejs, ...turbo];
|
|
64
69
|
```
|
|
65
70
|
|
|
66
71
|
Override any rule by appending a config object:
|
|
67
72
|
|
|
68
73
|
```js
|
|
69
|
-
import { nodejs } from
|
|
74
|
+
import { nodejs } from "@vllnt/eslint-config/nodejs";
|
|
70
75
|
|
|
71
76
|
export default [
|
|
72
77
|
...nodejs,
|
|
73
78
|
{
|
|
74
79
|
rules: {
|
|
75
|
-
|
|
80
|
+
"max-lines-per-function": ["error", { max: 50 }],
|
|
76
81
|
},
|
|
77
82
|
},
|
|
78
|
-
]
|
|
83
|
+
];
|
|
79
84
|
```
|
|
80
85
|
|
|
81
86
|
---
|
|
@@ -84,44 +89,44 @@ export default [
|
|
|
84
89
|
|
|
85
90
|
### Base (all presets)
|
|
86
91
|
|
|
87
|
-
| Plugin
|
|
88
|
-
|
|
89
|
-
| [@eslint/js](https://eslint.org/docs/latest/rules/)
|
|
90
|
-
| [typescript-eslint](https://typescript-eslint.io/)
|
|
91
|
-
| [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier)
|
|
92
|
-
| [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier)
|
|
93
|
-
| [eslint-plugin-perfectionist](https://perfectionist.dev/)
|
|
94
|
-
| [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn)
|
|
95
|
-
| [eslint-plugin-simple-import-sort](https://github.com/lydell/eslint-plugin-simple-import-sort)
|
|
96
|
-
| [eslint-plugin-functional](https://github.com/eslint-functional/eslint-plugin-functional)
|
|
97
|
-
| [eslint-plugin-write-good-comments](https://github.com/kantord/eslint-plugin-write-good-comments) | Comment quality
|
|
92
|
+
| Plugin | What it does |
|
|
93
|
+
| ------------------------------------------------------------------------------------------------- | -------------------------------------------- |
|
|
94
|
+
| [@eslint/js](https://eslint.org/docs/latest/rules/) | ESLint recommended rules |
|
|
95
|
+
| [typescript-eslint](https://typescript-eslint.io/) | `strictTypeChecked` + `stylisticTypeChecked` |
|
|
96
|
+
| [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier) | Prettier as ESLint errors |
|
|
97
|
+
| [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) | Disables conflicting rules |
|
|
98
|
+
| [eslint-plugin-perfectionist](https://perfectionist.dev/) | Import/object/type sorting |
|
|
99
|
+
| [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn) | Modern JS best practices |
|
|
100
|
+
| [eslint-plugin-simple-import-sort](https://github.com/lydell/eslint-plugin-simple-import-sort) | Import ordering |
|
|
101
|
+
| [eslint-plugin-functional](https://github.com/eslint-functional/eslint-plugin-functional) | Functional patterns (no loops, readonly) |
|
|
102
|
+
| [eslint-plugin-write-good-comments](https://github.com/kantord/eslint-plugin-write-good-comments) | Comment quality |
|
|
98
103
|
|
|
99
104
|
Plus: strict naming conventions (camelCase, PascalCase types, T-prefixed generics), no enums (union types enforced via AST selector).
|
|
100
105
|
|
|
101
106
|
### React additions
|
|
102
107
|
|
|
103
|
-
| Plugin
|
|
104
|
-
|
|
105
|
-
| [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react)
|
|
106
|
-
| [eslint-plugin-react-hooks](https://react.dev/reference/rules/rules-of-hooks)
|
|
107
|
-
| [eslint-plugin-jsx-a11y](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y)
|
|
108
|
-
| [eslint-plugin-css-modules](https://github.com/atfzl/eslint-plugin-css-modules) | CSS module validation
|
|
108
|
+
| Plugin | What it does |
|
|
109
|
+
| ------------------------------------------------------------------------------- | ------------------------- |
|
|
110
|
+
| [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) | Recommended + jsx-runtime |
|
|
111
|
+
| [eslint-plugin-react-hooks](https://react.dev/reference/rules/rules-of-hooks) | Rules of hooks |
|
|
112
|
+
| [eslint-plugin-jsx-a11y](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y) | Accessibility |
|
|
113
|
+
| [eslint-plugin-css-modules](https://github.com/atfzl/eslint-plugin-css-modules) | CSS module validation |
|
|
109
114
|
|
|
110
115
|
### Next.js additions
|
|
111
116
|
|
|
112
117
|
Everything in React, plus:
|
|
113
118
|
|
|
114
|
-
| Plugin
|
|
115
|
-
|
|
119
|
+
| Plugin | What it does |
|
|
120
|
+
| ----------------------------------------------------------------------------------- | ------------------------------------------- |
|
|
116
121
|
| [@next/eslint-plugin-next](https://nextjs.org/docs/app/api-reference/config/eslint) | Recommended + core web vitals (all `error`) |
|
|
117
122
|
|
|
118
123
|
Route handler method restrictions, page/layout `max-lines-per-function` override.
|
|
119
124
|
|
|
120
125
|
### Opt-in
|
|
121
126
|
|
|
122
|
-
| Preset
|
|
123
|
-
|
|
124
|
-
| Turbo
|
|
127
|
+
| Preset | Plugin |
|
|
128
|
+
| ---------- | ----------------------------------------------------------------------------------------------------------- |
|
|
129
|
+
| Turbo | [eslint-plugin-turbo](https://turbo.build/repo/docs/reference/eslint-plugin-turbo) cache rules |
|
|
125
130
|
| Boundaries | [eslint-plugin-boundaries](https://github.com/javierbrea/eslint-plugin-boundaries) architecture enforcement |
|
|
126
131
|
|
|
127
132
|
---
|
|
@@ -134,51 +139,52 @@ The Convex preset enforces backend best practices with **4 official rules** + **
|
|
|
134
139
|
|
|
135
140
|
```js
|
|
136
141
|
// Standalone
|
|
137
|
-
import { convex } from
|
|
142
|
+
import { convex } from "@vllnt/eslint-config/convex";
|
|
138
143
|
|
|
139
|
-
export default [...convex]
|
|
144
|
+
export default [...convex];
|
|
140
145
|
```
|
|
141
146
|
|
|
142
147
|
```js
|
|
143
148
|
// With base (recommended)
|
|
144
|
-
import { base } from
|
|
145
|
-
import { convex } from
|
|
149
|
+
import { base } from "@vllnt/eslint-config";
|
|
150
|
+
import { convex } from "@vllnt/eslint-config/convex";
|
|
146
151
|
|
|
147
|
-
export default [...base, ...convex]
|
|
152
|
+
export default [...base, ...convex];
|
|
148
153
|
```
|
|
149
154
|
|
|
150
155
|
### Official rules (`@convex-dev`)
|
|
151
156
|
|
|
152
|
-
| Rule
|
|
153
|
-
|
|
154
|
-
| `no-old-registered-function-syntax` | Deprecated function syntax
|
|
155
|
-
| `require-args-validator`
|
|
156
|
-
| `explicit-table-ids`
|
|
157
|
-
| `import-wrong-runtime`
|
|
157
|
+
| Rule | Catches |
|
|
158
|
+
| ----------------------------------- | ---------------------------------------------- |
|
|
159
|
+
| `no-old-registered-function-syntax` | Deprecated function syntax |
|
|
160
|
+
| `require-args-validator` | Missing `args` validator |
|
|
161
|
+
| `explicit-table-ids` | Implicit table ID types |
|
|
162
|
+
| `import-wrong-runtime` | Wrong runtime imports (Node in Convex runtime) |
|
|
158
163
|
|
|
159
164
|
### Custom rules (`convex-rules`)
|
|
160
165
|
|
|
161
|
-
| Rule
|
|
162
|
-
|
|
163
|
-
| `standard-filenames`
|
|
164
|
-
| `namespace-separation`
|
|
165
|
-
| `snake-case-filenames`
|
|
166
|
-
| `no-bare-v-any`
|
|
167
|
-
| `require-returns-validator` | Missing `returns` validator in factory config
|
|
168
|
-
| `no-query-in-loop`
|
|
169
|
-
| `no-filter-on-query`
|
|
166
|
+
| Rule | Catches |
|
|
167
|
+
| --------------------------- | ------------------------------------------------------------ |
|
|
168
|
+
| `standard-filenames` | Factories outside `queries.ts`, `mutations.ts`, `actions.ts` |
|
|
169
|
+
| `namespace-separation` | `query()` in `mutations.ts`, `mutation()` in `queries.ts` |
|
|
170
|
+
| `snake-case-filenames` | Hyphens in `convex/` filenames (must be `snake_case`) |
|
|
171
|
+
| `no-bare-v-any` | `v.any()` outside `validators.ts` |
|
|
172
|
+
| `require-returns-validator` | Missing `returns` validator in factory config |
|
|
173
|
+
| `no-query-in-loop` | N+1 queries (`ctx.db.query`/`get`/`runQuery` inside loops) |
|
|
174
|
+
| `no-filter-on-query` | `.filter()` on query chains (use `.withIndex()`) |
|
|
170
175
|
|
|
171
176
|
### Auto-applied overrides
|
|
172
177
|
|
|
173
178
|
- **Config files** (`auth.ts`, `auth.config.ts`, `convex.config.ts`) — exempt from `snake-case-filenames` and `explicit-module-boundary-types`
|
|
174
179
|
- **Migration files** (`convex/migrations/**`) — exempt from `standard-filenames`, `namespace-separation`, `no-query-in-loop`
|
|
175
180
|
- **Generated/test files** (`convex/_generated/**`, `*.test.ts`, `convex/testing/**`) — excluded entirely
|
|
181
|
+
- Sandboxed component sources under `src/component/**` receive the same rules and exclusions.
|
|
176
182
|
|
|
177
183
|
### Project-specific overrides
|
|
178
184
|
|
|
179
185
|
```js
|
|
180
|
-
import { base } from
|
|
181
|
-
import { convex } from
|
|
186
|
+
import { base } from "@vllnt/eslint-config";
|
|
187
|
+
import { convex } from "@vllnt/eslint-config/convex";
|
|
182
188
|
|
|
183
189
|
export default [
|
|
184
190
|
...base,
|
|
@@ -186,10 +192,10 @@ export default [
|
|
|
186
192
|
|
|
187
193
|
// Exempt "use node" action files from import-wrong-runtime
|
|
188
194
|
{
|
|
189
|
-
files: [
|
|
190
|
-
rules: {
|
|
195
|
+
files: ["convex/agents/actions.ts"],
|
|
196
|
+
rules: { "@convex-dev/import-wrong-runtime": "off" },
|
|
191
197
|
},
|
|
192
|
-
]
|
|
198
|
+
];
|
|
193
199
|
```
|
|
194
200
|
|
|
195
201
|
### Enforced file structure
|
|
@@ -213,11 +219,14 @@ convex/
|
|
|
213
219
|
|
|
214
220
|
## Peer dependencies
|
|
215
221
|
|
|
216
|
-
| Package
|
|
217
|
-
|
|
218
|
-
| `eslint` >= 9
|
|
219
|
-
| `prettier` >= 3
|
|
220
|
-
| `typescript` >=
|
|
222
|
+
| Package | Required |
|
|
223
|
+
| ------------------------------- | ---------------------------------------------- |
|
|
224
|
+
| `eslint` >= 9 | Yes |
|
|
225
|
+
| `prettier` >= 3 | Yes |
|
|
226
|
+
| `typescript` >= 6.0.2 and < 6.1 | Optional JavaScript API for type-aware linting |
|
|
227
|
+
|
|
228
|
+
Install `@typescript/native` as `npm:typescript@^7.0.2` when using TypeScript 7
|
|
229
|
+
as the build compiler.
|
|
221
230
|
|
|
222
231
|
## VS Code
|
|
223
232
|
|
|
@@ -225,10 +234,7 @@ Add to `.vscode/settings.json` for monorepo support:
|
|
|
225
234
|
|
|
226
235
|
```json
|
|
227
236
|
{
|
|
228
|
-
"eslint.workingDirectories": [
|
|
229
|
-
"./apps/your-app",
|
|
230
|
-
"./packages/your-package"
|
|
231
|
-
]
|
|
237
|
+
"eslint.workingDirectories": ["./apps/your-app", "./packages/your-package"]
|
|
232
238
|
}
|
|
233
239
|
```
|
|
234
240
|
|
package/flat/convex.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Convex ESLint config — strict backend best practices.
|
|
3
3
|
*
|
|
4
|
-
* Includes:
|
|
4
|
+
* Includes: 4 @convex-dev official rules, 7 custom convex-rules
|
|
5
5
|
* (structure, naming, query optimization, type safety), and
|
|
6
6
|
* explicit-module-boundary-types for Convex functions.
|
|
7
7
|
*
|
|
@@ -14,23 +14,26 @@
|
|
|
14
14
|
* import { convex } from '@vllnt/eslint-config/convex'
|
|
15
15
|
* export default [...base, ...convex]
|
|
16
16
|
*/
|
|
17
|
-
import tseslint from
|
|
18
|
-
import convexPlugin from
|
|
19
|
-
import convexRulesPlugin from
|
|
17
|
+
import tseslint from "typescript-eslint";
|
|
18
|
+
import convexPlugin from "@convex-dev/eslint-plugin";
|
|
19
|
+
import convexRulesPlugin from "./convex-plugin.js";
|
|
20
20
|
|
|
21
|
-
const CONVEX_SOURCE = [
|
|
21
|
+
const CONVEX_SOURCE = ["**/convex/**/*.ts", "**/src/component/**/*.ts"];
|
|
22
22
|
const CONVEX_EXCLUDED = [
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
"**/convex/_generated/**",
|
|
24
|
+
"**/convex/**/*.test.ts",
|
|
25
|
+
"**/convex/testing/**",
|
|
26
|
+
"**/src/component/_generated/**",
|
|
27
|
+
"**/src/component/**/*.test.ts",
|
|
28
|
+
"**/src/component/testing/**",
|
|
29
|
+
];
|
|
27
30
|
|
|
28
31
|
export const convex = [
|
|
29
32
|
{
|
|
30
33
|
plugins: {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
+
"@typescript-eslint": tseslint.plugin,
|
|
35
|
+
"@convex-dev": convexPlugin,
|
|
36
|
+
"convex-rules": convexRulesPlugin,
|
|
34
37
|
},
|
|
35
38
|
},
|
|
36
39
|
|
|
@@ -38,53 +41,62 @@ export const convex = [
|
|
|
38
41
|
{
|
|
39
42
|
files: CONVEX_SOURCE,
|
|
40
43
|
ignores: CONVEX_EXCLUDED,
|
|
44
|
+
languageOptions: {
|
|
45
|
+
parser: tseslint.parser,
|
|
46
|
+
parserOptions: {
|
|
47
|
+
projectService: true,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
41
50
|
rules: {
|
|
42
|
-
// Official @convex-dev plugin
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
51
|
+
// Official @convex-dev plugin rules retained from version 1.
|
|
52
|
+
"@convex-dev/no-old-registered-function-syntax": "error",
|
|
53
|
+
"@convex-dev/require-args-validator": "error",
|
|
54
|
+
"@convex-dev/explicit-table-ids": "error",
|
|
55
|
+
"@convex-dev/import-wrong-runtime": "error",
|
|
47
56
|
|
|
48
57
|
// Structure
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
58
|
+
"convex-rules/standard-filenames": "error",
|
|
59
|
+
"convex-rules/namespace-separation": "error",
|
|
60
|
+
"convex-rules/snake-case-filenames": "error",
|
|
52
61
|
|
|
53
62
|
// Type safety
|
|
54
|
-
|
|
55
|
-
|
|
63
|
+
"convex-rules/no-bare-v-any": "error",
|
|
64
|
+
"convex-rules/require-returns-validator": "error",
|
|
56
65
|
|
|
57
66
|
// Query optimization
|
|
58
|
-
|
|
59
|
-
|
|
67
|
+
"convex-rules/no-query-in-loop": "error",
|
|
68
|
+
"convex-rules/no-filter-on-query": "error",
|
|
60
69
|
|
|
61
70
|
// Explicit return types on Convex functions
|
|
62
|
-
|
|
71
|
+
"@typescript-eslint/explicit-module-boundary-types": "error",
|
|
63
72
|
},
|
|
64
73
|
},
|
|
65
74
|
|
|
66
75
|
// ── Override: config files (exempt from snake_case + boundary types) ──
|
|
67
76
|
{
|
|
68
77
|
files: [
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
78
|
+
"**/convex/auth.ts",
|
|
79
|
+
"**/convex/auth.config.ts",
|
|
80
|
+
"**/convex/convex.config.ts",
|
|
81
|
+
"**/src/component/auth.ts",
|
|
82
|
+
"**/src/component/auth.config.ts",
|
|
83
|
+
"**/src/component/convex.config.ts",
|
|
72
84
|
],
|
|
73
85
|
rules: {
|
|
74
|
-
|
|
75
|
-
|
|
86
|
+
"convex-rules/snake-case-filenames": "off",
|
|
87
|
+
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
76
88
|
},
|
|
77
89
|
},
|
|
78
90
|
|
|
79
91
|
// ── Override: migration files (relaxed structure rules) ───────────────
|
|
80
92
|
{
|
|
81
|
-
files: [
|
|
93
|
+
files: ["**/convex/migrations/**", "**/src/component/migrations/**"],
|
|
82
94
|
rules: {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
95
|
+
"convex-rules/standard-filenames": "off",
|
|
96
|
+
"convex-rules/namespace-separation": "off",
|
|
97
|
+
"convex-rules/no-query-in-loop": "off",
|
|
86
98
|
},
|
|
87
99
|
},
|
|
88
|
-
]
|
|
100
|
+
];
|
|
89
101
|
|
|
90
|
-
export default convex
|
|
102
|
+
export default convex;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vllnt/eslint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-canary.1bf4fa1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Strict ESLint config for TypeScript projects. All rules enforce error — no warnings.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"engines": {
|
|
21
21
|
"node": ">=20"
|
|
22
22
|
},
|
|
23
|
+
"packageManager": "pnpm@10.28.2",
|
|
23
24
|
"files": [
|
|
24
25
|
"flat"
|
|
25
26
|
],
|
|
@@ -33,29 +34,34 @@
|
|
|
33
34
|
"./boundaries": "./flat/boundaries.js",
|
|
34
35
|
"./package.json": "./package.json"
|
|
35
36
|
},
|
|
37
|
+
"scripts": {
|
|
38
|
+
"test": "pnpm check:agents && node --test tests/smoke.test.js",
|
|
39
|
+
"prepublishOnly": "node --test tests/smoke.test.js",
|
|
40
|
+
"check:agents": "node -e \"const f=require('node:fs');if(!f.existsSync('AGENTS.md')||f.existsSync('CLAUDE.md')||f.existsSync('.claude'))process.exit(1)\""
|
|
41
|
+
},
|
|
36
42
|
"dependencies": {
|
|
37
|
-
"@convex-dev/eslint-plugin": "^
|
|
38
|
-
"@eslint/js": "^9.39.
|
|
39
|
-
"@next/eslint-plugin-next": "^16.
|
|
43
|
+
"@convex-dev/eslint-plugin": "^4.0.0",
|
|
44
|
+
"@eslint/js": "^9.39.5",
|
|
45
|
+
"@next/eslint-plugin-next": "^16.3.3",
|
|
40
46
|
"eslint-config-prettier": "^10.1.8",
|
|
41
47
|
"eslint-plugin-boundaries": "^5.4.0",
|
|
42
48
|
"eslint-plugin-css-modules": "^2.12.0",
|
|
43
|
-
"eslint-plugin-functional": "^
|
|
49
|
+
"eslint-plugin-functional": "^10.0.0",
|
|
44
50
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
45
|
-
"eslint-plugin-perfectionist": "^5.
|
|
46
|
-
"eslint-plugin-prettier": "^5.5.
|
|
51
|
+
"eslint-plugin-perfectionist": "^5.11.0",
|
|
52
|
+
"eslint-plugin-prettier": "^5.5.6",
|
|
47
53
|
"eslint-plugin-react": "^7.37.5",
|
|
48
|
-
"eslint-plugin-react-hooks": "^7.
|
|
54
|
+
"eslint-plugin-react-hooks": "^7.1.1",
|
|
49
55
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
50
|
-
"eslint-plugin-turbo": "^2.
|
|
56
|
+
"eslint-plugin-turbo": "^2.10.12",
|
|
51
57
|
"eslint-plugin-unicorn": "^62.0.0",
|
|
52
58
|
"eslint-plugin-write-good-comments": "^0.2.0",
|
|
53
|
-
"typescript-eslint": "
|
|
59
|
+
"typescript-eslint": "8.68.0"
|
|
54
60
|
},
|
|
55
61
|
"peerDependencies": {
|
|
56
62
|
"eslint": ">=9",
|
|
57
63
|
"prettier": ">=3",
|
|
58
|
-
"typescript": ">=
|
|
64
|
+
"typescript": ">=6.0.2 <6.1"
|
|
59
65
|
},
|
|
60
66
|
"peerDependenciesMeta": {
|
|
61
67
|
"typescript": {
|
|
@@ -67,10 +73,14 @@
|
|
|
67
73
|
"registry": "https://registry.npmjs.org/"
|
|
68
74
|
},
|
|
69
75
|
"devDependencies": {
|
|
70
|
-
"
|
|
71
|
-
"
|
|
76
|
+
"@typescript/native": "npm:typescript@7.0.2",
|
|
77
|
+
"convex": "^1.45.0",
|
|
78
|
+
"eslint": "^9.39.5",
|
|
79
|
+
"typescript": "npm:@typescript/typescript6@^6.0.2"
|
|
72
80
|
},
|
|
73
|
-
"
|
|
74
|
-
"
|
|
81
|
+
"pnpm": {
|
|
82
|
+
"overrides": {
|
|
83
|
+
"handlebars": ">=4.7.9"
|
|
84
|
+
}
|
|
75
85
|
}
|
|
76
|
-
}
|
|
86
|
+
}
|