daml/navigator/frontend/tslint.json

71 lines
2.4 KiB
JSON
Raw Normal View History

2019-04-04 11:33:38 +03:00
{
"extends": ["tslint-react"],
"rules": {
"align": [true, "parameters", "statements"],
"array-type": [true, "array"],
"arrow-parens": true,
"arrow-return-shorthand": [true, "multiline"],
"callable-types": true,
"class-name": true,
"curly": true,
"eofline": true,
"import-spacing": true,
"indent": [true, "spaces"],
"interface-name": [true, "never-prefix"],
"jsdoc-format": true,
"jsx-boolean-value": "always",
"jsx-curly-spacing": "never",
"jsx-no-lambda": false,
"jsx-no-multiline-js": false,
"jsx-no-string-ref": true,
"jsx-self-close": true,
"jsx-wrap-multiline": true,
"max-line-length": [true, 120],
"new-parens": true,
"no-angle-bracket-type-assertion": true,
"no-any": true,
"no-boolean-literal-compare": true,
"no-conditional-assignment": true,
"no-consecutive-blank-lines": [true, 2],
"no-construct": true,
"no-duplicate-super": true,
"no-duplicate-variable": true,
"no-empty-interface": true,
"no-empty": true,
"no-eval": true,
"no-for-in-array": true,
"no-invalid-this": true,
"no-namespace": true,
"no-reference": true,
"no-shadowed-variable": true,
"no-string-literal": true,
"no-string-throw": true,
"no-switch-case-fall-through": true,
"no-trailing-whitespace": true,
"no-unnecessary-initializer": true,
"no-unsafe-finally": true,
"no-unused-expression": true,
"no-unused-variable": [true, "react"],
"no-use-before-declare": true,
"no-var-keyword": true,
"no-var-requires": true,
"object-literal-key-quotes": [true, "consistent-as-needed"],
"object-literal-shorthand": true,
"one-variable-per-declaration": [true],
"ordered-imports": [true],
"prefer-const": true,
"prefer-function-over-method": [true, "allow-public"],
"prefer-method-signature": true,
"quotemark": [true, "single", "jsx-double"],
"restrict-plus-operands": true,
"semicolon": ["always"],
"space-before-function-paren": [true, "never"],
"trailing-comma": [true, {"multiline": "always", "singleline": "never"}],
"triple-equals": true,
"typeof-compare": true,
"use-isnan": true,
"variable-name": [true, "ban-keywords", "check-format", "allow-leading-underscore", "allow-pascal-case"],
"whitespace": [true, "check-branch", "check-operator", "check-typecast", "check-decl", "check-separator", "check-type"]
}
}