Skip to content
This repository has been archived by the owner on Dec 4, 2022. It is now read-only.

Commit

Permalink
feat(core): update rules [email protected]
Browse files Browse the repository at this point in the history
  • Loading branch information
savushkin committed Feb 11, 2020
1 parent 436874f commit f7f5ef0
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
},
"peerDependencies": {
"codelyzer": "^5.0.0",
"tslint": ">=5.20.0"
"tslint": ">=6.0.0"
},
"husky": {
"hooks": {
Expand Down
68 changes: 65 additions & 3 deletions tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,71 @@
],
"member-ordering": [
true,
"public-before-private",
"static-before-instance",
"variables-before-functions"
{
"order": [
{
"name": "public static field",
"kinds": [
"public-static-field",
"protected-static-field"
]
},
{
"name": "private static field",
"kinds": [
"private-static-field"
]
},
{
"name": "public instance field",
"kinds": [
"public-instance-field",
"protected-instance-field"
]
},
{
"name": "private instance field",
"kinds": [
"private-instance-field"
]
},
{
"name": "public static method",
"kinds": [
"public-static-method",
"protected-static-method",
"public-static-accessor",
"protected-static-accessor"
]
},
{
"name": "private static method",
"kinds": [
"private-static-method",
"private-static-accessor"
]
},
{
"name": "public instance method",
"kinds": [
"public-constructor",
"protected-constructor",
"public-instance-method",
"protected-instance-method",
"public-instance-accessor",
"protected-instance-accessor"
]
},
{
"name": "private instance method",
"kinds": [
"private-constructor",
"private-instance-method",
"private-instance-accessor"
]
}
]
}
],
"prefer-readonly": true,
"adjacent-overload-signatures": [
Expand Down

0 comments on commit f7f5ef0

Please sign in to comment.