Skip to content

Commit

Permalink
chore: do not require typedef for variables
Browse files Browse the repository at this point in the history
Typedef is inferred so most of the time it just duplicates
the information for variables.
  • Loading branch information
oscarlorentzon committed Dec 22, 2020
1 parent b5f08f9 commit c1f38e6
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions tslint.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
{
"extends": "tslint:recommended",
"rules": {
// TypeScript Specific
"adjacent-overload-signatures": false,
"ban-types": false,
"member-access": true,
"member-ordering": [true, {"order": "fields-first"}],
"member-ordering": [
true,
{
"order": "fields-first"
}
],
"no-any": false,
"no-empty-interface": false,
"no-namespace": false,
Expand All @@ -17,12 +21,9 @@
"call-signature",
"parameter",
"property-declaration",
"variable-declaration",
"member-variable-declaration"
],
"unified-signatures": false,

// Functionality
"no-bitwise": false,
"no-console": [
true,
Expand All @@ -32,26 +33,31 @@
"timeEnd",
"trace"
],
"no-submodule-imports": [true, "rxjs"],
"no-submodule-imports": [
true,
"rxjs"
],
"no-switch-case-fall-through": true,
"no-unnecessary-class": [true, "allow-static-only"],

// Maintainability
"no-unnecessary-class": [
true,
"allow-static-only"
],
"max-classes-per-file": false,
"max-line-length": [
true,
140
],
"prefer-const": false,

// Style
"align": [
true,
"parameters",
"arguments",
"statements"
],
"array-type": [true, "array"],
"array-type": [
true,
"array"
],
"arrow-return-shorthand": false,
"callable-types": false,
"comment-format": [
Expand Down

0 comments on commit c1f38e6

Please sign in to comment.