@codyswann/lisa 5.14.3 → 6.0.1
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/cdk/copy-overwrite/eslint.cdk.ts +7 -161
- package/cdk/copy-overwrite/tsconfig.eslint.json +5 -1
- package/dist/configs/jest/base.d.ts +2 -2
- package/dist/configs/jest/index.d.ts +5 -6
- package/dist/configs/jest/index.d.ts.map +1 -1
- package/dist/configs/jest/index.js +5 -6
- package/dist/configs/jest/index.js.map +1 -1
- package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
- package/dist/core/nightly-e2e-guard-behavior-certificate.js.map +1 -1
- package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
- package/dist/core/upstream-evidence-manifest.js +33 -18
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/expo/copy-overwrite/eslint.expo.ts +17 -18
- package/expo/copy-overwrite/tsconfig.eslint.json +5 -1
- package/harper-fabric/copy-overwrite/tsconfig.eslint.json +5 -1
- package/nestjs/copy-overwrite/eslint.nestjs.ts +7 -161
- package/nestjs/copy-overwrite/tsconfig.eslint.json +5 -1
- package/nestjs/copy-overwrite/tsconfig.spec.json +2 -3
- package/package.json +7 -9
- package/phaser/copy-overwrite/tsconfig.eslint.json +5 -1
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-agy/plugin.json +1 -1
- 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-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
- 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/scripts/check-learnings-budget.ts +4 -4
- package/scripts/check-self-dependency-pin.mjs +172 -5
- package/scripts/check-typecheck-tests.mjs +88 -20
- package/scripts/push-self-pin-raise.sh +79 -0
- package/scripts/raise-self-dependency-pin.mjs +166 -0
- package/scripts/two-channel-couplings.json +125 -9
- package/scripts/update-node-version.ts +1 -1
- package/scripts/verify-self-pin-raise.mjs +487 -0
- package/typescript/copy-overwrite/tsconfig.eslint.json +5 -1
- package/dist/configs/jest/cdk.d.ts +0 -33
- package/dist/configs/jest/cdk.d.ts.map +0 -1
- package/dist/configs/jest/cdk.js +0 -29
- package/dist/configs/jest/cdk.js.map +0 -1
- package/dist/configs/jest/nestjs.d.ts +0 -36
- package/dist/configs/jest/nestjs.d.ts.map +0 -1
- package/dist/configs/jest/nestjs.js +0 -49
- package/dist/configs/jest/nestjs.js.map +0 -1
- package/dist/configs/jest/typescript.d.ts +0 -29
- package/dist/configs/jest/typescript.d.ts.map +0 -1
- package/dist/configs/jest/typescript.js +0 -37
- package/dist/configs/jest/typescript.js.map +0 -1
|
@@ -18,12 +18,8 @@
|
|
|
18
18
|
* @see https://eslint.org/docs/latest/use/configure/configuration-files-new
|
|
19
19
|
* @module eslint.expo
|
|
20
20
|
*/
|
|
21
|
-
import jsxA11y from "eslint-plugin-jsx-a11y";
|
|
22
21
|
import react from "eslint-plugin-react";
|
|
23
22
|
import reactCompiler from "eslint-plugin-react-compiler";
|
|
24
|
-
// @ts-expect-error -- eslint-plugin-react-perf lacks type declarations
|
|
25
|
-
import reactPerf from "eslint-plugin-react-perf";
|
|
26
|
-
import tailwind from "eslint-plugin-tailwindcss";
|
|
27
23
|
import { readFileSync } from "fs";
|
|
28
24
|
import { createRequire } from "module";
|
|
29
25
|
import path from "path";
|
|
@@ -53,11 +49,22 @@ export {
|
|
|
53
49
|
getSharedRules,
|
|
54
50
|
};
|
|
55
51
|
|
|
52
|
+
/** View component files, which the View rules below all target. */
|
|
53
|
+
const VIEW_FILES = ["**/*View.tsx", "**/*View.jsx"];
|
|
54
|
+
|
|
55
|
+
/** Generated UI primitives (gluestack), exempt from the component rules. */
|
|
56
|
+
const UI_COMPONENTS = "components/ui/**";
|
|
57
|
+
|
|
56
58
|
// Custom plugins (CommonJS - use createRequire)
|
|
57
59
|
const require = createRequire(import.meta.url);
|
|
58
60
|
const componentStructure = require("@codyswann/eslint-plugin-component-structure");
|
|
59
61
|
const uiStandards = require("@codyswann/eslint-plugin-ui-standards");
|
|
60
62
|
const expoConfig = require("eslint-config-expo/flat");
|
|
63
|
+
// No type declarations ship for these three, so they load through require, as
|
|
64
|
+
// in the published factory, rather than through an import TypeScript rejects.
|
|
65
|
+
const reactPerf = require("eslint-plugin-react-perf");
|
|
66
|
+
const jsxA11y = require("eslint-plugin-jsx-a11y");
|
|
67
|
+
const tailwind = require("eslint-plugin-tailwindcss");
|
|
61
68
|
|
|
62
69
|
/**
|
|
63
70
|
* React's hook named exports, banned from a View's import list.
|
|
@@ -393,11 +400,7 @@ export function getExpoConfig({
|
|
|
393
400
|
"components/**/*.tsx",
|
|
394
401
|
"components/**/*.jsx",
|
|
395
402
|
],
|
|
396
|
-
ignores: [
|
|
397
|
-
"components/ui/**",
|
|
398
|
-
"components/shared/**",
|
|
399
|
-
"components/icons/**",
|
|
400
|
-
],
|
|
403
|
+
ignores: [UI_COMPONENTS, "components/shared/**", "components/icons/**"],
|
|
401
404
|
rules: {
|
|
402
405
|
"component-structure/enforce-component-structure": "error",
|
|
403
406
|
"component-structure/single-component-per-file": "error",
|
|
@@ -412,7 +415,7 @@ export function getExpoConfig({
|
|
|
412
415
|
// skill claiming an enforcement it did not have is what let a hook live in
|
|
413
416
|
// a View for so long; the fix must not repeat the shape of the defect.
|
|
414
417
|
{
|
|
415
|
-
files:
|
|
418
|
+
files: VIEW_FILES,
|
|
416
419
|
rules: {
|
|
417
420
|
"component-structure/no-return-in-view": "error",
|
|
418
421
|
},
|
|
@@ -433,12 +436,8 @@ export function getExpoConfig({
|
|
|
433
436
|
// `@/features/*/*` restriction is carried forward because a flat-config
|
|
434
437
|
// override replaces a rule's options wholesale.
|
|
435
438
|
{
|
|
436
|
-
files:
|
|
437
|
-
ignores: [
|
|
438
|
-
"components/ui/**",
|
|
439
|
-
"components/shared/**",
|
|
440
|
-
"components/icons/**",
|
|
441
|
-
],
|
|
439
|
+
files: VIEW_FILES,
|
|
440
|
+
ignores: [UI_COMPONENTS, "components/shared/**", "components/icons/**"],
|
|
442
441
|
rules: {
|
|
443
442
|
"component-structure/no-hooks-in-view": "error",
|
|
444
443
|
"no-restricted-imports": [
|
|
@@ -468,8 +467,8 @@ export function getExpoConfig({
|
|
|
468
467
|
|
|
469
468
|
// View memo requirement (excluding UI components)
|
|
470
469
|
{
|
|
471
|
-
files:
|
|
472
|
-
ignores: [
|
|
470
|
+
files: VIEW_FILES,
|
|
471
|
+
ignores: [UI_COMPONENTS],
|
|
473
472
|
rules: {
|
|
474
473
|
"component-structure/require-memo-in-view": "error",
|
|
475
474
|
},
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
{
|
|
2
|
+
"//": "The program ESLint's type-aware rules read types from. It must resolve what the code really uses, or those rules see `any` and error types. It sets no `types` list, so it inherits the host's own (tsconfig.json, tsconfig.local.json) instead of overriding it; one here would also drop any ambient @types package the host names. This stack runs Jest, so `files` adds Jest's global declarations on top. allowJs without checkJs lets TypeScript files import local .js/.mjs modules with inferred types instead of `any`, without type-checking the JavaScript.",
|
|
2
3
|
"extends": "./tsconfig.json",
|
|
3
4
|
"compilerOptions": {
|
|
4
5
|
"rootDir": ".",
|
|
5
6
|
"noEmit": true,
|
|
6
7
|
"allowImportingTsExtensions": true,
|
|
7
8
|
"module": "preserve",
|
|
8
|
-
"moduleResolution": "bundler"
|
|
9
|
+
"moduleResolution": "bundler",
|
|
10
|
+
"allowJs": true,
|
|
11
|
+
"checkJs": false
|
|
9
12
|
},
|
|
13
|
+
"files": ["node_modules/@types/jest/index.d.ts"],
|
|
10
14
|
"include": ["**/*.ts", "**/*.tsx"],
|
|
11
15
|
"exclude": ["node_modules", "dist", "build", ".expo", "ios", "android", "worktrees"]
|
|
12
16
|
}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
{
|
|
2
|
+
"//": "The program ESLint's type-aware rules read types from. It must resolve what the code really uses, or those rules see `any` and error types. It sets no `types` list, so it inherits the host's own (tsconfig.json, tsconfig.local.json) instead of overriding it; one here would also drop any ambient @types package the host names. This stack runs Vitest with `globals: true`, so `files` adds Vitest's global declarations on top. allowJs without checkJs lets TypeScript files import local .js/.mjs modules with inferred types instead of `any`, without type-checking the JavaScript.",
|
|
2
3
|
"extends": "./tsconfig.json",
|
|
3
4
|
"compilerOptions": {
|
|
4
5
|
"rootDir": ".",
|
|
5
6
|
"noEmit": true,
|
|
6
7
|
"allowImportingTsExtensions": true,
|
|
7
8
|
"module": "preserve",
|
|
8
|
-
"moduleResolution": "bundler"
|
|
9
|
+
"moduleResolution": "bundler",
|
|
10
|
+
"allowJs": true,
|
|
11
|
+
"checkJs": false
|
|
9
12
|
},
|
|
13
|
+
"files": ["node_modules/vitest/globals.d.ts"],
|
|
10
14
|
"include": [
|
|
11
15
|
"src/**/*.ts",
|
|
12
16
|
"tests/**/*.ts",
|
|
@@ -3,176 +3,22 @@
|
|
|
3
3
|
* Do not edit directly — durable changes belong upstream in Lisa.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
/* eslint-disable max-lines-per-function -- config file requires many lines */
|
|
7
6
|
/**
|
|
8
7
|
* ESLint 9 Flat Config - NestJS Stack
|
|
9
8
|
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* eslint.nestjs.ts (this file)
|
|
16
|
-
* └── eslint.typescript.ts
|
|
17
|
-
* └── eslint.base.ts
|
|
18
|
-
*
|
|
9
|
+
* Re-exports the NestJS ESLint configuration from @codyswann/lisa. This file
|
|
10
|
+
* exists as a local sibling for projects that import stack config from a
|
|
11
|
+
* relative path. It used to carry its own copy of the configuration built on
|
|
12
|
+
* a local ./eslint.typescript, which Lisa deletes from every project, so it
|
|
13
|
+
* could not compile; the published factory is the one eslint.config.ts uses.
|
|
19
14
|
* @see https://eslint.org/docs/latest/use/configure/configuration-files-new
|
|
20
15
|
* @module eslint.nestjs
|
|
21
16
|
*/
|
|
22
|
-
|
|
23
|
-
// Import TypeScript config and utilities
|
|
24
|
-
import {
|
|
25
|
-
codeOrganization,
|
|
26
|
-
defaultIgnores,
|
|
27
|
-
defaultThresholds,
|
|
28
|
-
getBaseConfigs,
|
|
29
|
-
getBaseLanguageOptions,
|
|
30
|
-
getJsFilesOverride,
|
|
31
|
-
getSharedFilesOverride,
|
|
32
|
-
getSharedRules,
|
|
33
|
-
getTestFilesOverride,
|
|
34
|
-
getTsFilesOverride,
|
|
35
|
-
getTsTestFilesOverride,
|
|
36
|
-
} from "./eslint.typescript";
|
|
37
|
-
|
|
38
|
-
// Re-export for downstream configs
|
|
39
17
|
export {
|
|
40
18
|
defaultIgnores,
|
|
41
19
|
defaultThresholds,
|
|
42
20
|
getBaseConfigs,
|
|
43
21
|
getBaseLanguageOptions,
|
|
22
|
+
getNestjsConfig,
|
|
44
23
|
getSharedRules,
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Creates the NestJS ESLint configuration.
|
|
49
|
-
*
|
|
50
|
-
* @param {object} options - Configuration options
|
|
51
|
-
* @param {string} options.tsconfigRootDir - Root directory for tsconfig.json
|
|
52
|
-
* @param {string[]} [options.ignorePatterns] - Patterns to ignore
|
|
53
|
-
* @param {object} [options.thresholds] - Threshold overrides
|
|
54
|
-
* @returns {Array} ESLint flat config array
|
|
55
|
-
*/
|
|
56
|
-
export function getNestjsConfig({
|
|
57
|
-
tsconfigRootDir,
|
|
58
|
-
ignorePatterns = defaultIgnores,
|
|
59
|
-
thresholds = defaultThresholds,
|
|
60
|
-
}: {
|
|
61
|
-
tsconfigRootDir: string;
|
|
62
|
-
ignorePatterns?: string[];
|
|
63
|
-
thresholds?: typeof defaultThresholds;
|
|
64
|
-
}) {
|
|
65
|
-
return [
|
|
66
|
-
// Global ignores
|
|
67
|
-
{
|
|
68
|
-
ignores: ignorePatterns,
|
|
69
|
-
},
|
|
70
|
-
|
|
71
|
-
// Base configurations from shared module
|
|
72
|
-
...getBaseConfigs(),
|
|
73
|
-
|
|
74
|
-
// Base configuration for all files
|
|
75
|
-
{
|
|
76
|
-
languageOptions: getBaseLanguageOptions(),
|
|
77
|
-
plugins: {
|
|
78
|
-
"code-organization": codeOrganization,
|
|
79
|
-
},
|
|
80
|
-
rules: {
|
|
81
|
-
// Shared rules from base
|
|
82
|
-
...getSharedRules(thresholds),
|
|
83
|
-
|
|
84
|
-
// Code organization
|
|
85
|
-
"code-organization/enforce-statement-order": "error",
|
|
86
|
-
|
|
87
|
-
// Configuration enforcement - prevent direct process.env access
|
|
88
|
-
// All configuration should go through ConfigService
|
|
89
|
-
// @see .claude/rules/PROJECT_RULES.md
|
|
90
|
-
"no-restricted-syntax": [
|
|
91
|
-
"error",
|
|
92
|
-
{
|
|
93
|
-
selector:
|
|
94
|
-
"MemberExpression[object.name='process'][property.name='env']",
|
|
95
|
-
message:
|
|
96
|
-
"Direct process.env access is forbidden. Use ConfigService for type-safe configuration. See .claude/rules/PROJECT_RULES.md.",
|
|
97
|
-
},
|
|
98
|
-
],
|
|
99
|
-
|
|
100
|
-
// NestJS uses classes extensively for modules, controllers, services, etc.
|
|
101
|
-
"functional/no-classes": "off",
|
|
102
|
-
|
|
103
|
-
// NestJS decorators require class methods
|
|
104
|
-
"jsdoc/require-jsdoc": [
|
|
105
|
-
"error",
|
|
106
|
-
{
|
|
107
|
-
require: {
|
|
108
|
-
FunctionDeclaration: true,
|
|
109
|
-
MethodDefinition: true,
|
|
110
|
-
ClassDeclaration: true,
|
|
111
|
-
ArrowFunctionExpression: false,
|
|
112
|
-
FunctionExpression: false,
|
|
113
|
-
},
|
|
114
|
-
contexts: [
|
|
115
|
-
"TSInterfaceDeclaration",
|
|
116
|
-
"TSTypeAliasDeclaration",
|
|
117
|
-
"VariableDeclaration[declarations.0.init.type='ArrowFunctionExpression']:has([id.name=/^[A-Z]/])",
|
|
118
|
-
],
|
|
119
|
-
},
|
|
120
|
-
],
|
|
121
|
-
},
|
|
122
|
-
},
|
|
123
|
-
|
|
124
|
-
// JavaScript files override
|
|
125
|
-
getJsFilesOverride(),
|
|
126
|
-
|
|
127
|
-
// Shared hooks and components
|
|
128
|
-
getSharedFilesOverride(),
|
|
129
|
-
|
|
130
|
-
// Test files
|
|
131
|
-
getTestFilesOverride(),
|
|
132
|
-
|
|
133
|
-
// TypeScript files - enable type-checked linting
|
|
134
|
-
getTsFilesOverride(["**/*.ts"], tsconfigRootDir),
|
|
135
|
-
|
|
136
|
-
// TypeScript test files - disable immutable-data
|
|
137
|
-
getTsTestFilesOverride([
|
|
138
|
-
"**/*.test.ts",
|
|
139
|
-
"**/*.spec.ts",
|
|
140
|
-
"**/*.e2e-spec.ts",
|
|
141
|
-
]),
|
|
142
|
-
|
|
143
|
-
// NestJS module files - relax some rules
|
|
144
|
-
{
|
|
145
|
-
files: ["**/*.module.ts"],
|
|
146
|
-
rules: {
|
|
147
|
-
// Modules often import many things
|
|
148
|
-
"max-lines": "off",
|
|
149
|
-
},
|
|
150
|
-
},
|
|
151
|
-
|
|
152
|
-
// NestJS controller/service files
|
|
153
|
-
{
|
|
154
|
-
files: ["**/*.controller.ts", "**/*.service.ts", "**/*.resolver.ts"],
|
|
155
|
-
rules: {
|
|
156
|
-
// These files often have many methods
|
|
157
|
-
"max-lines-per-function": ["error", { max: 100 }],
|
|
158
|
-
},
|
|
159
|
-
},
|
|
160
|
-
|
|
161
|
-
// Configuration files - allowed to use process.env directly
|
|
162
|
-
{
|
|
163
|
-
files: ["**/*config.*", "**/configuration.ts", "**/config/*.ts"],
|
|
164
|
-
rules: {
|
|
165
|
-
"no-restricted-syntax": "off",
|
|
166
|
-
},
|
|
167
|
-
},
|
|
168
|
-
|
|
169
|
-
// Lambda handlers - allowed to use getStandaloneConfig()
|
|
170
|
-
{
|
|
171
|
-
files: ["**/handlers/**/*.ts", "**/lambda/**/*.ts"],
|
|
172
|
-
rules: {
|
|
173
|
-
"no-restricted-syntax": "off",
|
|
174
|
-
},
|
|
175
|
-
},
|
|
176
|
-
];
|
|
177
|
-
}
|
|
178
|
-
/* eslint-enable max-lines-per-function -- config file requires many lines */
|
|
24
|
+
} from "@codyswann/lisa/eslint/nestjs";
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
{
|
|
2
|
+
"//": "The program ESLint's type-aware rules read types from. It must resolve what the code really uses, or those rules see `any` and error types. It sets no `types` list, so it inherits the host's own (tsconfig.json, tsconfig.local.json) instead of overriding it; one here would also drop any ambient @types package the host names. This stack runs Vitest with `globals: true`, so `files` adds Vitest's global declarations on top. allowJs without checkJs lets TypeScript files import local .js/.mjs modules with inferred types instead of `any`, without type-checking the JavaScript.",
|
|
2
3
|
"extends": "./tsconfig.json",
|
|
3
4
|
"compilerOptions": {
|
|
4
5
|
"rootDir": ".",
|
|
5
6
|
"noEmit": true,
|
|
6
7
|
"allowImportingTsExtensions": true,
|
|
7
8
|
"module": "preserve",
|
|
8
|
-
"moduleResolution": "bundler"
|
|
9
|
+
"moduleResolution": "bundler",
|
|
10
|
+
"allowJs": true,
|
|
11
|
+
"checkJs": false
|
|
9
12
|
},
|
|
13
|
+
"files": ["node_modules/vitest/globals.d.ts"],
|
|
10
14
|
"include": ["**/*.ts"],
|
|
11
15
|
"exclude": ["node_modules", ".build", "dist", "worktrees"]
|
|
12
16
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
+
"//": "Type-checks NestJS spec files. NestJS projects run Vitest with `globals: true` (vitest.config.ts; Lisa deletes the old jest.config.ts), so `files` adds Vitest's global declarations. It sets no `types` list, so it inherits the host's own instead of overriding it (CodySwannGT/lisa#4927).",
|
|
2
3
|
"extends": "./tsconfig.json",
|
|
3
|
-
"
|
|
4
|
-
"types": ["jest", "node"]
|
|
5
|
-
},
|
|
4
|
+
"files": ["node_modules/vitest/globals.d.ts"],
|
|
6
5
|
"include": ["**/*.spec.ts", "**/*.d.ts"],
|
|
7
6
|
"exclude": ["node_modules", ".build", "dist"]
|
|
8
7
|
}
|
package/package.json
CHANGED
|
@@ -20,8 +20,9 @@
|
|
|
20
20
|
"lint": "node scripts/lib/worktree-dependencies.mjs && oxlint --disable-nested-config && eslint . --quiet",
|
|
21
21
|
"lint:fix": "node scripts/lib/worktree-dependencies.mjs && oxlint --fix --disable-nested-config && eslint . --fix",
|
|
22
22
|
"lint:slow": "node scripts/lib/worktree-dependencies.mjs && eslint . --config eslint.slow.config.ts --quiet",
|
|
23
|
-
"typecheck": "node scripts/lib/worktree-dependencies.mjs && tsgo --noEmit && bun run typecheck:tests && bun run typecheck:engine-floor",
|
|
23
|
+
"typecheck": "node scripts/lib/worktree-dependencies.mjs && tsgo --noEmit && bun run typecheck:tests && bun run typecheck:eslint && bun run typecheck:engine-floor",
|
|
24
24
|
"typecheck:tests": "node scripts/check-typecheck-tests.mjs",
|
|
25
|
+
"typecheck:eslint": "node scripts/check-typecheck-tests.mjs --project tsconfig.eslint.json",
|
|
25
26
|
"typecheck:engine-floor": "node scripts/check-engine-floor.mjs",
|
|
26
27
|
"measure:scripts-profile-gap": "bun scripts/measure-scripts-profile-gap.mts",
|
|
27
28
|
"format:check": "node scripts/lib/worktree-dependencies.mjs && prettier --check .",
|
|
@@ -188,7 +189,7 @@
|
|
|
188
189
|
"qs": "^6.16.0"
|
|
189
190
|
},
|
|
190
191
|
"name": "@codyswann/lisa",
|
|
191
|
-
"version": "
|
|
192
|
+
"version": "6.0.1",
|
|
192
193
|
"description": "Governance-as-code for AI coding agents: turns a repository into agent-operated software factories with guardrails, guidance and automated enforcement for Claude Code, Codex, Cursor, OpenCode, Antigravity, Copilot and Devin",
|
|
193
194
|
"main": "dist/index.js",
|
|
194
195
|
"exports": {
|
|
@@ -207,10 +208,7 @@
|
|
|
207
208
|
"./eslint/slow-expo": "./dist/configs/eslint/slow-expo.js",
|
|
208
209
|
"./jest": "./dist/configs/jest/index.js",
|
|
209
210
|
"./jest/base": "./dist/configs/jest/base.js",
|
|
210
|
-
"./jest/typescript": "./dist/configs/jest/typescript.js",
|
|
211
|
-
"./jest/nestjs": "./dist/configs/jest/nestjs.js",
|
|
212
211
|
"./jest/expo": "./dist/configs/jest/expo.js",
|
|
213
|
-
"./jest/cdk": "./dist/configs/jest/cdk.js",
|
|
214
212
|
"./vitest": "./dist/configs/vitest/index.js",
|
|
215
213
|
"./vitest/base": "./dist/configs/vitest/base.js",
|
|
216
214
|
"./vitest/typescript": "./dist/configs/vitest/typescript.js",
|
|
@@ -320,7 +318,7 @@
|
|
|
320
318
|
},
|
|
321
319
|
"devDependencies": {
|
|
322
320
|
"@actions/expressions": "0.3.61",
|
|
323
|
-
"@codyswann/lisa": "^
|
|
321
|
+
"@codyswann/lisa": "^6.0.0",
|
|
324
322
|
"@playwright/test": "^1.61.1",
|
|
325
323
|
"@stryker-mutator/api": "^10.1.1",
|
|
326
324
|
"@stryker-mutator/core": "^10.1.1",
|
|
@@ -351,7 +349,7 @@
|
|
|
351
349
|
"test": "tests"
|
|
352
350
|
},
|
|
353
351
|
"types": "./dist/index.d.ts",
|
|
354
|
-
"lisaReleaseCommit": "
|
|
355
|
-
"gitHead": "
|
|
356
|
-
"lisaReleaseTag": "
|
|
352
|
+
"lisaReleaseCommit": "857cb1c1d8aef7da6e88928e6ac1d74c74f47480",
|
|
353
|
+
"gitHead": "857cb1c1d8aef7da6e88928e6ac1d74c74f47480",
|
|
354
|
+
"lisaReleaseTag": "v6.0.1"
|
|
357
355
|
}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
{
|
|
2
|
+
"//": "The program ESLint's type-aware rules read types from. It must resolve what the code really uses, or those rules see `any` and error types. It sets no `types` list, so it inherits the host's own (tsconfig.json, tsconfig.local.json) instead of overriding it; one here would also drop any ambient @types package the host names. This stack runs Vitest with `globals: true`, so `files` adds Vitest's global declarations on top. allowJs without checkJs lets TypeScript files import local .js/.mjs modules with inferred types instead of `any`, without type-checking the JavaScript.",
|
|
2
3
|
"extends": "./tsconfig.json",
|
|
3
4
|
"compilerOptions": {
|
|
4
5
|
"rootDir": ".",
|
|
5
6
|
"noEmit": true,
|
|
6
7
|
"allowImportingTsExtensions": true,
|
|
7
8
|
"module": "preserve",
|
|
8
|
-
"moduleResolution": "bundler"
|
|
9
|
+
"moduleResolution": "bundler",
|
|
10
|
+
"allowJs": true,
|
|
11
|
+
"checkJs": false
|
|
9
12
|
},
|
|
13
|
+
"files": ["node_modules/vitest/globals.d.ts"],
|
|
10
14
|
"include": [
|
|
11
15
|
"src/**/*.ts",
|
|
12
16
|
"tests/**/*.ts",
|