Skip to content

Instantly share code, notes, and snippets.

View TatsuyaYamamoto's full-sized avatar
🤗

Tatsuya Yamamoto / T28_tatsuya TatsuyaYamamoto

🤗
View GitHub Profile
import { markdownTable } from "npm:markdown-table";
import v6 from "npm:@typescript-eslint/eslint-plugin@6.0.0";
import v5 from "npm:@typescript-eslint/eslint-plugin@5.62.0";
const v5Rules_recommended = Object.keys(v5.configs["recommended"].rules);
const v5Rules_recommendedRequiringTypeChecking = Object.keys(
v5.configs["recommended-requiring-type-checking"].rules
);
const v5Rules_strict = Object.keys(v5.configs["strict"].rules);
const getDecimalPointRound = (value, decimalPointPlace) => {
const digit = Math.pow(10, decimalPointPlace);
return Math.round(value * digit) / digit;
}
const getNonZeroRandom = () => {
let r = 0;
while (r === 0) {
r = Math.random();
}