Open scink opened 6 years ago
adjacent-overload-signatures Enforces function overloads to be consecutive - in which way?
max-classes-per-file A file may not contain more than the specified number of classes. - which one?
member-access Requires explicit visibility declarations for class members. - only with no-public
no-empty-interface Forbids empty interfaces. - does it allow empty inheritance (like Monad)?
add tslint-immutable
also add a rule similar to tsconfig no-unused-locals
@raveclassic I believe there is no such rule anymore
@sutarmin we can always include its source in the lint
package
we can always include its source
Valid point. I found custom rule no-unused
but it's doing a bit more than just no-unused-locals
, details here. I think we might give it a try. I'm not sure if it's a good idea to copy-paste source to our repo but it's the easiest approach. What do you think, guys?
I am suggest to add this code to our repo.
i suggest to add next rules:
() => { return x; }
to() => x
.any
as a type declaration.x === true
.no-construct - Disallows access to the constructors ofString
,Number
, andBoolean
.console
methods.no-debugger - Disallowsdebugger
statements.super()
appears twice in a constructor.no-duplicate-switch-case - Prevents duplicate cases in switch statements.no-duplicate-variable - Disallows duplicate variable declarations in the same block scope.no-namespace - Disallows use of internal modules andnamespace
s.!
postfix operator.no-require-imports - Disallows invocation ofrequire()
.no-var-keyword - Disallows usage of thevar
keyword.object-literal-shorthand - Enforces/disallows use of ES6 object literal shorthand.prefer-const - Requires that variable declarations useconst
instead oflet
andvar
if possible.switch
statement to anif
statement with simple===
comparisons.radix - Requires the radix parameter to be specified when calling parseInt.triple-equals - Requires===
and!==
in place of==
and!=
.