Created
January 30, 2020 23:12
-
-
Save stephenway/b4a0fa9231d1a166691b265955f559a5 to your computer and use it in GitHub Desktop.
TSLint Member Ordering Warning
This file contains hidden or 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
Warning: member-ordering - Direct string option is deprecated and does not support accessors. | |
See also https://palantir.github.io/tslint/rules/member-ordering/ | |
You should replace "variables-before-functions" | |
with the following equivalent options and add -accessor categories as appropriate: | |
[ | |
{ | |
"name": "field", | |
"kinds": [ | |
"public-static-field", | |
"protected-static-field", | |
"private-static-field", | |
"public-instance-field", | |
"protected-instance-field", | |
"private-instance-field" | |
] | |
}, | |
{ | |
"name": "method", | |
"kinds": [ | |
"public-static-method", | |
"private-static-method", | |
"protected-static-method", | |
"public-constructor", | |
"protected-constructor", | |
"private-constructor", | |
"public-instance-method", | |
"protected-instance-method", | |
"private-instance-method", | |
"public-static-accessor", | |
"protected-static-accessor", | |
"private-static-accessor", | |
"public-instance-accessor", | |
"protected-instance-accessor", | |
"private-instance-accessor" | |
] | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment