Skip to content

Commit 486e099

Browse files
committed
chore: add lint target with formatter
1 parent 79170da commit 486e099

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
@@ -58,7 +58,23 @@
5858
},
5959
"lint-reporter": {
6060
"inputs": ["default", "{workspaceRoot}/eslint.config.?(c)js"],
61-
"outputs": ["{projectRoot}/.eslint/**/*.json"],
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+
},
75+
"lint-formatter": {
76+
"inputs": ["default", "{workspaceRoot}/eslint.config.?(c)js"],
77+
"outputs": ["{projectRoot}/.eslint/eslint-report*.json"],
6278
"cache": true,
6379
"executor": "nx:run-commands",
6480
"options": {

0 commit comments

Comments
 (0)