Skip to content

Commit 3139b50

Browse files
authored
Merge branch 'main' into feat/plugin-eslint/add-artifact-loading-logic
2 parents 16e99f8 + d6ba73c commit 3139b50

30 files changed

+108
-41
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,11 @@ testem.log
4343
.DS_Store
4444
Thumbs.db
4545

46+
# generated eslint reports
47+
.eslint
48+
4649
# generated Code PushUp reports
47-
/.code-pushup
50+
.code-pushup
4851

4952
# Nx workspace cache
5053
.nx

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
## 0.76.0 (2025-08-25)
2+
3+
### 🚀 Features
4+
5+
- implement scoreTargets for audits ([5db68e2e](https://github.com/code-pushup/cli/commit/5db68e2e))
6+
- **ci:** add helper function for parsing configPatterns from json string ([fd5edb09](https://github.com/code-pushup/cli/commit/fd5edb09))
7+
- **ci:** export default settings and min/max limits ([a6a485ee](https://github.com/code-pushup/cli/commit/a6a485ee))
8+
- **models:** export default persist config ([18e95ff5](https://github.com/code-pushup/cli/commit/18e95ff5))
9+
- **models:** export default persist.skipReports value ([dfc15aeb](https://github.com/code-pushup/cli/commit/dfc15aeb))
10+
11+
### ❤️ Thank You
12+
13+
- Hanna Skryl @hanna-skryl
14+
- Matěj Chalk @matejchalk
15+
116
## 0.75.0 (2025-08-22)
217

318
### 🚀 Features

code-pushup.preset.ts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ import coveragePlugin, {
77
getNxCoveragePaths,
88
} from './packages/plugin-coverage/src/index.js';
99
import eslintPlugin, {
10-
eslintConfigFromAllNxProjects,
1110
eslintConfigFromNxProject,
1211
} from './packages/plugin-eslint/src/index.js';
12+
import type { ESLintTarget } from './packages/plugin-eslint/src/lib/config.js';
13+
import { nxProjectsToConfig } from './packages/plugin-eslint/src/lib/nx/projects-to-config.js';
1314
import jsPackagesPlugin from './packages/plugin-js-packages/src/index.js';
1415
import jsDocsPlugin from './packages/plugin-jsdocs/src/index.js';
1516
import type { JsDocsPluginTransformedConfig } from './packages/plugin-jsdocs/src/lib/config.js';
@@ -156,14 +157,25 @@ export const jsDocsCoreConfig = (
156157
),
157158
});
158159

160+
export async function eslintConfigFromPublishableNxProjects(): Promise<
161+
ESLintTarget[]
162+
> {
163+
const { createProjectGraphAsync } = await import('@nx/devkit');
164+
const projectGraph = await createProjectGraphAsync({ exitOnError: false });
165+
return nxProjectsToConfig(
166+
projectGraph,
167+
project => project.tags?.includes('publishable') ?? false,
168+
);
169+
}
170+
159171
export const eslintCoreConfigNx = async (
160172
projectName?: string,
161173
): Promise<CoreConfig> => ({
162174
plugins: [
163175
await eslintPlugin(
164176
await (projectName
165177
? eslintConfigFromNxProject(projectName)
166-
: eslintConfigFromAllNxProjects()),
178+
: eslintConfigFromPublishableNxProjects()),
167179
),
168180
],
169181
categories: eslintCategories,

nx.json

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,32 @@
4444
"lint": {
4545
"inputs": ["default", "{workspaceRoot}/eslint.config.?(c)js"],
4646
"executor": "@nx/linter:eslint",
47-
"outputs": ["{options.outputFile}"],
4847
"cache": true,
4948
"options": {
49+
"errorOnUnmatchedPattern": false,
5050
"maxWarnings": 0,
5151
"lintFilePatterns": [
5252
"{projectRoot}/**/*.ts",
5353
"{projectRoot}/package.json"
5454
]
5555
}
5656
},
57+
"lint-report": {
58+
"inputs": ["default", "{workspaceRoot}/eslint.config.?(c)js"],
59+
"outputs": ["{projectRoot}/.eslint/eslint-report*.json"],
60+
"cache": true,
61+
"executor": "@nx/linter:eslint",
62+
"options": {
63+
"errorOnUnmatchedPattern": false,
64+
"maxWarnings": 0,
65+
"format": "json",
66+
"outputFile": "{projectRoot}/.eslint/eslint-report.json",
67+
"lintFilePatterns": [
68+
"{projectRoot}/**/*.ts",
69+
"{projectRoot}/package.json"
70+
]
71+
}
72+
},
5773
"nxv-pkg-install": {
5874
"parallelism": false
5975
},

packages/ci/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@code-pushup/ci",
3-
"version": "0.75.0",
3+
"version": "0.76.0",
44
"description": "CI automation logic for Code PushUp (provider-agnostic)",
55
"license": "MIT",
66
"homepage": "https://github.com/code-pushup/cli/tree/main/packages/ci#readme",
@@ -26,9 +26,9 @@
2626
},
2727
"type": "module",
2828
"dependencies": {
29-
"@code-pushup/models": "0.75.0",
29+
"@code-pushup/models": "0.76.0",
3030
"@code-pushup/portal-client": "^0.15.0",
31-
"@code-pushup/utils": "0.75.0",
31+
"@code-pushup/utils": "0.76.0",
3232
"glob": "^11.0.1",
3333
"simple-git": "^3.20.0",
3434
"yaml": "^2.5.1",

packages/ci/project.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"targets": {
77
"build": {},
88
"lint": {},
9+
"lint-report": {},
910
"unit-test": {},
1011
"int-test": {}
1112
},

packages/cli/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@code-pushup/cli",
3-
"version": "0.75.0",
3+
"version": "0.76.0",
44
"license": "MIT",
55
"description": "A CLI to run all kinds of code quality measurements to align your team with company goals",
66
"homepage": "https://code-pushup.dev",
@@ -45,9 +45,9 @@
4545
"node": ">=20"
4646
},
4747
"dependencies": {
48-
"@code-pushup/models": "0.75.0",
49-
"@code-pushup/core": "0.75.0",
50-
"@code-pushup/utils": "0.75.0",
48+
"@code-pushup/models": "0.76.0",
49+
"@code-pushup/core": "0.76.0",
50+
"@code-pushup/utils": "0.76.0",
5151
"yargs": "^17.7.2",
5252
"ansis": "^3.3.0",
5353
"simple-git": "^3.20.0"

packages/cli/project.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"targets": {
77
"build": {},
88
"lint": {},
9+
"lint-report": {},
910
"unit-test": {},
1011
"int-test": {},
1112
"run-help": {

packages/core/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@code-pushup/core",
3-
"version": "0.75.0",
3+
"version": "0.76.0",
44
"license": "MIT",
55
"description": "Core business logic for the used by the Code PushUp CLI",
66
"homepage": "https://github.com/code-pushup/cli/tree/main/packages/core#readme",
@@ -39,8 +39,8 @@
3939
},
4040
"type": "module",
4141
"dependencies": {
42-
"@code-pushup/models": "0.75.0",
43-
"@code-pushup/utils": "0.75.0",
42+
"@code-pushup/models": "0.76.0",
43+
"@code-pushup/utils": "0.76.0",
4444
"ansis": "^3.3.0"
4545
},
4646
"peerDependencies": {

packages/core/project.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"targets": {
77
"build": {},
88
"lint": {},
9+
"lint-report": {},
910
"unit-test": {},
1011
"int-test": {}
1112
},

0 commit comments

Comments
 (0)