|
|
@@ -127,7 +127,9 @@ function gatesForMode(selected: Mode): Gate[] {
|
|
|
case 'ci-static':
|
|
|
return ciStaticGates()
|
|
|
case 'ci-lint':
|
|
|
- return lintGates()
|
|
|
+ return [
|
|
|
+ lintGate(),
|
|
|
+ ]
|
|
|
case 'ci-coverage':
|
|
|
return [
|
|
|
coverageGate(),
|
|
|
@@ -158,10 +160,10 @@ function ciPrimaryGates(): Gate[] {
|
|
|
return [
|
|
|
pnpmScript('constraints', 'constraints'),
|
|
|
pnpmScript('typecheck', 'typecheck'),
|
|
|
- ...lintGates(),
|
|
|
+ lintGate(),
|
|
|
coverageGate(),
|
|
|
pnpmScript('snapshot', 'test:snapshot'),
|
|
|
- demoSmokeGate({ needs: ['lint-source', 'lint-tests'] }),
|
|
|
+ demoSmokeGate({ needs: ['lint'] }),
|
|
|
...docSyncLeafGates(),
|
|
|
pnpmScript('module-graph', 'verify-module-graph', { label: 'module graph' }),
|
|
|
pnpmScript('knip', 'knip'),
|
|
|
@@ -197,29 +199,10 @@ function ciArtifactGates(): Gate[] {
|
|
|
]
|
|
|
}
|
|
|
|
|
|
-function lintGates(): Gate[] {
|
|
|
- const env = { NODE_OPTIONS: nodeOptions('--max-old-space-size=8192') }
|
|
|
- return [
|
|
|
- pnpmExec('lint-source', [
|
|
|
- 'eslint',
|
|
|
- 'packages/*/*/src/**/*.ts',
|
|
|
- 'examples/**/*.ts',
|
|
|
- 'scripts/**/*.ts',
|
|
|
- '--ignore-pattern',
|
|
|
- 'examples/*/tests/**/*.ts',
|
|
|
- ], {
|
|
|
- label: 'lint source',
|
|
|
- env,
|
|
|
- }),
|
|
|
- pnpmExec('lint-tests', [
|
|
|
- 'eslint',
|
|
|
- 'packages/*/*/tests/**/*.ts',
|
|
|
- 'examples/*/tests/**/*.ts',
|
|
|
- ], {
|
|
|
- label: 'lint tests',
|
|
|
- env,
|
|
|
- }),
|
|
|
- ]
|
|
|
+function lintGate(): Gate {
|
|
|
+ return pnpmScript('lint', 'lint', {
|
|
|
+ env: { NODE_OPTIONS: nodeOptions('--max-old-space-size=8192') },
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
function coverageGate(): Gate {
|