@vvedantb/config 0.16.1 → 0.18.0
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/CHANGELOG.md +12 -0
- package/README.md +5 -1
- package/oxlint/base.json +28 -0
- package/oxlint/plugin.mjs +8 -0
- package/oxlint/rules/convex-no-collect-in-query.mjs +26 -0
- package/oxlint/rules/convex-no-filter-in-query.mjs +38 -0
- package/oxlint/rules/convex-no-time-or-random-in-queries.mjs +81 -0
- package/oxlint/rules/no-tab-search-param.mjs +63 -0
- package/oxlint/utils.mjs +46 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.18.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`705b003`](https://github.com/vvedantb/v/commit/705b0035c037c7aa58cae30a7356778f1bee2daf) Thanks [@vvedantb](https://github.com/vvedantb)! - Raise the three Convex query lint rules (collect, filter, time or random in queries) from warn to error.
|
|
8
|
+
|
|
9
|
+
## 0.17.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#128](https://github.com/vvedantb/v/pull/128) [`17ace90`](https://github.com/vvedantb/v/commit/17ace9043b578d2fb39cd821e2fe3e35c4e9d37a) Thanks [@vvedantb](https://github.com/vvedantb)! - Add oxlint rules `convex-no-collect-in-query`, `convex-no-filter-in-query`, `convex-no-time-or-random-in-queries` and `no-tab-search-param`. The base config enables the Convex rules as warnings in `convex` and `backend` folders, enables the tab rule everywhere, and bans `self.localStorage` and `self.sessionStorage`.
|
|
14
|
+
|
|
3
15
|
## 0.16.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -57,7 +57,7 @@ The package ships two oxlint JS plugins. Both load with oxlint 1.79 or later (th
|
|
|
57
57
|
|
|
58
58
|
#### `vvedantb` plugin: `@vvedantb/config/oxlint/plugin.mjs`
|
|
59
59
|
|
|
60
|
-
|
|
60
|
+
Seventeen rules, with no app prefix:
|
|
61
61
|
|
|
62
62
|
| Rule | Flags |
|
|
63
63
|
| --- | --- |
|
|
@@ -68,6 +68,10 @@ Thirteen rules, with no app prefix:
|
|
|
68
68
|
| `no-is-record` | Any identifier named `isRecord`. An `unknown` leaked in; type the data at its entry point instead. |
|
|
69
69
|
| `no-settings-description` | A `description` prop on `SettingsSection`, `SettingsToggleRow` or `LabeledSwitchRow`. Opt in only where an app wants a hard ban; the default guidance is the `## UI copy` section, which allows a description where the user needs one. `{ "components": ["ProfileCard"] }` adds component names. |
|
|
70
70
|
| `no-comments` | A comment that is not a lint or tool directive, a licence header, JSDoc before an `export`, a JSDoc `@type` annotation or a comment with an `http(s)://` link. `oxlint --fix` removes it. Skips `.d.ts` files and `.claude` and `.agents` folders. |
|
|
71
|
+
| `convex-no-collect-in-query` | `.collect()` on a `db.query(...)` chain. Use `.take(n)` or `.paginate()`. Syntactic port of `@convex-dev/eslint-plugin`, which needs type information. Warning in `convex` and `backend` folders, off in tests. |
|
|
72
|
+
| `convex-no-filter-in-query` | `.filter()` on a `db.query(...)` chain, also through a variable. Use `.withIndex()`. Warning in `convex` and `backend` folders, off in tests. |
|
|
73
|
+
| `convex-no-time-or-random-in-queries` | `new Date()`, `Date.now()`, `performance.now()`, `Math.random()` and `crypto.randomUUID()` inside a Convex query handler. Helpers that the handler calls are not followed. |
|
|
74
|
+
| `no-tab-search-param` | A tab in the query string: `searchParams.get("tab")`, `useQueryState("tab")`, `"?tab=x"` strings. Use a nested route such as `/edit-details/specialisms`. |
|
|
71
75
|
| `no-ts-nocheck` | `@ts-nocheck` and `@ts-ignore` comments. `@ts-expect-error` with a reason stays allowed. |
|
|
72
76
|
| `no-conditional-tests` | An `expect(...)` call inside an `if`, `?:`, `&&`/`\|\|` or `switch` case in a test file. |
|
|
73
77
|
| `no-inline-object-type-assertion` | `x as { … }` and `x as Record<string, unknown>`. |
|
package/oxlint/base.json
CHANGED
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
"no-effect/no-external-store-subscription": "error",
|
|
42
42
|
"no-effect/no-initialize-state": "error",
|
|
43
43
|
"vvedantb/no-comments": "error",
|
|
44
|
+
"vvedantb/no-tab-search-param": "error",
|
|
44
45
|
"no-console": ["error", { "allow": ["warn", "error", "info"] }],
|
|
45
46
|
"no-restricted-properties": [
|
|
46
47
|
"error",
|
|
@@ -54,6 +55,16 @@
|
|
|
54
55
|
"property": "sessionStorage",
|
|
55
56
|
"message": "Use useSessionStorage from usehooks-ts."
|
|
56
57
|
},
|
|
58
|
+
{
|
|
59
|
+
"object": "self",
|
|
60
|
+
"property": "localStorage",
|
|
61
|
+
"message": "Use useLocalStorage from usehooks-ts."
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"object": "self",
|
|
65
|
+
"property": "sessionStorage",
|
|
66
|
+
"message": "Use useSessionStorage from usehooks-ts."
|
|
67
|
+
},
|
|
57
68
|
{
|
|
58
69
|
"object": "globalThis",
|
|
59
70
|
"property": "localStorage",
|
|
@@ -86,6 +97,23 @@
|
|
|
86
97
|
]
|
|
87
98
|
},
|
|
88
99
|
"overrides": [
|
|
100
|
+
{
|
|
101
|
+
"files": ["**/convex/**", "**/backend/**"],
|
|
102
|
+
"rules": {
|
|
103
|
+
"vvedantb/convex-no-collect-in-query": "error",
|
|
104
|
+
"vvedantb/convex-no-filter-in-query": "error",
|
|
105
|
+
"vvedantb/convex-no-time-or-random-in-queries": "error"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"files": ["**/*.test.{ts,tsx,mjs}", "**/tests/**"],
|
|
110
|
+
"rules": {
|
|
111
|
+
"vvedantb/convex-no-collect-in-query": "off",
|
|
112
|
+
"vvedantb/convex-no-filter-in-query": "off",
|
|
113
|
+
"vvedantb/convex-no-time-or-random-in-queries": "off",
|
|
114
|
+
"vvedantb/no-tab-search-param": "off"
|
|
115
|
+
}
|
|
116
|
+
},
|
|
89
117
|
{
|
|
90
118
|
"files": [
|
|
91
119
|
"**/*.test.{ts,tsx}",
|
package/oxlint/plugin.mjs
CHANGED
|
@@ -9,12 +9,20 @@ import noSettingsDescription from "./rules/no-settings-description.mjs";
|
|
|
9
9
|
import noTsNocheck from "./rules/no-ts-nocheck.mjs";
|
|
10
10
|
import noUnknownShapeProbing from "./rules/no-unknown-shape-probing.mjs";
|
|
11
11
|
import preferSchemaInferredTypes from "./rules/prefer-schema-inferred-types.mjs";
|
|
12
|
+
import convexNoCollectInQuery from "./rules/convex-no-collect-in-query.mjs";
|
|
13
|
+
import convexNoFilterInQuery from "./rules/convex-no-filter-in-query.mjs";
|
|
14
|
+
import convexNoTimeOrRandomInQueries from "./rules/convex-no-time-or-random-in-queries.mjs";
|
|
15
|
+
import noTabSearchParam from "./rules/no-tab-search-param.mjs";
|
|
12
16
|
import noSourceTextInTests from "./rules/no-source-text-in-tests.mjs";
|
|
13
17
|
import noValueBlockInTry from "./rules/no-value-block-in-try.mjs";
|
|
14
18
|
|
|
15
19
|
export default {
|
|
16
20
|
meta: { name: "vvedantb" },
|
|
17
21
|
rules: {
|
|
22
|
+
"convex-no-collect-in-query": convexNoCollectInQuery,
|
|
23
|
+
"convex-no-filter-in-query": convexNoFilterInQuery,
|
|
24
|
+
"convex-no-time-or-random-in-queries": convexNoTimeOrRandomInQueries,
|
|
25
|
+
"no-tab-search-param": noTabSearchParam,
|
|
18
26
|
"no-comments": noComments,
|
|
19
27
|
"no-conditional-tests": noConditionalTests,
|
|
20
28
|
"no-double-cast": noDoubleCast,
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { isDbQueryChain, isIdentifier, toPosix } from "../utils.mjs";
|
|
2
|
+
|
|
3
|
+
const message =
|
|
4
|
+
"Avoid `.collect()` on a Convex query: it fails once the table grows past the read limits. " +
|
|
5
|
+
"Use `.take(n)` or `.paginate()`. If an index bounds the result, disable this line with `oxlint-disable-next-line`.";
|
|
6
|
+
|
|
7
|
+
/** Flags `.collect()` on a `db.query(...)` chain. Syntactic port of `@convex-dev/eslint-plugin` `no-collect-in-query`. */
|
|
8
|
+
export default {
|
|
9
|
+
meta: { type: "suggestion", docs: { description: message } },
|
|
10
|
+
create(context) {
|
|
11
|
+
if (toPosix(context.filename).includes("/_generated/")) return {};
|
|
12
|
+
return {
|
|
13
|
+
CallExpression(node) {
|
|
14
|
+
const callee = node.callee;
|
|
15
|
+
if (
|
|
16
|
+
callee.type === "MemberExpression" &&
|
|
17
|
+
!callee.computed &&
|
|
18
|
+
isIdentifier(callee.property, "collect") &&
|
|
19
|
+
isDbQueryChain(callee.object)
|
|
20
|
+
) {
|
|
21
|
+
context.report({ node: callee.property, message });
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
},
|
|
26
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { isDbQueryChain, isIdentifier, toPosix, unwrapExpression } from "../utils.mjs";
|
|
2
|
+
|
|
3
|
+
const message =
|
|
4
|
+
"Avoid `.filter()` on a Convex query: it scans every row it reads. " +
|
|
5
|
+
"Use `.withIndex()`, or filter the array after `.take()` or `.collect()`.";
|
|
6
|
+
|
|
7
|
+
/** Flags `.filter()` on a `db.query(...)` chain, also through a `const q = db.query(...)` variable. Syntactic port of `@convex-dev/eslint-plugin` `no-filter-in-query`. */
|
|
8
|
+
export default {
|
|
9
|
+
meta: { type: "suggestion", docs: { description: message } },
|
|
10
|
+
create(context) {
|
|
11
|
+
if (toPosix(context.filename).includes("/_generated/")) return {};
|
|
12
|
+
const queryVariables = new Set();
|
|
13
|
+
return {
|
|
14
|
+
VariableDeclarator(node) {
|
|
15
|
+
if (isIdentifier(node.id) && node.init && isDbQueryChain(node.init)) {
|
|
16
|
+
queryVariables.add(node.id.name);
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
CallExpression(node) {
|
|
20
|
+
const callee = node.callee;
|
|
21
|
+
if (
|
|
22
|
+
callee.type !== "MemberExpression" ||
|
|
23
|
+
callee.computed ||
|
|
24
|
+
!isIdentifier(callee.property, "filter")
|
|
25
|
+
) {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
const receiver = unwrapExpression(callee.object);
|
|
29
|
+
if (
|
|
30
|
+
isDbQueryChain(receiver) ||
|
|
31
|
+
(isIdentifier(receiver) && queryVariables.has(receiver.name))
|
|
32
|
+
) {
|
|
33
|
+
context.report({ node: callee.property, message });
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
},
|
|
38
|
+
};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { isIdentifier, toPosix, unwrapExpression } from "../utils.mjs";
|
|
2
|
+
|
|
3
|
+
const timeMessage =
|
|
4
|
+
"A Convex query reads the clock here. Query results are cached, so the value goes stale, and reading the clock invalidates the cache more often than needed. " +
|
|
5
|
+
"Pass the time in as an argument, or move this to a mutation or action.";
|
|
6
|
+
const randomMessage =
|
|
7
|
+
"A Convex query generates a random value here. Query results are cached, so every caller gets the same value until the cache invalidates. Use a mutation instead.";
|
|
8
|
+
|
|
9
|
+
const QUERY_NAME = /query$/i;
|
|
10
|
+
const RANDOM_SOURCES = new Set(["Math.random", "crypto.randomUUID", "crypto.getRandomValues"]);
|
|
11
|
+
const TIME_SOURCES = new Set(["Date", "Date.now", "performance.now"]);
|
|
12
|
+
|
|
13
|
+
function staticPath(node) {
|
|
14
|
+
const expression = unwrapExpression(node);
|
|
15
|
+
if (isIdentifier(expression)) return [expression.name];
|
|
16
|
+
if (
|
|
17
|
+
expression?.type === "MemberExpression" &&
|
|
18
|
+
!expression.computed &&
|
|
19
|
+
isIdentifier(expression.property)
|
|
20
|
+
) {
|
|
21
|
+
const base = staticPath(expression.object);
|
|
22
|
+
return base ? [...base, expression.property.name] : null;
|
|
23
|
+
}
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function classify(node) {
|
|
28
|
+
const path = staticPath(node.callee);
|
|
29
|
+
if (!path) return null;
|
|
30
|
+
const joined = (path[0] === "globalThis" ? path.slice(1) : path).join(".");
|
|
31
|
+
if (node.type === "NewExpression") {
|
|
32
|
+
return joined === "Date" && node.arguments.length === 0 ? timeMessage : null;
|
|
33
|
+
}
|
|
34
|
+
if (TIME_SOURCES.has(joined)) return timeMessage;
|
|
35
|
+
return RANDOM_SOURCES.has(joined) ? randomMessage : null;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/** Flags clock and random reads inside Convex query handlers. Syntactic port of `@convex-dev/eslint-plugin` `no-time-or-random-in-queries`; it checks the handler body, not the helpers it calls. */
|
|
39
|
+
export default {
|
|
40
|
+
meta: { type: "problem", docs: { description: timeMessage } },
|
|
41
|
+
create(context) {
|
|
42
|
+
if (toPosix(context.filename).includes("/_generated/")) return {};
|
|
43
|
+
const handlers = new Set();
|
|
44
|
+
let depth = 0;
|
|
45
|
+
const enterFunction = (node) => {
|
|
46
|
+
if (handlers.has(node)) depth += 1;
|
|
47
|
+
};
|
|
48
|
+
const exitFunction = (node) => {
|
|
49
|
+
if (handlers.has(node)) depth -= 1;
|
|
50
|
+
};
|
|
51
|
+
const report = (node) => {
|
|
52
|
+
if (depth === 0) return;
|
|
53
|
+
const message = classify(node);
|
|
54
|
+
if (message) context.report({ node, message });
|
|
55
|
+
};
|
|
56
|
+
return {
|
|
57
|
+
CallExpression(node) {
|
|
58
|
+
const callee = unwrapExpression(node.callee);
|
|
59
|
+
if (isIdentifier(callee) && QUERY_NAME.test(callee.name)) {
|
|
60
|
+
const config = unwrapExpression(node.arguments[0]);
|
|
61
|
+
if (config?.type === "ObjectExpression") {
|
|
62
|
+
for (const property of config.properties) {
|
|
63
|
+
if (property.type === "Property" && isIdentifier(property.key, "handler")) {
|
|
64
|
+
const handler = unwrapExpression(property.value);
|
|
65
|
+
if (handler) handlers.add(handler);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
} else if (config) {
|
|
69
|
+
handlers.add(config);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
report(node);
|
|
73
|
+
},
|
|
74
|
+
NewExpression: report,
|
|
75
|
+
FunctionExpression: enterFunction,
|
|
76
|
+
"FunctionExpression:exit": exitFunction,
|
|
77
|
+
ArrowFunctionExpression: enterFunction,
|
|
78
|
+
"ArrowFunctionExpression:exit": exitFunction,
|
|
79
|
+
};
|
|
80
|
+
},
|
|
81
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { isIdentifier } from "../utils.mjs";
|
|
2
|
+
|
|
3
|
+
const message =
|
|
4
|
+
"Do not put the tab in the query string (`?tab=x`). Give each tab a nested route, for example `/edit-details/specialisms`, so the tab has its own URL, back button and deep link.";
|
|
5
|
+
|
|
6
|
+
const PARAM_METHODS = new Set(["get", "getAll", "has", "set", "delete", "append"]);
|
|
7
|
+
const PARAM_OBJECT = /search|params|query/i;
|
|
8
|
+
const TAB_IN_URL = /[?&]tab=/;
|
|
9
|
+
|
|
10
|
+
function receiverName(node) {
|
|
11
|
+
if (isIdentifier(node)) return node.name;
|
|
12
|
+
if (node?.type === "MemberExpression" && !node.computed && isIdentifier(node.property)) {
|
|
13
|
+
return node.property.name;
|
|
14
|
+
}
|
|
15
|
+
return null;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
function isTabLiteral(node) {
|
|
19
|
+
return node?.type === "Literal" && node.value === "tab";
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/** Flags `?tab=` URLs: `searchParams.get("tab")`, `useQueryState("tab")`, `"...?tab=x"` strings. */
|
|
23
|
+
export default {
|
|
24
|
+
meta: { type: "suggestion", docs: { description: message } },
|
|
25
|
+
create(context) {
|
|
26
|
+
return {
|
|
27
|
+
CallExpression(node) {
|
|
28
|
+
const callee = node.callee;
|
|
29
|
+
if (callee.type === "MemberExpression" && !callee.computed) {
|
|
30
|
+
const name = receiverName(callee.object);
|
|
31
|
+
if (
|
|
32
|
+
name &&
|
|
33
|
+
PARAM_OBJECT.test(name) &&
|
|
34
|
+
isIdentifier(callee.property) &&
|
|
35
|
+
PARAM_METHODS.has(callee.property.name) &&
|
|
36
|
+
isTabLiteral(node.arguments[0])
|
|
37
|
+
) {
|
|
38
|
+
context.report({ node, message });
|
|
39
|
+
}
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
if (isIdentifier(callee, "useQueryState") && isTabLiteral(node.arguments[0])) {
|
|
43
|
+
context.report({ node, message });
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
MemberExpression(node) {
|
|
47
|
+
if (node.computed || !isIdentifier(node.property, "tab")) return;
|
|
48
|
+
const name = receiverName(node.object);
|
|
49
|
+
if (name && /^(?:searchParams|search)$/.test(name)) {
|
|
50
|
+
context.report({ node, message });
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
Literal(node) {
|
|
54
|
+
if (typeof node.value === "string" && TAB_IN_URL.test(node.value)) {
|
|
55
|
+
context.report({ node, message });
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
TemplateElement(node) {
|
|
59
|
+
if (TAB_IN_URL.test(node.value.raw)) context.report({ node, message });
|
|
60
|
+
},
|
|
61
|
+
};
|
|
62
|
+
},
|
|
63
|
+
};
|
package/oxlint/utils.mjs
CHANGED
|
@@ -7,3 +7,49 @@ export function isIdentifier(node, name) {
|
|
|
7
7
|
export function toPosix(filename) {
|
|
8
8
|
return (filename ?? "").replace(/\\/g, "/");
|
|
9
9
|
}
|
|
10
|
+
|
|
11
|
+
const TERMINAL_QUERY_METHODS = new Set(["collect", "take", "first", "unique", "paginate"]);
|
|
12
|
+
|
|
13
|
+
const WRAPPER_TYPES = new Set([
|
|
14
|
+
"ChainExpression",
|
|
15
|
+
"AwaitExpression",
|
|
16
|
+
"TSNonNullExpression",
|
|
17
|
+
"TSAsExpression",
|
|
18
|
+
"TSSatisfiesExpression",
|
|
19
|
+
"TSTypeAssertion",
|
|
20
|
+
"TSInstantiationExpression",
|
|
21
|
+
"ParenthesizedExpression",
|
|
22
|
+
]);
|
|
23
|
+
|
|
24
|
+
/** Strips `?.`, `await`, `!`, `as`, `satisfies`, `<T>` and parentheses around an expression. */
|
|
25
|
+
export function unwrapExpression(node) {
|
|
26
|
+
let current = node;
|
|
27
|
+
while (current && WRAPPER_TYPES.has(current.type)) {
|
|
28
|
+
current = current.type === "AwaitExpression" ? current.argument : current.expression;
|
|
29
|
+
}
|
|
30
|
+
return current;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
function isDbObject(node) {
|
|
34
|
+
const object = unwrapExpression(node);
|
|
35
|
+
if (isIdentifier(object, "db")) return true;
|
|
36
|
+
return (
|
|
37
|
+
object?.type === "MemberExpression" && !object.computed && isIdentifier(object.property, "db")
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/** True for `db.query(...)` or `ctx.db.query(...)` plus chained builder calls such as `.withIndex()` and `.order()`. */
|
|
42
|
+
export function isDbQueryChain(node) {
|
|
43
|
+
const call = unwrapExpression(node);
|
|
44
|
+
if (call?.type !== "CallExpression" || call.callee.type !== "MemberExpression") return false;
|
|
45
|
+
const { object, property } = call.callee;
|
|
46
|
+
if (!isIdentifier(property) || TERMINAL_QUERY_METHODS.has(property.name)) return false;
|
|
47
|
+
if (property.name !== "query") return isDbQueryChain(object);
|
|
48
|
+
const base = unwrapExpression(object);
|
|
49
|
+
if (isDbObject(base)) return true;
|
|
50
|
+
return (
|
|
51
|
+
base?.type === "MemberExpression" &&
|
|
52
|
+
isIdentifier(base.property, "privateSystem") &&
|
|
53
|
+
isDbObject(base.object)
|
|
54
|
+
);
|
|
55
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vvedantb/config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Shared tsconfig bases, oxlint base, Vite, Vitest, Babel and Metro presets, a WXT preset and host-permission helper for Chrome extensions, pinned tool versions, a sync CLI for Claude commands, CLAUDE.md, Cursor environment and Convex tsconfig, a packaged Electron app.asar module check, a shared header and footer check, a no-source-text-in-tests check, a no-comments check with a ratchet baseline, shared oxlint JS plugins and a CLI that adds an extension to Clerk's allowed origins.",
|
|
6
6
|
"type": "module",
|