From 2720f603274290c30d9c2e0f8eeaa92d9f00d9e3 Mon Sep 17 00:00:00 2001 From: Lb Madesia Date: Mon, 8 Jan 2024 13:13:53 +0000 Subject: [PATCH] remove multiline ternary rule and add no-nested-ternary rule for only Nestjs --- CHANGELOG.md | 7 +++++++ config/nestjs/.eslintrc.js | 2 +- package.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 988938a..ef49900 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## 2.0.1 + +_Jan 8, 2024_ + +- Remove 'multiline-ternary' rule of ESLint for Nestjs. +- Add 'no-nested-ternary' rule of ESLint for Nest. + ## 2.0.0 _Jan 3, 2024_ diff --git a/config/nestjs/.eslintrc.js b/config/nestjs/.eslintrc.js index a64bb37..2ca0e60 100644 --- a/config/nestjs/.eslintrc.js +++ b/config/nestjs/.eslintrc.js @@ -72,7 +72,7 @@ module.exports = { 'no-console': 'error', 'no-mixed-operators': 'error', 'keyword-spacing': 'error', - 'multiline-ternary': ['error', 'never'], + 'no-nested-ternary': 2, 'no-undef': 'error', 'no-whitespace-before-property': 'error', 'nonblock-statement-body-position': 'error', diff --git a/package.json b/package.json index 6c2c80d..80d6d74 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@vcian/lint-sage", - "version": "2.0.0", + "version": "2.0.1", "description": "This package designed to simplify the configuration of your projects. This package automates the setup of essential tools and configurations to ensure a clean and consistent codebase.", "bin": { "lint-sage": "index.js"