Skip to content

Commit ae5215f

Browse files
authored
Update 4_extras.md (piotrwitek#28)
added trailing comma rule to tslint fixed formatting
1 parent 6f7a0a8 commit ae5215f

File tree

1 file changed

+19
-10
lines changed

1 file changed

+19
-10
lines changed

docs/markdown/4_extras.md

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,10 @@
6969
"comment-format": [true, "check-space"],
7070
"import-blacklist": [true, "rxjs"],
7171
"interface-over-type-literal": false,
72+
"interface-name": false,
7273
"max-line-length": [true, 120],
7374
"member-access": false,
74-
"member-ordering": [true, {
75-
"order": "fields-first"
76-
}],
75+
"member-ordering": [true, { "order": "fields-first" }],
7776
"newline-before-return": false,
7877
"no-any": false,
7978
"no-empty-interface": false,
@@ -82,12 +81,9 @@
8281
"no-invalid-this": [true, "check-function-in-method"],
8382
"no-null-keyword": false,
8483
"no-require-imports": false,
85-
"no-switch-case-fall-through": true,
86-
"no-submodule-imports": [true, "rxjs", "@src"],
84+
"no-submodule-imports": [true, "@src", "rxjs"],
85+
"no-this-assignment": [true, { "allow-destructuring": true }],
8786
"no-trailing-whitespace": true,
88-
"no-this-assignment": [true, {
89-
"allow-destructuring": true
90-
}],
9187
"no-unused-variable": [true, "react"],
9288
"object-literal-sort-keys": false,
9389
"object-literal-shorthand": false,
@@ -96,11 +92,24 @@
9692
"ordered-imports": [false],
9793
"prefer-method-signature": false,
9894
"prefer-template": [true, "allow-single-concat"],
99-
"semicolon": [true, "ignore-interfaces"],
10095
"quotemark": [true, "single", "jsx-double"],
96+
"semicolon": [true, "always"],
97+
"trailing-comma": [true, {
98+
"singleline": "never",
99+
"multiline": {
100+
"objects": "always",
101+
"arrays": "always",
102+
"functions": "never",
103+
"typeLiterals": "ignore"
104+
},
105+
"esSpecCompliant": true
106+
}],
101107
"triple-equals": [true, "allow-null-check"],
108+
"type-literal-delimiter": true,
102109
"typedef": [true,"parameter", "property-declaration"],
103-
"variable-name": [true, "ban-keywords", "check-format", "allow-pascal-case", "allow-leading-underscore"]
110+
"variable-name": [true, "ban-keywords", "check-format", "allow-pascal-case", "allow-leading-underscore"],
111+
// tslint-react
112+
"jsx-no-lambda": false
104113
}
105114
}
106115
```

0 commit comments

Comments
 (0)