aboutsummaryrefslogtreecommitdiffstats
path: root/packages/tslint-config
diff options
context:
space:
mode:
Diffstat (limited to 'packages/tslint-config')
-rw-r--r--packages/tslint-config/tslint.json100
1 files changed, 81 insertions, 19 deletions
diff --git a/packages/tslint-config/tslint.json b/packages/tslint-config/tslint.json
index 374419b69..30aaf6538 100644
--- a/packages/tslint-config/tslint.json
+++ b/packages/tslint-config/tslint.json
@@ -1,8 +1,15 @@
{
- "extends": ["tslint:latest", "tslint-react", "tslint-eslint-rules"],
+ "extends": [
+ "tslint:latest",
+ "tslint-react",
+ "tslint-eslint-rules"
+ ],
"rules": {
"adjacent-overload-signatures": true,
- "arrow-parens": [true, "ban-single-arg-parens"],
+ "arrow-parens": [
+ true,
+ "ban-single-arg-parens"
+ ],
"arrow-return-shorthand": true,
"async-suffix": true,
"await-promise": true,
@@ -14,37 +21,70 @@
true,
{
"functions": {
- "visibilities": ["exported"]
+ "visibilities": [
+ "exported"
+ ]
},
"methods": {
"locations": "instance",
- "privacies": ["public", "protected"]
+ "privacies": [
+ "public",
+ "protected"
+ ]
}
}
],
"curly": true,
- "custom-no-magic-numbers": [true, 0, 1, 2, 3, -1],
+ "custom-no-magic-numbers": [
+ true,
+ 0,
+ 1,
+ 2,
+ 3,
+ -1
+ ],
"encoding": true,
"eofline": true,
"import-spacing": true,
- "indent": [true, "spaces", 4],
+ "indent": [
+ true,
+ "spaces",
+ 4
+ ],
"interface-name": false,
"interface-over-type-literal": true,
"jsx-alignment": true,
"jsx-boolean-value": true,
- "jsx-curly-spacing": [true, "never"],
+ "jsx-curly-spacing": [
+ true,
+ "never"
+ ],
"jsx-no-bind": false,
"jsx-no-lambda": true,
"jsx-no-multiline-js": false,
"jsx-no-string-ref": true,
"jsx-self-close": true,
"jsx-wrap-multiline": false,
- "linebreak-style": [true, "LF"],
- "max-classes-per-file": [true, 1],
- "max-file-line-count": [true, 500],
+ "linebreak-style": [
+ true,
+ "LF"
+ ],
+ "max-classes-per-file": [
+ true,
+ 1
+ ],
+ "max-file-line-count": [
+ true,
+ 500
+ ],
"max-line-length": false,
"member-access": true,
- "member-ordering": [true, "public-before-private", "static-before-instance", "variables-before-functions"],
+ "member-ordering": [
+ true,
+ "public-before-private",
+ "static-before-instance",
+ "variables-before-functions"
+ ],
"new-parens": true,
"newline-before-return": false,
"no-angle-bracket-type-assertion": true,
@@ -57,13 +97,15 @@
"no-empty-interface": false,
"no-eval": true,
"no-floating-promises": true,
- "no-implicit-dependencies": [true, "dev"],
+ "no-implicit-dependencies": [
+ true,
+ "dev"
+ ],
"no-inferred-empty-object-type": true,
"no-invalid-template-strings": true,
"no-invalid-this": true,
"no-misused-new": true,
"no-non-null-assertion": true,
- "no-redundant-jsdoc": true,
"no-parameter-reassignment": true,
"no-redundant-jsdoc": true,
"no-return-await": true,
@@ -78,7 +120,10 @@
"no-unnecessary-class": true,
"no-unnecessary-type-assertion": true,
"no-unsafe-finally": true,
- "no-unused-variable": [true, "check-parameters"],
+ "no-unused-variable": [
+ true,
+ "check-parameters"
+ ],
"number-literal-format": true,
"object-literal-key-quotes": false,
"object-literal-sort-keys": false,
@@ -94,9 +139,17 @@
"prefer-object-spread": true,
"prefer-readonly": true,
"promise-function-async": true,
- "quotemark": [true, "single", "avoid-escape", "jsx-double"],
+ "quotemark": [
+ true,
+ "single",
+ "avoid-escape",
+ "jsx-double"
+ ],
"restrict-plus-operands": true,
- "semicolon": [true, "always"],
+ "semicolon": [
+ true,
+ "always"
+ ],
"space-before-function-paren": [
true,
{
@@ -110,9 +163,18 @@
"space-within-parens": false,
"switch-default": true,
"type-literal-delimiter": true,
- "typedef": [true, "call-signature", "parameter", "property-declaration"],
+ "typedef": [
+ true,
+ "call-signature",
+ "parameter",
+ "property-declaration"
+ ],
"underscore-private-and-protected": true,
- "variable-name": [true, "ban-keywords", "allow-pascal-case"],
+ "variable-name": [
+ true,
+ "ban-keywords",
+ "allow-pascal-case"
+ ],
"whitespace": [
true,
"check-branch",
@@ -126,4 +188,4 @@
]
},
"rulesDirectory": "lib/rules"
-}
+} \ No newline at end of file