Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan committed Feb 27, 2025
1 parent 64a5dc8 commit 51e504c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@
"cachable",
"finalhandler",
"mrmime",
"corepack"
"corepack",
"rslog",
"rsbuild",
"rspack"
],
"ignorePaths": [
"CHANGELOG.md",
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"scripts": {
"commitlint": "commitlint --from=master",
"security": "pnpm audit --production",
"lint:prettier": "prettier --cache --list-different .",
"lint:js": "eslint --cache .",
"lint:spelling": "cspell --cache --no-must-find-files --quiet \"**/*.*\"",
"lint:types": "tsc --pretty --noEmit",
Expand Down
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ function wdm(compiler, options = {}) {
if (error) {
// format Rspack error message
if (error.message && error.message.includes('× Error:')) {
// eslint-disable-next-line no-param-reassign
error.message = error.message.replace('× Error:', '').trim();
}
logger.error(error);
Expand Down

0 comments on commit 51e504c

Please sign in to comment.