Enable TSLint Mocha rules
This commit is contained in:
parent
9d159da79c
commit
0daccee209
1 changed files with 10 additions and 1 deletions
11
tslint.json
11
tslint.json
|
@ -8,6 +8,13 @@
|
|||
"rules": {
|
||||
"array-type": [true, "generic"],
|
||||
"interface-name": [true, "never-prefix"],
|
||||
|
||||
"mocha-avoid-only": true,
|
||||
// Disabled until we can allow dynamically generated tests:
|
||||
// https://github.com/Microsoft/tslint-microsoft-contrib/issues/85#issuecomment-371749352
|
||||
"mocha-no-side-effect-code": false,
|
||||
"mocha-unneeded-done": true,
|
||||
|
||||
"no-consecutive-blank-lines": [true, 2],
|
||||
"object-literal-key-quotes": [true, "as-needed"],
|
||||
"object-literal-sort-keys": false,
|
||||
|
@ -22,5 +29,7 @@
|
|||
"quotemark": [true, "single", "jsx-double", "avoid-template", "avoid-escape"]
|
||||
|
||||
},
|
||||
"rulesDirectory": []
|
||||
"rulesDirectory": [
|
||||
"node_modules/tslint-microsoft-contrib"
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue