From a861ba905d7defa1c1cf68c3c07782affc97f119 Mon Sep 17 00:00:00 2001 From: Palak Trivedi Date: Mon, 19 Feb 2024 10:16:08 +0530 Subject: [PATCH] Revert "some rule add and remove from eslint" --- config/nestjs/.eslintrc.js | 8 ++------ config/nestjs/.prettierrc | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/config/nestjs/.eslintrc.js b/config/nestjs/.eslintrc.js index 6c52b43..2ca0e60 100644 --- a/config/nestjs/.eslintrc.js +++ b/config/nestjs/.eslintrc.js @@ -47,18 +47,13 @@ module.exports = { { selector: 'typeProperty', format: null }, { selector: 'typeLike', format: ['StrictPascalCase'] }, { selector: 'enumMember', format: ['UPPER_CASE'] }, - { - selector: 'interface', - format: ['StrictPascalCase'], - prefix: ['I'], - }, ], 'no-useless-return': 'error', 'no-constant-condition': 'warn', 'max-len': [ 'error', { - code: 120, + code: 200, }, ], 'max-lines': [ @@ -75,6 +70,7 @@ module.exports = { }, ], 'no-console': 'error', + 'no-mixed-operators': 'error', 'keyword-spacing': 'error', 'no-nested-ternary': 2, 'no-undef': 'error', diff --git a/config/nestjs/.prettierrc b/config/nestjs/.prettierrc index 02b2c38..bb8deae 100644 --- a/config/nestjs/.prettierrc +++ b/config/nestjs/.prettierrc @@ -2,7 +2,7 @@ "singleQuote": true, "semi": true, "tabWidth": 2, - "trailingComma": "es5", + "trailingComma": "all", "printWidth": 80, "endOfLine": "auto" }