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"