Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"root": true,
"rules": {
"require-await": "off",
"id-length": [
"error",
{
"min": 6,
"exceptions": ["a", "aa"],
"exceptionPatterns": ["^foo_"]
}
]
}
}
11 changes: 11 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,14 @@ function commentCheck(){
console.log("no comment")
debugger
}

async function fetchData() {
let a = 1;
let aa = 2;
let foo_1 = 1;
// `readFileSync` is a synchronous function that blocks
// the main thread, and thus does not need to be `await`ed
return fs.readFileSync("data.txt", "utf-8");
}

performAction(async () => { console.log("no awaits in here") });