@codyswann/lisa 6.0.8 → 6.0.9
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/all/copy-overwrite/scripts/lisa-audit.mjs +1 -1
- package/dist/configs/eslint/expo.d.ts.map +1 -1
- package/dist/configs/eslint/expo.js +11 -3
- package/dist/configs/eslint/expo.js.map +1 -1
- package/dist/configs/eslint/slow-expo.d.ts +15 -6
- package/dist/configs/eslint/slow-expo.d.ts.map +1 -1
- package/dist/configs/eslint/slow-expo.js +48 -19
- package/dist/configs/eslint/slow-expo.js.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.js +4 -0
- package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
- package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
- package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
- package/dist/core/upstream-evidence-manifest.js +8 -10
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/dist/migrations/index.d.ts +0 -1
- package/dist/migrations/index.d.ts.map +1 -1
- package/dist/migrations/index.js +0 -3
- package/dist/migrations/index.js.map +1 -1
- package/expo/copy-overwrite/eslint.expo.ts +11 -3
- package/expo/package-lisa/package.lisa.json +2 -1
- package/package.json +8 -7
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-security-audit-handling/SKILL.md +25 -25
- package/plugins/lisa/rules/reference/security-audit-handling.md +9 -1
- package/plugins/lisa/skills/lisa-security-audit-handling/SKILL.md +25 -25
- package/plugins/lisa/skills/lisa-security-audit-handling/agents/openai.yaml +2 -2
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/skills/lisa-security-audit-handling/SKILL.md +25 -25
- package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-agy/plugin.json +1 -1
- package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/rules/reference/security-audit-handling.md +9 -1
- package/plugins/lisa-copilot/skills/lisa-security-audit-handling/SKILL.md +25 -25
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/rules/security-audit-handling-reference.mdc +9 -1
- package/plugins/lisa-cursor/skills/lisa-security-audit-handling/SKILL.md +25 -25
- package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/rules/reference/security-audit-handling.md +9 -1
- package/plugins/lisa-devin/skills/lisa-security-audit-handling/SKILL.md +25 -25
- package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-agy/plugin.json +1 -1
- package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-agy/plugin.json +1 -1
- package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-agy/plugin.json +1 -1
- package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-agy/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-agy/plugin.json +1 -1
- package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-agy/plugin.json +1 -1
- package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/src/base/rules/reference/security-audit-handling.md +9 -1
- package/plugins/src/base/skills/lisa-security-audit-handling/SKILL.md +25 -25
- package/scripts/lisa-audit.mjs +1 -1
- package/typescript/copy-overwrite/audit.ignore.config.json +1 -140
- package/dist/migrations/ensure-audit-ignore-local-exclusions.d.ts +0 -51
- package/dist/migrations/ensure-audit-ignore-local-exclusions.d.ts.map +0 -1
- package/dist/migrations/ensure-audit-ignore-local-exclusions.js +0 -245
- package/dist/migrations/ensure-audit-ignore-local-exclusions.js.map +0 -1
|
@@ -39,7 +39,7 @@ try {
|
|
|
39
39
|
);
|
|
40
40
|
if (!verdict.passed)
|
|
41
41
|
console.log(
|
|
42
|
-
" Next step: follow the lisa-security-audit-handling skill
|
|
42
|
+
" Next step: follow the lisa-security-audit-handling skill, in order: 1) refresh the lockfile within its current range; 2) upgrade the direct dependency that pulls it; 3) add a targeted override to the fixed version; 4) before any code change, evaluate reachability, and if the advisory cannot affect this project add a scoped exclusion with the reason to audit.ignore.local.json (for a dev-only copy, add its lockfile path to `paths`), no human needed; 5) replace or remove the dependency. Never bypass this hook. See https://github.com/CodySwannGT/lisa/blob/main/docs/dependency-audit-exclusions.md"
|
|
43
43
|
);
|
|
44
44
|
process.exitCode = verdict.passed ? 0 : 1;
|
|
45
45
|
} catch (error) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expo.d.ts","sourceRoot":"","sources":["../../../src/configs/eslint/expo.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"expo.d.ts","sourceRoot":"","sources":["../../../src/configs/eslint/expo.ts"],"names":[],"mappings":"AAuBA,OAAO,EAEL,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,sBAAsB,EAItB,cAAc,EAIf,MAAM,iBAAiB,CAAC;AAIzB,OAAO,EACL,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,sBAAsB,EACtB,cAAc,GACf,CAAC;AAwBF;;;;GAIG;AACH,eAAO,MAAM,4BAA4B,yNAK/B,CAAC;AAkBX;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,aAAa,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,EAAE,CAe3D;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,yBAAyB,CACvC,SAAS,EAAE,SAAS,MAAM,EAAE,GAC3B,OAAO,QAAQ,EAAE,MAAM,CAAC,SAAS,CAInC;AAuBD;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,EAC5B,eAAe,EACf,cAA+B,EAC/B,UAA8B,EAC9B,UAAe,EACf,SAAc,GACf,EAAE;IACD,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,UAAU,CAAC,EAAE,OAAO,iBAAiB,CAAC;IACtC;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAC/B,GAAG,OAAO,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,CAoSnC"}
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import oxlint from "eslint-plugin-oxlint";
|
|
17
17
|
import react from "eslint-plugin-react";
|
|
18
|
-
import reactCompiler from "eslint-plugin-react-compiler";
|
|
19
18
|
import { readFileSync } from "fs";
|
|
20
19
|
import { createRequire } from "module";
|
|
21
20
|
import path from "path";
|
|
@@ -183,7 +182,6 @@ export function getExpoConfig({ tsconfigRootDir, ignorePatterns = defaultIgnores
|
|
|
183
182
|
plugins: {
|
|
184
183
|
"component-structure": componentStructure,
|
|
185
184
|
"code-organization": codeOrganization,
|
|
186
|
-
"react-compiler": reactCompiler,
|
|
187
185
|
"ui-standards": uiStandards,
|
|
188
186
|
},
|
|
189
187
|
rules: {
|
|
@@ -231,10 +229,20 @@ export function getExpoConfig({ tsconfigRootDir, ignorePatterns = defaultIgnores
|
|
|
231
229
|
"react-hooks/preserve-manual-memoization": "error",
|
|
232
230
|
"react-hooks/refs": "error",
|
|
233
231
|
"react-hooks/immutability": "error",
|
|
232
|
+
// React Compiler diagnostics, replacing react-compiler/react-compiler
|
|
233
|
+
// (its plugin pins zod 3, unfixed for GHSA-mrhx-c7xc-m3w5).
|
|
234
|
+
"react-hooks/use-memo": "error",
|
|
235
|
+
"react-hooks/globals": "error",
|
|
236
|
+
"react-hooks/error-boundaries": "error",
|
|
237
|
+
"react-hooks/purity": "error",
|
|
238
|
+
"react-hooks/set-state-in-render": "error",
|
|
239
|
+
"react-hooks/config": "error",
|
|
240
|
+
"react-hooks/gating": "error",
|
|
234
241
|
// Slow rules - disabled by default, run via `lint:slow` script
|
|
235
242
|
// @see eslint.slow.config.ts
|
|
236
|
-
"react-compiler/react-compiler": "off",
|
|
237
243
|
"react-hooks/static-components": "off",
|
|
244
|
+
// react-hooks/rule-suppression and react-hooks/void-use-memo stay unset
|
|
245
|
+
// here; they run in lint:slow (getExpoSlowConfig).
|
|
238
246
|
// End Slow rules - disabled by default, run via `lint:slow` script
|
|
239
247
|
// Environment variables - enforce validated env module usage
|
|
240
248
|
// @see .claude/skills/expo-env-config/SKILL.md
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expo.js","sourceRoot":"","sources":["../../../src/configs/eslint/expo.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E;;;;;;;;;;;;;GAaG;AACH,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAC1C,OAAO,KAAK,MAAM,qBAAqB,CAAC;AACxC,OAAO,
|
|
1
|
+
{"version":3,"file":"expo.js","sourceRoot":"","sources":["../../../src/configs/eslint/expo.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E;;;;;;;;;;;;;GAaG;AACH,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAC1C,OAAO,KAAK,MAAM,qBAAqB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AAEpC,yCAAyC;AACzC,OAAO,EACL,gBAAgB,EAChB,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,sBAAsB,EACtB,kBAAkB,EAClB,uBAAuB,EACvB,sBAAsB,EACtB,cAAc,EACd,oBAAoB,EACpB,kBAAkB,EAClB,sBAAsB,GACvB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAEpD,mCAAmC;AACnC,OAAO,EACL,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,sBAAsB,EACtB,cAAc,GACf,CAAC;AAEF,+EAA+E;AAC/E,kFAAkF;AAClF,uFAAuF;AACvF,MAAM,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC/C,MAAM,kBAAkB,GAAG,OAAO,CAChC,aAAa,CACX,IAAI,GAAG,CACL,qDAAqD,EACrD,MAAM,CAAC,IAAI,CAAC,GAAG,CAChB,CACF,CACF,CAAC;AACF,MAAM,WAAW,GAAG,OAAO,CACzB,aAAa,CACX,IAAI,GAAG,CAAC,8CAA8C,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CACzE,CACF,CAAC;AACF,MAAM,UAAU,GAAG,OAAO,CAAC,yBAAyB,CAAC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2B,CAAC;YACpE,KAAK,EAAE;gBACL,sBAAsB,EAAE,KAAK;aAC9B;SACF;QAED,oEAAoE;QACpE,kEAAkE;QAClE;YACE,KAAK,EAAE;gBACL,+BAA+B;gBAC/B,wBAAwB;gBACxB,2BAA2B;aAC5B;YACD,KAAK,EAAE;gBACL,sBAAsB,EAAE,KAAK;aAC9B;SACF;QAED,4DAA4D;QAC5D;YACE,KAAK,EAAE,CAAC,cAAc,EAAE,iBAAiB,EAAE,YAAY,CAAC;YACxD,KAAK,EAAE;gBACL,sBAAsB,EAAE,KAAK;aAC9B;SACF;QAED,2EAA2E;QAC3E,wEAAwE;QACxE,mCAAmC;QACnC,GAAG,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC;QAC/B,GAAG,MAAM,CAAC,OAAO,CAAC,eAAe,CAAC;QAElC,0EAA0E;QAC1E,2EAA2E;QAC3E,2EAA2E;QAC3E,4EAA4E;QAC5E,6BAA6B;QAC7B;YACE,IAAI,EAAE,8BAA8B;YACpC,KAAK,EAAE,MAAM,CAAC,WAAW,CACvB,4BAA4B,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;gBACvC,IAAI;gBACJ,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC;aACvC,CAAC,CACH;SACF;QAED,sEAAsE;QACtE,uEAAuE;QACvE,mEAAmE;QACnE,2BAA2B,EAAE;KACiB,CAAC;AACnD,CAAC;AAED,8EAA8E"}
|
|
@@ -1,12 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The React Compiler checks lint:slow adds, where the old
|
|
3
|
+
* `react-compiler/react-compiler` rule ran. `rule-suppression` and
|
|
4
|
+
* `void-use-memo` restore what that rule reported and #4931 had dropped: an
|
|
5
|
+
* `eslint-disable` of `react-hooks/exhaustive-deps` or
|
|
6
|
+
* `react-hooks/rules-of-hooks` (the compiler's InvalidReact suppression
|
|
7
|
+
* diagnostic), and a `useMemo` whose callback returns nothing.
|
|
8
|
+
*/
|
|
9
|
+
export declare const EXPO_SLOW_REACT_RULES: readonly ["react-hooks/static-components", "react-hooks/rule-suppression", "react-hooks/void-use-memo"];
|
|
1
10
|
/**
|
|
2
11
|
* Creates the slow ESLint configuration for Expo projects: the shared slow
|
|
3
|
-
* rules plus the
|
|
12
|
+
* rules plus the React rules the main Expo config turns off for speed.
|
|
4
13
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
14
|
+
* The React rules moved here from the main Expo lint when lint:slow was
|
|
15
|
+
* introduced (0b58fe96a4). A later rewrite of this module kept only the
|
|
16
|
+
* import rules, so none ran anywhere until they were restored
|
|
17
|
+
* (CodySwannGT/lisa#4507). The plugin is resolved from Lisa's own
|
|
18
|
+
* dependencies, so a project needs no extra install.
|
|
10
19
|
* @param options - Configuration options for the slow rules config
|
|
11
20
|
* @param options.ignorePatterns - Patterns to ignore in addition to built-in ignores
|
|
12
21
|
* @returns ESLint flat config array containing only slow rules
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slow-expo.d.ts","sourceRoot":"","sources":["../../../src/configs/eslint/slow-expo.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"slow-expo.d.ts","sourceRoot":"","sources":["../../../src/configs/eslint/slow-expo.ts"],"names":[],"mappings":"AA6BA;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,yGAIxB,CAAC;AAeX;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,cAAmB,GACpB,GAAE;IACD,cAAc,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAC/B,GAAG,OAAO,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,CAkBxC"}
|
|
@@ -1,32 +1,64 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* ESLint 9 Flat Config - Slow Rules Only (Expo)
|
|
3
3
|
*
|
|
4
|
-
* The shared slow rules plus the
|
|
5
|
-
* off for speed:
|
|
6
|
-
* - react-
|
|
7
|
-
* - react-hooks/
|
|
4
|
+
* The shared slow rules plus the React Compiler checks the main Expo config
|
|
5
|
+
* leaves off for speed (EXPO_SLOW_REACT_RULES):
|
|
6
|
+
* - react-hooks/static-components - Static component optimization checks
|
|
7
|
+
* - react-hooks/rule-suppression - eslint-disable of a React hooks rule
|
|
8
|
+
* - react-hooks/void-use-memo - useMemo callbacks that return nothing
|
|
8
9
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
10
|
+
* The other React Compiler checks ship in eslint-plugin-react-hooks 7 as one
|
|
11
|
+
* rule per compiler diagnostic and run at "error" in the main Expo lint
|
|
12
|
+
* (src/configs/eslint/expo.ts). They replace the single
|
|
13
|
+
* `react-compiler/react-compiler` rule this config used to run from
|
|
14
|
+
* eslint-plugin-react-compiler, whose last release pins zod 3, which gets no
|
|
15
|
+
* fix for GHSA-mrhx-c7xc-m3w5 (CodySwannGT/lisa#4931).
|
|
16
|
+
*
|
|
17
|
+
* A module of its own, so only Expo's lint:slow loads the React plugin.
|
|
18
|
+
* When this lived in ./slow.ts, every stack loaded it, and in an isolated
|
|
11
19
|
* install react-hooks 7 could be given zod-validation-error 3, which lacks
|
|
12
20
|
* the `/v4` entry it imports: every stack's lint:slow crashed on load
|
|
13
21
|
* (CodySwannGT/lisa#4507). The Expo package template forces
|
|
14
|
-
* zod-validation-error 4 for the one stack that does load
|
|
22
|
+
* zod-validation-error 4 for the one stack that does load it.
|
|
15
23
|
* @see https://react.dev/learn/react-compiler
|
|
16
24
|
* @module configs/eslint/slow-expo
|
|
17
25
|
*/
|
|
18
|
-
import reactCompilerPlugin from "eslint-plugin-react-compiler";
|
|
19
26
|
import reactHooksPlugin from "eslint-plugin-react-hooks";
|
|
20
27
|
import { getSlowConfig } from "./slow.js";
|
|
28
|
+
/**
|
|
29
|
+
* The React Compiler checks lint:slow adds, where the old
|
|
30
|
+
* `react-compiler/react-compiler` rule ran. `rule-suppression` and
|
|
31
|
+
* `void-use-memo` restore what that rule reported and #4931 had dropped: an
|
|
32
|
+
* `eslint-disable` of `react-hooks/exhaustive-deps` or
|
|
33
|
+
* `react-hooks/rules-of-hooks` (the compiler's InvalidReact suppression
|
|
34
|
+
* diagnostic), and a `useMemo` whose callback returns nothing.
|
|
35
|
+
*/
|
|
36
|
+
export const EXPO_SLOW_REACT_RULES = [
|
|
37
|
+
"react-hooks/static-components",
|
|
38
|
+
"react-hooks/rule-suppression",
|
|
39
|
+
"react-hooks/void-use-memo",
|
|
40
|
+
];
|
|
41
|
+
/**
|
|
42
|
+
* Compiler options that make `react-hooks/rule-suppression` see eslint-disable
|
|
43
|
+
* comments. react-hooks 7 looks for them only when one of its own
|
|
44
|
+
* exhaustive-memo-dependency or hooks-usage validations is off, because with
|
|
45
|
+
* both on it re-checks what the suppressed rule checked. The old
|
|
46
|
+
* `react-compiler/react-compiler` rule always reported the suppression, so
|
|
47
|
+
* this rule compiles with memo-dependency validation off. The compiler caches
|
|
48
|
+
* per option set, so the other rules keep their full validation.
|
|
49
|
+
*/
|
|
50
|
+
const RULE_SUPPRESSION_OPTIONS = {
|
|
51
|
+
environment: { validateExhaustiveMemoizationDependencies: false },
|
|
52
|
+
};
|
|
21
53
|
/**
|
|
22
54
|
* Creates the slow ESLint configuration for Expo projects: the shared slow
|
|
23
|
-
* rules plus the
|
|
55
|
+
* rules plus the React rules the main Expo config turns off for speed.
|
|
24
56
|
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
57
|
+
* The React rules moved here from the main Expo lint when lint:slow was
|
|
58
|
+
* introduced (0b58fe96a4). A later rewrite of this module kept only the
|
|
59
|
+
* import rules, so none ran anywhere until they were restored
|
|
60
|
+
* (CodySwannGT/lisa#4507). The plugin is resolved from Lisa's own
|
|
61
|
+
* dependencies, so a project needs no extra install.
|
|
30
62
|
* @param options - Configuration options for the slow rules config
|
|
31
63
|
* @param options.ignorePatterns - Patterns to ignore in addition to built-in ignores
|
|
32
64
|
* @returns ESLint flat config array containing only slow rules
|
|
@@ -37,16 +69,13 @@ export function getExpoSlowConfig({ ignorePatterns = [], } = {}) {
|
|
|
37
69
|
{
|
|
38
70
|
files: ["**/*.tsx", "**/*.ts"],
|
|
39
71
|
plugins: {
|
|
40
|
-
"react-compiler": reactCompilerPlugin,
|
|
41
72
|
// Rules only: the package's `configs` shape does not fit ESLint's
|
|
42
73
|
// Plugin type, and this config needs none of its presets.
|
|
43
74
|
"react-hooks": { rules: reactHooksPlugin.rules },
|
|
44
75
|
},
|
|
45
76
|
rules: {
|
|
46
|
-
|
|
47
|
-
"react-
|
|
48
|
-
// Static component optimization (slow)
|
|
49
|
-
"react-hooks/static-components": "error",
|
|
77
|
+
...Object.fromEntries(EXPO_SLOW_REACT_RULES.map(rule => [rule, "error"])),
|
|
78
|
+
"react-hooks/rule-suppression": ["error", RULE_SUPPRESSION_OPTIONS],
|
|
50
79
|
},
|
|
51
80
|
},
|
|
52
81
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slow-expo.js","sourceRoot":"","sources":["../../../src/configs/eslint/slow-expo.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"slow-expo.js","sourceRoot":"","sources":["../../../src/configs/eslint/slow-expo.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,OAAO,gBAAgB,MAAM,2BAA2B,CAAC;AAEzD,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,+BAA+B;IAC/B,8BAA8B;IAC9B,2BAA2B;CACnB,CAAC;AAEX;;;;;;;;GAQG;AACH,MAAM,wBAAwB,GAAG;IAC/B,WAAW,EAAE,EAAE,yCAAyC,EAAE,KAAK,EAAE;CACzD,CAAC;AAEX;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,iBAAiB,CAAC,EAChC,cAAc,GAAG,EAAE,MAGjB,EAAE;IACJ,OAAO;QACL,GAAG,aAAa,CAAC,EAAE,cAAc,EAAE,CAAC;QACpC;YACE,KAAK,EAAE,CAAC,UAAU,EAAE,SAAS,CAAC;YAC9B,OAAO,EAAE;gBACP,kEAAkE;gBAClE,0DAA0D;gBAC1D,aAAa,EAAE,EAAE,KAAK,EAAE,gBAAgB,CAAC,KAAK,EAAE;aACjD;YACD,KAAK,EAAE;gBACL,GAAG,MAAM,CAAC,WAAW,CACnB,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,OAAO,CAAU,CAAC,CAC5D;gBACD,8BAA8B,EAAE,CAAC,OAAO,EAAE,wBAAwB,CAAC;aACpE;SACF;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lisa-owned-hash-ledger.d.ts","sourceRoot":"","sources":["../../src/core/lisa-owned-hash-ledger.ts"],"names":[],"mappings":"AACA,6EAA6E;AAE7E;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAC3C,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"lisa-owned-hash-ledger.d.ts","sourceRoot":"","sources":["../../src/core/lisa-owned-hash-ledger.ts"],"names":[],"mappings":"AACA,6EAA6E;AAE7E;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAC3C,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAk6FjC,CAAC;AAEH;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,+BAA+B,EAAE,QAAQ,CACpD,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAq0FjC,CAAC"}
|
|
@@ -1553,8 +1553,10 @@ export const LISA_OWNED_HASH_LEDGER = Object.freeze({
|
|
|
1553
1553
|
"scripts/lisa-audit.mjs": Object.freeze([
|
|
1554
1554
|
"0c386b25ec8f91de3a0182014b65703a5041e59400360ece40f376937ba53d80",
|
|
1555
1555
|
"2c014491c6a0c3f6e681885c9360c523ec0ff11330518fe6f86bc84c151ff09a",
|
|
1556
|
+
"350075ce70c63bb3e71fba6b22550b25b4672f70d69d39cb1a73db7533247c8e",
|
|
1556
1557
|
"68bc4a842c6f8138d0d8a923809032eba5ef7e39b22949580d1bfdfa74aded8a",
|
|
1557
1558
|
"8ca83977e7df232bf22912df6c6044c9162363a02ef77d5d518e03d73c280543",
|
|
1559
|
+
"9978d1b7f59338f5a53f20900b5370723176731513089d0ee3b8c57931ef6e93",
|
|
1558
1560
|
"e8eb9c90ed906fb9b95bf788dc06fe3fa7ee339c526c62f54fd3556de67e8442",
|
|
1559
1561
|
]),
|
|
1560
1562
|
"scripts/lisa-automation-provenance.mjs": Object.freeze([
|
|
@@ -4523,8 +4525,10 @@ export const LISA_OWNED_HASH_HISTORY_DERIVED = Object.freeze({
|
|
|
4523
4525
|
"scripts/lisa-audit.mjs": Object.freeze([
|
|
4524
4526
|
"0c386b25ec8f91de3a0182014b65703a5041e59400360ece40f376937ba53d80",
|
|
4525
4527
|
"2c014491c6a0c3f6e681885c9360c523ec0ff11330518fe6f86bc84c151ff09a",
|
|
4528
|
+
"350075ce70c63bb3e71fba6b22550b25b4672f70d69d39cb1a73db7533247c8e",
|
|
4526
4529
|
"68bc4a842c6f8138d0d8a923809032eba5ef7e39b22949580d1bfdfa74aded8a",
|
|
4527
4530
|
"8ca83977e7df232bf22912df6c6044c9162363a02ef77d5d518e03d73c280543",
|
|
4531
|
+
"9978d1b7f59338f5a53f20900b5370723176731513089d0ee3b8c57931ef6e93",
|
|
4528
4532
|
"e8eb9c90ed906fb9b95bf788dc06fe3fa7ee339c526c62f54fd3556de67e8442",
|
|
4529
4533
|
]),
|
|
4530
4534
|
"scripts/lisa-automation-provenance.mjs": Object.freeze([
|