Skip to content
This repository was archived by the owner on Oct 3, 2024. It is now read-only.

Commit b20aa23

Browse files
Remove generator-without-yield (#264)
Removing the rule as it is available as part of eslint core set
1 parent 6e06d59 commit b20aa23

File tree

5 files changed

+0
-224
lines changed

5 files changed

+0
-224
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ SonarJS rules for ESLint to detect bugs and suspicious patterns in your code.
88

99
Rules in this category aim to find places in code which have a high chance of being bugs, i.e. don't work as intended.
1010

11-
* Generators should "yield" something ([`generator-without-yield`])
1211
* All branches in a conditional structure should not have exactly the same implementation ([`no-all-duplicated-branches`])
1312
* Collection elements should not be replaced unconditionally ([`no-element-overwrite`])
1413
* Empty collections should not be accessed or iterated ([`no-empty-collection`])
@@ -49,7 +48,6 @@ Code Smells, or maintainability issues, are raised for places of code which migh
4948

5049
[`cognitive-complexity`]: ./docs/rules/cognitive-complexity.md
5150
[`elseif-without-else`]: ./docs/rules/elseif-without-else.md
52-
[`generator-without-yield`]: ./docs/rules/generator-without-yield.md
5351
[`max-switch-cases`]: ./docs/rules/max-switch-cases.md
5452
[`no-all-duplicated-branches`]: ./docs/rules/no-all-duplicated-branches.md
5553
[`no-collapsible-if`]: ./docs/rules/no-collapsible-if.md

docs/rules/generator-without-yield.md

Lines changed: 0 additions & 24 deletions
This file was deleted.

src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import { TSESLint } from '@typescript-eslint/experimental-utils';
2222
const sonarjsRules: string[] = [
2323
'cognitive-complexity',
2424
'elseif-without-else',
25-
'generator-without-yield',
2625
'max-switch-cases',
2726
'no-all-duplicated-branches',
2827
'no-collapsible-if',

src/rules/generator-without-yield.ts

Lines changed: 0 additions & 69 deletions
This file was deleted.

tests/rules/generator-without-yield.test.ts

Lines changed: 0 additions & 128 deletions
This file was deleted.

0 commit comments

Comments
 (0)