Skip to content

Commit

Permalink
stricter eslint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
kubikowski committed Jun 9, 2024
1 parent 4859ef4 commit 4cbdec4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
11 changes: 11 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,16 @@
"tab"
],
"max-len": "off",
"no-shadow": "off",
"no-var": "error",
"no-void": "error",
"no-undefined": "error",
"object-curly-spacing": [
"error",
"always"
],
"prefer-const": "error",
"prefer-template": "error",
"quotes": [
"error",
"single"
Expand Down Expand Up @@ -307,10 +313,15 @@
],
"max-len": "off",
"no-shadow": "off",
"no-var": "error",
"no-void": "error",
"no-undefined": "error",
"object-curly-spacing": [
"error",
"always"
],
"prefer-const": "error",
"prefer-template": "error",
"quotes": [
"error",
"single"
Expand Down
7 changes: 1 addition & 6 deletions test/util/scale/timer.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,6 @@ export abstract class Timer {
}

private static formatTiming(timing: number): string {
const options: Intl.NumberFormatOptions = {
minimumFractionDigits: 3,
maximumFractionDigits: 3,
};

return timing.toLocaleString(undefined, options) + 'ms';
return `${ timing.toFixed(3) }ms`;
}
}

0 comments on commit 4cbdec4

Please sign in to comment.