Skip to content

Commit 79facb4

Browse files
committed
Create eslint.config.js
1 parent 8a67bbb commit 79facb4

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

eslint.config.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
const noFloatingPromise = require("eslint-plugin-no-floating-promise");
2+
3+
module.exports = [
4+
{
5+
"plugins": {
6+
"no-floating-promise": noFloatingPromise
7+
},
8+
"rules": {
9+
"require-await": "error",
10+
// "no-await-in-loop": "error",
11+
"no-floating-promise/no-floating-promise": 2,
12+
"semi": "error",
13+
"prefer-const": "error"
14+
}
15+
}
16+
];

0 commit comments

Comments
 (0)