Skip to content

Commit 846b855

Browse files
committed
chore: add lint-report to default targets
1 parent 5854e34 commit 846b855

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

nx.json

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,32 @@
4646
"lint": {
4747
"inputs": ["default", "{workspaceRoot}/eslint.config.?(c)js"],
4848
"executor": "@nx/linter:eslint",
49-
"outputs": ["{options.outputFile}"],
5049
"cache": true,
5150
"options": {
51+
"errorOnUnmatchedPattern": false,
5252
"maxWarnings": 0,
5353
"lintFilePatterns": [
5454
"{projectRoot}/**/*.ts",
5555
"{projectRoot}/package.json"
5656
]
5757
}
5858
},
59+
"lint-report": {
60+
"inputs": ["default", "{workspaceRoot}/eslint.config.?(c)js"],
61+
"outputs": ["{projectRoot}/.eslint/eslint-report*.json"],
62+
"cache": true,
63+
"executor": "@nx/linter:eslint",
64+
"options": {
65+
"errorOnUnmatchedPattern": false,
66+
"maxWarnings": 0,
67+
"format": "json",
68+
"outputFile": "{projectRoot}/.eslint/eslint-report.json",
69+
"lintFilePatterns": [
70+
"{projectRoot}/**/*.ts",
71+
"{projectRoot}/package.json"
72+
]
73+
}
74+
},
5975
"nxv-pkg-install": {
6076
"parallelism": false
6177
},

0 commit comments

Comments
 (0)