mirror of
https://github.com/meshcore-dev/meshcore.js.git
synced 2026-04-20 22:13:49 +00:00
chore: enforce prettier configuration
In order to avoid reformatting of the code this PR add a prettier configuration as well as scripts to automatically format apply the rules
This commit is contained in:
parent
f6fea65063
commit
3f899c8445
19 changed files with 3477 additions and 3474 deletions
|
|
@ -1,11 +1,9 @@
|
|||
class RandomUtils {
|
||||
|
||||
static getRandomInt(min, max) {
|
||||
min = Math.ceil(min);
|
||||
max = Math.floor(max);
|
||||
return Math.floor(Math.random() * (max - min + 1)) + min;
|
||||
}
|
||||
|
||||
static getRandomInt(min, max) {
|
||||
min = Math.ceil(min);
|
||||
max = Math.floor(max);
|
||||
return Math.floor(Math.random() * (max - min + 1)) + min;
|
||||
}
|
||||
}
|
||||
|
||||
export default RandomUtils;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue