From 816cf28af79254d7634be639a39d545668b7e7fd Mon Sep 17 00:00:00 2001 From: "Kamat, Trivikram" <16024985+trivikr@users.noreply.github.com> Date: Tue, 13 Feb 2024 13:34:29 -0800 Subject: [PATCH] Add rules from existing .eslintrc --- eslint.config.mjs | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index babeba17b..59533a64a 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -16,10 +16,18 @@ export default tseslint.config({ }, }, rules: { - "@typescript-eslint/no-unsafe-argument": "error", - "@typescript-eslint/no-unsafe-assignment": "error", - "@typescript-eslint/no-unsafe-call": "error", - "@typescript-eslint/no-unsafe-member-access": "error", - "@typescript-eslint/no-unsafe-return": "error", + "import/order": ["error", { alphabetize: { order: "asc" } }], + "import/first": "error", + "import/no-mutable-exports": "error", + "import/no-unresolved": "off", + "@typescript-eslint/array-type": ["error", { default: "array" }], + "@typescript-eslint/naming-convention": [ + "error", + { + selector: "default", + format: ["camelCase", "UPPER_CASE", "PascalCase"], + leadingUnderscore: "allow", + }, + ], }, });