From 79d029b0659255f15a2ef0c20b0c76741c120b53 Mon Sep 17 00:00:00 2001 From: Aleksey Kovalevsky Date: Thu, 20 Mar 2025 12:18:17 +0200 Subject: [PATCH] eslint-config-seekingalpha-typescript ver. 8.3.0 - [deps] upgrade `typescript-eslin` to version `8.27.0` --- .../CHANGELOG.md | 4 +++ .../README.md | 2 +- .../package.json | 6 ++-- .../rules/typescript-eslint/index.js | 31 +++++++++---------- package.json | 4 +-- 5 files changed, 24 insertions(+), 23 deletions(-) diff --git a/eslint-configs/eslint-config-seekingalpha-typescript/CHANGELOG.md b/eslint-configs/eslint-config-seekingalpha-typescript/CHANGELOG.md index 04fb1b79..ee480da5 100644 --- a/eslint-configs/eslint-config-seekingalpha-typescript/CHANGELOG.md +++ b/eslint-configs/eslint-config-seekingalpha-typescript/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## 8.3.0 - 2025-03-20 + +- [deps] upgrade `typescript-eslin` to version `8.27.0` + ## 8.2.0 - 2025-03-19 - [breaking] disabled `@typescript-eslint/no-magic-numbers` and `@typescript-eslint/sort-type-constituents` diff --git a/eslint-configs/eslint-config-seekingalpha-typescript/README.md b/eslint-configs/eslint-config-seekingalpha-typescript/README.md index fb3b6744..04b55ecd 100644 --- a/eslint-configs/eslint-config-seekingalpha-typescript/README.md +++ b/eslint-configs/eslint-config-seekingalpha-typescript/README.md @@ -6,7 +6,7 @@ This package includes the shareable ESLint config used by [SeekingAlpha](https:/ Install ESLint and all [Peer Dependencies](https://nodejs.org/en/blog/npm/peer-dependencies/): - npm install eslint@9.22.0 typescript-eslint@8.26.1 --save-dev + npm install eslint@9.22.0 typescript-eslint@8.27.0 --save-dev Install SeekingAlpha shareable ESLint: diff --git a/eslint-configs/eslint-config-seekingalpha-typescript/package.json b/eslint-configs/eslint-config-seekingalpha-typescript/package.json index e27e78c1..73c4b175 100644 --- a/eslint-configs/eslint-config-seekingalpha-typescript/package.json +++ b/eslint-configs/eslint-config-seekingalpha-typescript/package.json @@ -1,6 +1,6 @@ { "name": "eslint-config-seekingalpha-typescript", - "version": "8.2.0", + "version": "8.3.0", "description": "SeekingAlpha's sharable typescript ESLint config", "main": "index.js", "type": "module", @@ -39,11 +39,11 @@ }, "peerDependencies": { "eslint": "9.22.0", - "typescript-eslint": "8.26.1" + "typescript-eslint": "8.27.0" }, "devDependencies": { "eslint": "9.22.0", "eslint-find-rules": "5.0.0", - "typescript-eslint": "8.26.1" + "typescript-eslint": "8.27.0" } } diff --git a/eslint-configs/eslint-config-seekingalpha-typescript/rules/typescript-eslint/index.js b/eslint-configs/eslint-config-seekingalpha-typescript/rules/typescript-eslint/index.js index 9788bc46..06541d2a 100644 --- a/eslint-configs/eslint-config-seekingalpha-typescript/rules/typescript-eslint/index.js +++ b/eslint-configs/eslint-config-seekingalpha-typescript/rules/typescript-eslint/index.js @@ -125,7 +125,7 @@ export default { '@typescript-eslint/no-restricted-types': 'off', - '@typescript-eslint/ban-ts-comment': 'error', + '@typescript-eslint/ban-ts-comment': 'off', '@typescript-eslint/ban-tslint-comment': 'error', @@ -192,7 +192,13 @@ export default { '@typescript-eslint/no-import-type-side-effects': 'error', - '@typescript-eslint/no-inferrable-types': 'error', + '@typescript-eslint/no-inferrable-types': [ + 'error', + { + ignoreParameters: true, + ignoreProperties: true, + }, + ], '@typescript-eslint/no-invalid-void-type': 'error', @@ -210,7 +216,10 @@ export default { '@typescript-eslint/no-non-null-assertion': 'error', - '@typescript-eslint/parameter-properties': 'error', + '@typescript-eslint/parameter-properties': [ + 'error', + { allow: ['private', 'protected'] }, + ], '@typescript-eslint/no-redeclare': 'error', @@ -292,7 +301,7 @@ export default { '@typescript-eslint/triple-slash-reference': 'error', - '@typescript-eslint/typedef': 'error', + '@typescript-eslint/typedef': 'off', '@typescript-eslint/unified-signatures': 'error', @@ -319,17 +328,5 @@ export default { '@typescript-eslint/explicit-module-boundary-types': 'off', - '@typescript-eslint/no-type-alias': [ - 'error', - { - allowAliases: 'in-unions-and-intersections', - allowCallbacks: 'always', - allowConditionalTypes: 'always', - allowConstructors: 'never', - allowLiterals: 'always', - allowMappedTypes: 'always', - allowTupleTypes: 'always', - allowGenerics: 'always', - }, - ], + '@typescript-eslint/no-type-alias': 'off', }; diff --git a/package.json b/package.json index 99c38e61..d6b0c289 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "seekingalpha-javascript-style", - "version": "9.4.0", + "version": "9.5.0", "description": "Set of linting rules, guides and best practices for best Javascript code", "main": "index.js", "type": "module", @@ -48,7 +48,7 @@ "@seekingalpha/prettier-config-samw": "2.0.0", "eslint": "9.22.0", "eslint-config-seekingalpha-base": "11.2.0", - "eslint-config-seekingalpha-node": "9.0.0", + "eslint-config-seekingalpha-node": "9.1.0", "eslint-plugin-array-func": "5.0.2", "eslint-plugin-import": "2.31.0", "eslint-plugin-n": "17.16.2",