Skip to content

Commit

Permalink
chore: enable noPrototypeBuiltins
Browse files Browse the repository at this point in the history
  • Loading branch information
shulaoda committed Jul 31, 2024
1 parent c6dd2f6 commit 244a4bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/rspack-dev-server/src/ansiHTML.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ ansiHTML.setColors = (colors: typeof _defColors) => {

const _finalColors: typeof _defColors = {};
for (const key in _defColors) {
let hex = colors.hasOwnProperty(key) ? colors[key] : null;
let hex = Object.hasOwn(colors, key) ? colors[key] : null;
if (!hex) {
_finalColors[key] = _defColors[key];
continue;
Expand Down
3 changes: 2 additions & 1 deletion packages/rspack-dev-server/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
],
"compilerOptions": {
"outDir": "dist",
"rootDir": "src"
"rootDir": "src",
"target": "ES2022"
}
}

0 comments on commit 244a4bc

Please sign in to comment.