From 9c59207889c44479d5be5d643198f75f48b08553 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Pedersen?= Date: Fri, 15 Sep 2023 13:47:09 +0200 Subject: [PATCH] Fix eslintrc as recommended Fix rules flagged by `npx eslint-config-prettier ` See https://github.com/prettier/eslint-config-prettier#what-and-why Change-Id: I3441f316e92358f7f9c1ee0bd8eb0956f608d3a3 --- .eslintrc.json | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 0731812bf..99a34716f 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -7,8 +7,9 @@ "plugins": ["@typescript-eslint/eslint-plugin"], "extends": [ "plugin:@typescript-eslint/recommended", - "plugin:prettier/recommended" - ], + "plugin:prettier/recommended", + "prettier" + ], "root": true, "env": { "node": true, @@ -18,19 +19,6 @@ "@typescript-eslint/interface-name-prefix": "off", "@typescript-eslint/explicit-function-return-type": "off", "@typescript-eslint/explicit-module-boundary-types": "off", - "@typescript-eslint/member-delimiter-style": [ - "error", - { - "multiline": { - "delimiter": "semi", - "requireLast": true - }, - "singleline": { - "delimiter": "semi", - "requireLast": false - } - } - ], "@typescript-eslint/naming-convention": [ "error", { @@ -44,10 +32,10 @@ "error", "double", { - "allowTemplateLiterals": true + "allowTemplateLiterals": true, + "avoidEscape": true } ], - "@typescript-eslint/semi": ["error", "always"], "no-constant-condition": ["error", { "checkLoops": false }], "@typescript-eslint/no-unused-vars": "warn" }