session-desktop/tslint.json
Daniel Gasienica a8bca9b8eb TSLint: Enforce indentation with 2 spaces
Not sure if this rule actually works.
2018-04-25 15:24:51 -04:00

40 lines
1.2 KiB
JSON

{
"defaultSeverity": "error",
"extends": [
"tslint:recommended",
"tslint-react"
],
"jsRules": {},
"rules": {
"align": [true, "arguments", "elements", "members", "parameters", "statements"],
"array-type": [true, "generic"],
"import-spacing": false,
"indent": [true, "spaces", 2],
"interface-name": [true, "never-prefix"],
"max-line-length": [true, 90],
"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,
// Ignore import sources order until we can specify that we want ordering
// based on import name vs module name:
"ordered-imports": [true, {
"import-sources-order": "any",
"named-imports-order": "case-insensitive"
}],
"quotemark": [true, "single", "jsx-double", "avoid-template", "avoid-escape"]
},
"rulesDirectory": [
"node_modules/tslint-microsoft-contrib"
]
}