forked from palantir/tslint
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert recent
member-ordering
changes (palantir#2118)
* Revert "member-ordering: Support categories (palantir#2041)" This reverts commit 18e7604. * Revert "Rewrite member-ordering rule (palantir#1957)" This reverts commit e6ca414.
- Loading branch information
Showing
21 changed files
with
274 additions
and
407 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
12 changes: 0 additions & 12 deletions
12
test/rules/member-ordering/omit-access-modifier/test.ts.lint
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
class Foo { | ||
private x: number; | ||
private bar(): any { | ||
var bla: { a: string } = {a: '1'}; | ||
} | ||
y: number; | ||
~~~~~~~~~~ [0] | ||
} | ||
|
||
[0]: Declaration of public instance member variable not allowed to appear after declaration of private instance member function |
File renamed without changes.
10 changes: 0 additions & 10 deletions
10
test/rules/member-ordering/public-before-private/test.ts.lint
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
test/rules/member-ordering/static-before-instance/test.ts.lint
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
class Foo { | ||
x: number; | ||
static y: number; | ||
~~~~~~~~~~~~~~~~~ [0] | ||
constructor() { | ||
// nothing to do | ||
} | ||
} | ||
|
||
[0]: Declaration of public static member variable not allowed to appear after declaration of public instance member variable |
File renamed without changes.