daml/navigator/frontend/tslint.json
Robert Autenrieth 16c33a77d7
Update Navigator dependencies (#3550)
* Update webpack to 4.x

CHANGELOG_BEGIN
CHANGELOG_END

* Update webpack plugins

* Remove webpack git plugin

* Update webpack plugins

* Update webpack config

* Update typescript

Including fixing new compiler errors
and removing obsolete tslint warnings.

* Update webpack

* Update webpack plugins

including fixing new tslint-react warnings
2020-02-19 23:51:32 +01:00

68 lines
2.3 KiB
JSON

{
"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-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, {"esSpecCompliant": true, "multiline": "always", "singleline": "never"}],
"triple-equals": 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"]
}
}