Skip to content

Commit 51f7a89

Browse files
committed
chore: add eslint formatter for multiple formats
1 parent 5b4069a commit 51f7a89

17 files changed

+1286
-34
lines changed

nx.json

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"inputs": ["default", "{workspaceRoot}/eslint.config.?(c)js"],
6060
"outputs": ["{projectRoot}/.eslint/eslint-report*.json"],
6161
"cache": true,
62-
"executor": "@nx/linter:eslint",
62+
"executor": "@nx/eslint:lint",
6363
"options": {
6464
"errorOnUnmatchedPattern": false,
6565
"maxWarnings": 0,
@@ -71,6 +71,19 @@
7171
]
7272
}
7373
},
74+
"lint-formatter": {
75+
"inputs": ["default", "{workspaceRoot}/eslint.config.?(c)js"],
76+
"outputs": ["{projectRoot}/.eslint/eslint-report*.json"],
77+
"cache": true,
78+
"executor": "nx:run-commands",
79+
"options": {
80+
"command": "nx lint {projectName}",
81+
"args": ["--format=./dist/eslint-multi-format/index.js"],
82+
"env": {
83+
"ESLINT_FORMATTER_CONFIG": "{\"outputDir\":\"{projectRoot}/.eslint\"}"
84+
}
85+
}
86+
},
7487
"nxv-pkg-install": {
7588
"parallelism": false
7689
},
@@ -164,6 +177,20 @@
164177
"filterByTags": ["publishable"]
165178
}
166179
}
180+
},
181+
{
182+
"plugin": "@nx/vite/plugin",
183+
"options": {
184+
"buildTargetName": "build",
185+
"testTargetName": "test",
186+
"serveTargetName": "serve",
187+
"devTargetName": "dev",
188+
"previewTargetName": "preview",
189+
"serveStaticTargetName": "serve-static",
190+
"typecheckTargetName": "typecheck",
191+
"buildDepsTargetName": "build-deps",
192+
"watchDepsTargetName": "watch-deps"
193+
}
167194
}
168195
],
169196
"nxCloudId": "65d4d862d2adb16a45a4bc7c"

0 commit comments

Comments
 (0)