@vllnt/eslint-config 1.0.1 → 2.0.0-canary.4063f70
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 +100 -77
- package/flat/convex.js +48 -36
- package/package.json +28 -17
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,102 +26,110 @@ 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
|
-
Each preset is an array — spread it into your flat config.
|
|
46
|
+
Each preset is an array — spread it into your flat config. Base and its React,
|
|
47
|
+
Next.js, and Node.js variants enable `projectService: true` for type-aware linting.
|
|
48
|
+
Convex also enables it; Turbo and Boundaries are opt-in additions, not replacements
|
|
49
|
+
for a language preset.
|
|
42
50
|
|
|
43
51
|
## Presets
|
|
44
52
|
|
|
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)
|
|
53
|
+
| Import | Use case |
|
|
54
|
+
| --------------------------------- | ------------------------------------------------------ |
|
|
55
|
+
| `@vllnt/eslint-config` | Base — TypeScript strict + Prettier + import sorting |
|
|
56
|
+
| `@vllnt/eslint-config/nextjs` | Next.js apps (includes React + a11y + core web vitals) |
|
|
57
|
+
| `@vllnt/eslint-config/react` | React apps without Next.js |
|
|
58
|
+
| `@vllnt/eslint-config/nodejs` | Node.js backends |
|
|
59
|
+
| `@vllnt/eslint-config/convex` | Convex backends (4 official + 7 custom rules) |
|
|
60
|
+
| `@vllnt/eslint-config/turbo` | Turborepo cache rules (opt-in) |
|
|
61
|
+
| `@vllnt/eslint-config/boundaries` | Architecture boundary enforcement (opt-in) |
|
|
54
62
|
|
|
55
63
|
## Composing presets
|
|
56
64
|
|
|
57
65
|
Mix and match — presets are arrays:
|
|
58
66
|
|
|
59
67
|
```js
|
|
60
|
-
import { nodejs } from
|
|
61
|
-
import { turbo } from
|
|
68
|
+
import { nodejs } from "@vllnt/eslint-config/nodejs";
|
|
69
|
+
import { turbo } from "@vllnt/eslint-config/turbo";
|
|
62
70
|
|
|
63
|
-
export default [...nodejs, ...turbo]
|
|
71
|
+
export default [...nodejs, ...turbo];
|
|
64
72
|
```
|
|
65
73
|
|
|
66
74
|
Override any rule by appending a config object:
|
|
67
75
|
|
|
68
76
|
```js
|
|
69
|
-
import { nodejs } from
|
|
77
|
+
import { nodejs } from "@vllnt/eslint-config/nodejs";
|
|
70
78
|
|
|
71
79
|
export default [
|
|
72
80
|
...nodejs,
|
|
73
81
|
{
|
|
74
82
|
rules: {
|
|
75
|
-
|
|
83
|
+
"max-lines-per-function": ["error", { max: 50 }],
|
|
76
84
|
},
|
|
77
85
|
},
|
|
78
|
-
]
|
|
86
|
+
];
|
|
79
87
|
```
|
|
80
88
|
|
|
81
89
|
---
|
|
82
90
|
|
|
83
91
|
## What's included
|
|
84
92
|
|
|
85
|
-
### Base (
|
|
93
|
+
### Base (also included by React, Next.js, and Node.js)
|
|
86
94
|
|
|
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
|
|
95
|
+
| Plugin | What it does |
|
|
96
|
+
| ------------------------------------------------------------------------------------------------- | -------------------------------------------- |
|
|
97
|
+
| [@eslint/js](https://eslint.org/docs/latest/rules/) | ESLint recommended rules |
|
|
98
|
+
| [typescript-eslint](https://typescript-eslint.io/) | `strictTypeChecked` + `stylisticTypeChecked` |
|
|
99
|
+
| [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier) | Prettier as ESLint errors |
|
|
100
|
+
| [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) | Disables conflicting rules |
|
|
101
|
+
| [eslint-plugin-perfectionist](https://perfectionist.dev/) | Import/object/type sorting |
|
|
102
|
+
| [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn) | Modern JS best practices |
|
|
103
|
+
| [eslint-plugin-simple-import-sort](https://github.com/lydell/eslint-plugin-simple-import-sort) | Import ordering |
|
|
104
|
+
| [eslint-plugin-functional](https://github.com/eslint-functional/eslint-plugin-functional) | Functional patterns (no loops, readonly) |
|
|
105
|
+
| [eslint-plugin-write-good-comments](https://github.com/kantord/eslint-plugin-write-good-comments) | Comment quality |
|
|
98
106
|
|
|
99
107
|
Plus: strict naming conventions (camelCase, PascalCase types, T-prefixed generics), no enums (union types enforced via AST selector).
|
|
100
108
|
|
|
101
109
|
### React additions
|
|
102
110
|
|
|
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
|
|
111
|
+
| Plugin | What it does |
|
|
112
|
+
| ------------------------------------------------------------------------------- | ------------------------- |
|
|
113
|
+
| [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) | Recommended + jsx-runtime |
|
|
114
|
+
| [eslint-plugin-react-hooks](https://react.dev/reference/rules/rules-of-hooks) | Rules of hooks |
|
|
115
|
+
| [eslint-plugin-jsx-a11y](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y) | Accessibility |
|
|
116
|
+
| [eslint-plugin-css-modules](https://github.com/atfzl/eslint-plugin-css-modules) | CSS module validation |
|
|
109
117
|
|
|
110
118
|
### Next.js additions
|
|
111
119
|
|
|
112
120
|
Everything in React, plus:
|
|
113
121
|
|
|
114
|
-
| Plugin
|
|
115
|
-
|
|
122
|
+
| Plugin | What it does |
|
|
123
|
+
| ----------------------------------------------------------------------------------- | ------------------------------------------- |
|
|
116
124
|
| [@next/eslint-plugin-next](https://nextjs.org/docs/app/api-reference/config/eslint) | Recommended + core web vitals (all `error`) |
|
|
117
125
|
|
|
118
126
|
Route handler method restrictions, page/layout `max-lines-per-function` override.
|
|
119
127
|
|
|
120
128
|
### Opt-in
|
|
121
129
|
|
|
122
|
-
| Preset
|
|
123
|
-
|
|
124
|
-
| Turbo
|
|
130
|
+
| Preset | Plugin |
|
|
131
|
+
| ---------- | ----------------------------------------------------------------------------------------------------------- |
|
|
132
|
+
| Turbo | [eslint-plugin-turbo](https://turbo.build/repo/docs/reference/eslint-plugin-turbo) cache rules |
|
|
125
133
|
| Boundaries | [eslint-plugin-boundaries](https://github.com/javierbrea/eslint-plugin-boundaries) architecture enforcement |
|
|
126
134
|
|
|
127
135
|
---
|
|
@@ -134,51 +142,52 @@ The Convex preset enforces backend best practices with **4 official rules** + **
|
|
|
134
142
|
|
|
135
143
|
```js
|
|
136
144
|
// Standalone
|
|
137
|
-
import { convex } from
|
|
145
|
+
import { convex } from "@vllnt/eslint-config/convex";
|
|
138
146
|
|
|
139
|
-
export default [...convex]
|
|
147
|
+
export default [...convex];
|
|
140
148
|
```
|
|
141
149
|
|
|
142
150
|
```js
|
|
143
151
|
// With base (recommended)
|
|
144
|
-
import { base } from
|
|
145
|
-
import { convex } from
|
|
152
|
+
import { base } from "@vllnt/eslint-config";
|
|
153
|
+
import { convex } from "@vllnt/eslint-config/convex";
|
|
146
154
|
|
|
147
|
-
export default [...base, ...convex]
|
|
155
|
+
export default [...base, ...convex];
|
|
148
156
|
```
|
|
149
157
|
|
|
150
158
|
### Official rules (`@convex-dev`)
|
|
151
159
|
|
|
152
|
-
| Rule
|
|
153
|
-
|
|
154
|
-
| `no-old-registered-function-syntax` | Deprecated function syntax
|
|
155
|
-
| `require-args-validator`
|
|
156
|
-
| `explicit-table-ids`
|
|
157
|
-
| `import-wrong-runtime`
|
|
160
|
+
| Rule | Catches |
|
|
161
|
+
| ----------------------------------- | ---------------------------------------------- |
|
|
162
|
+
| `no-old-registered-function-syntax` | Deprecated function syntax |
|
|
163
|
+
| `require-args-validator` | Missing `args` validator |
|
|
164
|
+
| `explicit-table-ids` | Implicit table ID types |
|
|
165
|
+
| `import-wrong-runtime` | Wrong runtime imports (Node in Convex runtime) |
|
|
158
166
|
|
|
159
167
|
### Custom rules (`convex-rules`)
|
|
160
168
|
|
|
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`
|
|
169
|
+
| Rule | Catches |
|
|
170
|
+
| --------------------------- | ------------------------------------------------------------ |
|
|
171
|
+
| `standard-filenames` | Factories outside `queries.ts`, `mutations.ts`, `actions.ts` |
|
|
172
|
+
| `namespace-separation` | `query()` in `mutations.ts`, `mutation()` in `queries.ts` |
|
|
173
|
+
| `snake-case-filenames` | Hyphens in `convex/` filenames (must be `snake_case`) |
|
|
174
|
+
| `no-bare-v-any` | `v.any()` outside `validators.ts` |
|
|
175
|
+
| `require-returns-validator` | Missing `returns` validator in factory config |
|
|
176
|
+
| `no-query-in-loop` | N+1 queries (`ctx.db.query`/`get`/`runQuery` inside loops) |
|
|
177
|
+
| `no-filter-on-query` | `.filter()` on query chains (use `.withIndex()`) |
|
|
170
178
|
|
|
171
179
|
### Auto-applied overrides
|
|
172
180
|
|
|
173
181
|
- **Config files** (`auth.ts`, `auth.config.ts`, `convex.config.ts`) — exempt from `snake-case-filenames` and `explicit-module-boundary-types`
|
|
174
182
|
- **Migration files** (`convex/migrations/**`) — exempt from `standard-filenames`, `namespace-separation`, `no-query-in-loop`
|
|
175
183
|
- **Generated/test files** (`convex/_generated/**`, `*.test.ts`, `convex/testing/**`) — excluded entirely
|
|
184
|
+
- Sandboxed component sources under `src/component/**` receive the same rules and exclusions.
|
|
176
185
|
|
|
177
186
|
### Project-specific overrides
|
|
178
187
|
|
|
179
188
|
```js
|
|
180
|
-
import { base } from
|
|
181
|
-
import { convex } from
|
|
189
|
+
import { base } from "@vllnt/eslint-config";
|
|
190
|
+
import { convex } from "@vllnt/eslint-config/convex";
|
|
182
191
|
|
|
183
192
|
export default [
|
|
184
193
|
...base,
|
|
@@ -186,10 +195,10 @@ export default [
|
|
|
186
195
|
|
|
187
196
|
// Exempt "use node" action files from import-wrong-runtime
|
|
188
197
|
{
|
|
189
|
-
files: [
|
|
190
|
-
rules: {
|
|
198
|
+
files: ["convex/agents/actions.ts"],
|
|
199
|
+
rules: { "@convex-dev/import-wrong-runtime": "off" },
|
|
191
200
|
},
|
|
192
|
-
]
|
|
201
|
+
];
|
|
193
202
|
```
|
|
194
203
|
|
|
195
204
|
### Enforced file structure
|
|
@@ -213,11 +222,14 @@ convex/
|
|
|
213
222
|
|
|
214
223
|
## Peer dependencies
|
|
215
224
|
|
|
216
|
-
| Package
|
|
217
|
-
|
|
218
|
-
| `eslint` >= 9
|
|
219
|
-
| `prettier` >= 3
|
|
220
|
-
| `typescript` >=
|
|
225
|
+
| Package | Required |
|
|
226
|
+
| ------------------------------- | ---------------------------------------------- |
|
|
227
|
+
| `eslint` >= 9 | Yes |
|
|
228
|
+
| `prettier` >= 3 | Yes |
|
|
229
|
+
| `typescript` >= 6.0.2 and < 6.1 | Optional JavaScript API for type-aware linting |
|
|
230
|
+
|
|
231
|
+
Install `@typescript/native` as `npm:typescript@^7.0.2` when using TypeScript 7
|
|
232
|
+
as the build compiler.
|
|
221
233
|
|
|
222
234
|
## VS Code
|
|
223
235
|
|
|
@@ -225,13 +237,24 @@ Add to `.vscode/settings.json` for monorepo support:
|
|
|
225
237
|
|
|
226
238
|
```json
|
|
227
239
|
{
|
|
228
|
-
"eslint.workingDirectories": [
|
|
229
|
-
"./apps/your-app",
|
|
230
|
-
"./packages/your-package"
|
|
231
|
-
]
|
|
240
|
+
"eslint.workingDirectories": ["./apps/your-app", "./packages/your-package"]
|
|
232
241
|
}
|
|
233
242
|
```
|
|
234
243
|
|
|
244
|
+
## Documentation and support
|
|
245
|
+
|
|
246
|
+
- [LLM index](llms.txt) · [Changelog](CHANGELOG.md)
|
|
247
|
+
- [Contributing](CONTRIBUTING.md) · [Issues](https://github.com/vllnt/eslint-config/issues)
|
|
248
|
+
- [Security policy and private vulnerability reporting](SECURITY.md)
|
|
249
|
+
|
|
250
|
+
npm `latest` is stable `2.0.0` at this audit. `@canary` selects moving prerelease
|
|
251
|
+
builds; pin and test them before adoption.
|
|
252
|
+
|
|
253
|
+
## Author
|
|
254
|
+
|
|
255
|
+
Built by [bntvllnt](https://github.com/bntvllnt) · [bntvllnt.com](https://bntvllnt.com).
|
|
256
|
+
Part of [@vllnt](https://github.com/vllnt). [Sponsor the work](https://github.com/sponsors/bntvllnt).
|
|
257
|
+
|
|
235
258
|
## License
|
|
236
259
|
|
|
237
260
|
[MIT](LICENSE)
|
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.4063f70",
|
|
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": "^5.0.0",
|
|
44
|
+
"@eslint/js": "^9.39.5",
|
|
45
|
+
"@next/eslint-plugin-next": "^16.4.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.1",
|
|
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.13.0",
|
|
52
|
+
"eslint-plugin-prettier": "^5.5.7",
|
|
47
53
|
"eslint-plugin-react": "^7.37.5",
|
|
48
|
-
"eslint-plugin-react-hooks": "^7.
|
|
49
|
-
"eslint-plugin-simple-import-sort": "^
|
|
50
|
-
"eslint-plugin-turbo": "^2.
|
|
54
|
+
"eslint-plugin-react-hooks": "^7.1.1",
|
|
55
|
+
"eslint-plugin-simple-import-sort": "^14.0.0",
|
|
56
|
+
"eslint-plugin-turbo": "^2.11.10",
|
|
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.72.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,15 @@
|
|
|
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.48.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
|
+
"deepmerge-ts@<8.0.0": "^8.0.2"
|
|
85
|
+
}
|
|
75
86
|
}
|
|
76
|
-
}
|
|
87
|
+
}
|