tslint-clean-code
Version:
TSLint rules for enforcing Clean Code
44 lines (34 loc) • 608 B
text/typescript
// module names
namespace static {
}
namespace SampleStatic1 {
// module variables
var static;
}
namespace SampleStatic2 {
// module function
function static() {}
}
class SampleStatic3 {
// class variables
private static;
}
// class properties
class SampleStatic4 {
private var;
set static(value) {}
get static() {
return this.var;
}
}
class SampleStatic5 {
static() {} // class methods
}
// interface declarations
interface SampleStatic6 {
static: any;
}
// function parameters
function methodStatic(static) {}
// local variables
var static;