From 67bc925f227572d6ea3c7d5c98a1c341a9a1e132 Mon Sep 17 00:00:00 2001 From: Bas Date: Mon, 18 Nov 2024 22:09:28 +0100 Subject: [PATCH] Update eslint 9 rule configuration --- eslint.config.mjs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index ce5791e..2333270 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -14,13 +14,14 @@ export default tseslint.config( }, rules: { "@typescript-eslint/consistent-type-assertions": ["error", { assertionStyle: "angle-bracket" }], - "@typescript-eslint/prefer-nullish-coalescing": "off", - "@typescript-eslint/prefer-optional-chain": "off", + "@typescript-eslint/prefer-includes": "off", // not in es5 + "@typescript-eslint/prefer-nullish-coalescing": "off", // verbose in es5 + "@typescript-eslint/prefer-optional-chain": "off", // verbose in es5 "@typescript-eslint/no-inferrable-types": "warn", "@typescript-eslint/no-unnecessary-condition": "warn", - "@typescript-eslint/no-unsafe-enum-comparison": "off", + "@typescript-eslint/no-unsafe-enum-comparison": "off", // enums are only used as labelled numbers "@typescript-eslint/restrict-template-expressions": ["warn", { allowArray: true, allowBoolean: true, allowNullish: true, allowNumber: true }], - "@typescript-eslint/triple-slash-reference": "off", + "@typescript-eslint/triple-slash-reference": "off", // needed for openrct2 symbols } }, {