From 0a3f8ea7eda603200641b9f8c982a24dbe2d9a7e Mon Sep 17 00:00:00 2001 From: strawberry-choco Date: Wed, 16 Oct 2024 11:27:57 +0200 Subject: [PATCH] allow void for this type (#246) Signed-off-by: Kangrui Johann Ye --- package.json | 2 +- packages/eslint-plugin-angular/package.json | 2 +- packages/eslint-plugin-node/package.json | 2 +- packages/eslint-plugin-react/package.json | 2 +- packages/eslint-plugin-typescript/package.json | 2 +- .../eslint-plugin-typescript/src/configs/typescript-eslint.ts | 2 +- packages/eslint-plugin-vue/package.json | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 0d367be..2546ed4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@cloudflight/eslint-plugin", - "version": "1.0.0-rc8", + "version": "1.0.0-rc9", "private": true, "volta": { "node": "20.12.2", diff --git a/packages/eslint-plugin-angular/package.json b/packages/eslint-plugin-angular/package.json index d97a991..628bd8d 100644 --- a/packages/eslint-plugin-angular/package.json +++ b/packages/eslint-plugin-angular/package.json @@ -1,6 +1,6 @@ { "name": "@cloudflight/eslint-plugin-angular", - "version": "1.0.0-rc8", + "version": "1.0.0-rc9", "description": "Cloudflight eslint-plugin & eslint-config for angular", "volta": { "extends": "../../package.json" diff --git a/packages/eslint-plugin-node/package.json b/packages/eslint-plugin-node/package.json index 92d04ef..b06b7f3 100644 --- a/packages/eslint-plugin-node/package.json +++ b/packages/eslint-plugin-node/package.json @@ -1,6 +1,6 @@ { "name": "@cloudflight/eslint-plugin-node", - "version": "1.0.0-rc8", + "version": "1.0.0-rc9", "description": "Cloudflight eslint-plugin & eslint-config for node", "volta": { "extends": "../../package.json" diff --git a/packages/eslint-plugin-react/package.json b/packages/eslint-plugin-react/package.json index 71294a1..12181f5 100644 --- a/packages/eslint-plugin-react/package.json +++ b/packages/eslint-plugin-react/package.json @@ -1,6 +1,6 @@ { "name": "@cloudflight/eslint-plugin-react", - "version": "1.0.0-rc8", + "version": "1.0.0-rc9", "description": "Cloudflight eslint-plugin & eslint-config for React", "volta": { "extends": "../../package.json" diff --git a/packages/eslint-plugin-typescript/package.json b/packages/eslint-plugin-typescript/package.json index 72aece3..2bcf3ad 100644 --- a/packages/eslint-plugin-typescript/package.json +++ b/packages/eslint-plugin-typescript/package.json @@ -1,6 +1,6 @@ { "name": "@cloudflight/eslint-plugin-typescript", - "version": "1.0.0-rc8", + "version": "1.0.0-rc9", "description": "Cloudflight eslint-plugin & eslint-config for typescript", "volta": { "extends": "../../package.json" diff --git a/packages/eslint-plugin-typescript/src/configs/typescript-eslint.ts b/packages/eslint-plugin-typescript/src/configs/typescript-eslint.ts index 3cfcb32..33cd9e5 100644 --- a/packages/eslint-plugin-typescript/src/configs/typescript-eslint.ts +++ b/packages/eslint-plugin-typescript/src/configs/typescript-eslint.ts @@ -20,7 +20,7 @@ export const typescriptEslintRules: TSESLint.Linter.RulesRecord = { [`${pluginPrefix}/no-inferrable-types`]: ['error', {ignoreParameters: true}], 'no-invalid-this': 'off', [`${pluginPrefix}/no-invalid-this`]: ['error'], - [`${pluginPrefix}/no-invalid-void-type`]: ['error', {allowInGenericTypeArguments: true}], + [`${pluginPrefix}/no-invalid-void-type`]: ['error', {allowInGenericTypeArguments: true, allowAsThisParameter: true}], 'no-restricted-imports': 'off', [`${pluginPrefix}/no-restricted-imports`]: ['error', {name: 'rxjs/Rx', message: "Please import directly from 'rxjs' instead"}], 'no-shadow': 'off', diff --git a/packages/eslint-plugin-vue/package.json b/packages/eslint-plugin-vue/package.json index e8a75c4..c649467 100644 --- a/packages/eslint-plugin-vue/package.json +++ b/packages/eslint-plugin-vue/package.json @@ -1,6 +1,6 @@ { "name": "@cloudflight/eslint-plugin-vue", - "version": "1.0.0-rc8", + "version": "1.0.0-rc9", "description": "Cloudflight eslint-plugin & eslint-config for vue", "volta": { "extends": "../../package.json"