Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

void expressions are fine

Manav Rathi7e2ee61a97dc
diff --git a/desktop/.eslintrc.js b/desktop/.eslintrc.js
index 8c1867fc79..33c458b14c 100644
--- a/desktop/.eslintrc.js
+++ b/desktop/.eslintrc.js
@@ -4,8 +4,8 @@ module.exports = {
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
- /* What we really want eventually */
"plugin:@typescript-eslint/strict-type-checked",
+ /* What we really want eventually */
// "plugin:@typescript-eslint/stylistic-type-checked",
],
plugins: ["@typescript-eslint"],
@@ -19,16 +19,21 @@ module.exports = {
node: true,
},
rules: {
+ /* Allow numbers to be used in template literals */
"@typescript-eslint/restrict-template-expressions": [
"error",
{
allowNumber: true,
},
],
+ /* Allow void expressions as the entire body of an arrow function */
+ "@typescript-eslint/no-confusing-void-expression": [
+ "error",
+ {
+ ignoreArrowShorthand: true,
+ },
+ ],
/* Temporary (RIP) */
"@typescript-eslint/no-unsafe-return": "off",
- "@typescript-eslint/no-confusing-void-expression": "off",
- // "@typescript-eslint/no-misused-promises": "off",
- // "@typescript-eslint/no-floating-promises": "off",
},
};