-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add some tslint rules #47
Comments
adjacent-overload-signatures max-classes-per-file member-access no-empty-interface |
add tslint-immutable |
also add a rule similar to tsconfig |
@raveclassic I believe there is no such rule anymore |
@sutarmin we can always include its source in the |
Valid point. I found custom rule |
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!=
.The text was updated successfully, but these errors were encountered: