I have the following rules in my tslint.json :
"member-ordering": [
true,
{
"order": [
"public-before-private",
"static-before-instance",
"variables-before-functions"
]
}
],
However I still get this warning :
Warning: member-ordering - Bad member kind: public-before-private
Typescrypt version is 3.1.1
Node version is 10.10.0
order
array are not recognized bytslint
. Read aboutmember-ordering
in the documentation. – Shearstslint.json
the exact order you want or you can specify only some components (f.e. let the static methods out) and the missing components can stay anywhere in the class. – Shears