chore(docs): lint

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2023-04-11 20:29:53 +02:00
parent f4616af840
commit 4454867c36
9 changed files with 41 additions and 15 deletions
+3 -1
View File
@@ -10,7 +10,9 @@ const skip = ['node_modules', 'dist', 'turbo']
const getAllFiles = function (dirPath: string, needle?: string, arrayOfFiles: ChangelogFile[] = [], pkgName?: string) {
readdirSync(dirPath).forEach((file) => {
if (skip.includes(file)) return
if (skip.includes(file)) {
return
}
if (statSync(`${dirPath}/${file}`).isDirectory()) {
getAllFiles(`${dirPath}/${file}`, needle, arrayOfFiles, file)
@@ -31,13 +31,14 @@ function sendToAnalytics(metric, options) {
})
if (navigator.sendBeacon) {
navigator.sendBeacon(vitalsUrl, blob)
} else
} else {
fetch(vitalsUrl, {
body: blob,
method: 'POST',
credentials: 'omit',
keepalive: true,
})
}
}
export function webVitals(options) {