tslint-clean-code
Version:
TSLint rules for enforcing Clean Code
43 lines (36 loc) • 821 B
text/typescript
// module names
namespace WrapperConstructor {
namespace constructor {
// class names
class constructor {}
}
}
namespace SampleConstructor1 {
// module variables
var constructor;
}
namespace SampleConstructor2 {
// module function
function constructor() {}
}
// class properties
class SampleConstructor4 {
private var;
set constructor(value) {}
get constructor() {
return this.var;
}
}
class SampleConstructor5 {
constructor() {} // class methods
method(constructor) {} // method parameters
private func = constructor => {}; // arrow function parameters
}
// interface declarations
interface SampleConstructor6 {
constructor: any;
}
// function parameters
function methodConstructor(constructor) {}
// local variables
var constructor;