Skip to content

Commit

Permalink
Remove label-undefined rule (palantir#1614)
Browse files Browse the repository at this point in the history
Resolves palantir#877. This rule is already covered by compiler checks.
  • Loading branch information
adidahiya authored Oct 9, 2016
1 parent 8375782 commit cbe88c3
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 165 deletions.
14 changes: 1 addition & 13 deletions docs/_data/rules.json
Original file line number Diff line number Diff line change
Expand Up @@ -208,18 +208,6 @@
],
"type": "functionality"
},
{
"ruleName": "label-undefined",
"description": "Checks that labels are defined before usage.",
"descriptionDetails": "This rule is now implemented in the TypeScript compiler and does not need to be used.",
"rationale": "Using `break` or `continue` to go to an out-of-scope label is an error in JS.",
"optionsDescription": "Not configurable.",
"options": null,
"optionExamples": [
"true"
],
"type": "functionality"
},
{
"ruleName": "linebreak-style",
"description": "Enforces a consistent linebreak style.",
Expand Down Expand Up @@ -1312,4 +1300,4 @@
],
"type": "style"
}
]
]
14 changes: 0 additions & 14 deletions docs/rules/label-undefined/index.html

This file was deleted.

1 change: 0 additions & 1 deletion src/configs/recommended.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ export const rules = {
"interface-name": [true, "always-prefix"],
"jsdoc-format": true,
"label-position": true,
"label-undefined": true,
"max-line-length": [true, 120],
"member-access": true,
"member-ordering": [true,
Expand Down
75 changes: 0 additions & 75 deletions src/rules/labelUndefinedRule.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@
"rules/interfaceNameRule.ts",
"rules/jsdocFormatRule.ts",
"rules/labelPositionRule.ts",
"rules/labelUndefinedRule.ts",
"rules/linebreakStyleRule.ts",
"rules/maxFileLineCountRule.ts",
"rules/maxLineLengthRule.ts",
Expand Down
55 changes: 0 additions & 55 deletions test/rules/label-undefined/test.ts.lint

This file was deleted.

5 changes: 0 additions & 5 deletions test/rules/label-undefined/tslint.json

This file was deleted.

1 change: 0 additions & 1 deletion test/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@
"../src/rules/interfaceNameRule.ts",
"../src/rules/jsdocFormatRule.ts",
"../src/rules/labelPositionRule.ts",
"../src/rules/labelUndefinedRule.ts",
"../src/rules/linebreakStyleRule.ts",
"../src/rules/maxFileLineCountRule.ts",
"../src/rules/maxLineLengthRule.ts",
Expand Down

0 comments on commit cbe88c3

Please sign in to comment.