github-desktop/tslint.json
2017-01-30 13:48:01 +01:00

107 lines
2.3 KiB
JSON

{
"rulesDirectory": [
"node_modules/vrsource-tslint-rules/rules",
"node_modules/@niik/tslint-microsoft-contrib/",
"tslint-rules/"
],
"rules": {
"button-group-order": true,
"class-name": true,
"curly": true,
"indent": [
true,
"spaces"
],
"insecure-random": [ true ],
"interface-name": [ true, "always-prefix"],
"jsdoc-format": true,
"literal-spacing": [
true,
{
"array": ["always"],
"object": ["always"]
}
],
"member-access": [
true,
"check-accessor",
"check-constructor"
],
"member-ordering": [
true,
"static-before-instance",
"variables-before-functions"
],
"no-construct": true,
"no-default-export": true,
"no-duplicate-key": true,
"no-duplicate-variable": true,
"no-eval": true,
"no-internal-module": true,
"no-invalid-this": true,
"no-stateless-class": true,
"no-trailing-whitespace": true,
"no-unused-expression": true,
"no-unused-variable": [true, "react"],
"no-use-before-declare": true,
"no-var-keyword": true,
"one-line": [
true,
"check-open-brace",
"check-whitespace"
],
"prefer-const": true,
"promise-must-complete": true,
"quotemark": [
true,
"single"
],
"react-no-unbound-dispatcher-props": true,
"react-proper-lifecycle-methods": true,
"react-readonly-props-and-state": true,
"react-unused-props-and-state": [ true,
{
"props-interface-regex": "Props$",
"state-interface-regex": "State$"
}
],
"react-this-binding-issue": true,
"semicolon": [
true,
"never"
],
"trailing-comma": [
true,
{
"multiline": "always",
"singleline": "never"
}
],
"triple-equals": [
true,
"allow-null-check"
],
"typedef-whitespace": [
true,
{
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
}
],
"variable-name": [
true,
"ban-keywords"
],
"whitespace": [
true,
"check-branch",
"check-decl",
"check-operator",
"check-separator",
"check-type"
]
}
}