@samsystem/tslint-config
Advanced tools
+79
-102
| { | ||
| "extends": [ | ||
| "tslint-config-airbnb" | ||
| ], | ||
| "rules": { | ||
| "switch-default": true, | ||
| "max-line-length": [ | ||
| true, | ||
| 180 | ||
| ], | ||
| "ter-indent": [ | ||
| true, | ||
| 4, | ||
| { | ||
| "FunctionDeclaration": { | ||
| "parameters": 1, | ||
| "body": 1 | ||
| }, | ||
| "FunctionExpression": { | ||
| "parameters": 1, | ||
| "body": 1 | ||
| }, | ||
| "MemberExpression": 1, | ||
| "SwitchCase": 1 | ||
| } | ||
| ], | ||
| "ter-arrow-parens": [ | ||
| true, | ||
| "as-needed", | ||
| { | ||
| "requireForBlockBody": true | ||
| } | ||
| ], | ||
| "no-unnecessary-initializer": false, | ||
| "no-var-requires": true, | ||
| "no-null-keyword": false, | ||
| "quotemark": [ | ||
| true, | ||
| "single", | ||
| "avoid-escape" | ||
| ], | ||
| "interface-name": [ | ||
| true, | ||
| "always-prefix" | ||
| ], | ||
| "no-empty-interface": true, | ||
| "no-namespace": false, | ||
| "ordered-imports": false, | ||
| "object-literal-sort-keys": false, | ||
| "arrow-parens": false, | ||
| "no-string-literal": false, | ||
| "member-ordering": [ | ||
| true, | ||
| { | ||
| "order": [ | ||
| "public-static-field", | ||
| "public-static-method", | ||
| "protected-static-field", | ||
| "protected-static-method", | ||
| "private-static-field", | ||
| "private-static-method", | ||
| "public-instance-field", | ||
| "protected-instance-field", | ||
| "private-instance-field", | ||
| "public-constructor", | ||
| "protected-constructor", | ||
| "private-constructor", | ||
| "public-instance-method", | ||
| "protected-instance-method", | ||
| "private-instance-method" | ||
| ] | ||
| } | ||
| ], | ||
| "no-inferrable-types": [ | ||
| true, | ||
| "ignore-params" | ||
| ], | ||
| "typedef": [ | ||
| true, | ||
| "call-signature", | ||
| "parameter" | ||
| ], | ||
| "trailing-comma": [ | ||
| true, | ||
| { | ||
| "multiline": { | ||
| "objects": "always", | ||
| "arrays": "always", | ||
| "functions": "never", | ||
| "typeLiterals": "ignore" | ||
| }, | ||
| "singleline": "never" | ||
| } | ||
| ], | ||
| "no-parameter-reassignment": false, | ||
| "no-console": true, | ||
| "variable-name": [ | ||
| true, | ||
| "ban-keywords", | ||
| "check-format" | ||
| ], | ||
| "newline-before-return": true | ||
| } | ||
| "extends": ["tslint-config-airbnb"], | ||
| "rules": { | ||
| "switch-default": true, | ||
| "max-line-length": [true, 180], | ||
| "ter-indent": [ | ||
| true, | ||
| 4, | ||
| { | ||
| "FunctionDeclaration": { | ||
| "parameters": 1, | ||
| "body": 1 | ||
| }, | ||
| "FunctionExpression": { | ||
| "parameters": 1, | ||
| "body": 1 | ||
| }, | ||
| "MemberExpression": 1, | ||
| "SwitchCase": 1 | ||
| } | ||
| ], | ||
| "ter-arrow-parens": [ | ||
| true, | ||
| "as-needed", | ||
| { | ||
| "requireForBlockBody": true | ||
| } | ||
| ], | ||
| "no-unnecessary-initializer": false, | ||
| "no-var-requires": true, | ||
| "no-null-keyword": false, | ||
| "quotemark": [true, "single", "avoid-escape"], | ||
| "interface-name": [true, "always-prefix"], | ||
| "no-empty-interface": true, | ||
| "no-namespace": false, | ||
| "ordered-imports": false, | ||
| "object-literal-sort-keys": false, | ||
| "arrow-parens": false, | ||
| "no-string-literal": false, | ||
| "member-ordering": [ | ||
| true, | ||
| { | ||
| "order": [ | ||
| "public-static-field", | ||
| "public-static-method", | ||
| "protected-static-field", | ||
| "protected-static-method", | ||
| "private-static-field", | ||
| "private-static-method", | ||
| "public-instance-field", | ||
| "protected-instance-field", | ||
| "private-instance-field", | ||
| "public-constructor", | ||
| "protected-constructor", | ||
| "private-constructor", | ||
| "public-instance-method", | ||
| "protected-instance-method", | ||
| "private-instance-method" | ||
| ] | ||
| } | ||
| ], | ||
| "no-inferrable-types": [true, "ignore-params"], | ||
| "typedef": [true, "call-signature", "parameter"], | ||
| "trailing-comma": [ | ||
| true, | ||
| { | ||
| "multiline": { | ||
| "objects": "always", | ||
| "arrays": "always", | ||
| "functions": "always", | ||
| "typeLiterals": "ignore" | ||
| }, | ||
| "singleline": "always" | ||
| } | ||
| ], | ||
| "no-parameter-reassignment": false, | ||
| "no-console": true, | ||
| "variable-name": [true, "ban-keywords", "check-format"], | ||
| "newline-before-return": true | ||
| } | ||
| } |
+2
-2
| { | ||
| "name": "@samsystem/tslint-config", | ||
| "description": "TSLint configuration", | ||
| "version": "0.0.4", | ||
| "version": "0.0.5", | ||
| "bugs": { | ||
@@ -31,3 +31,3 @@ "url": "https://github.com/samsystems/samsystems-utils/issues" | ||
| "contributors": [], | ||
| "gitHead": "dcc8418beca257352dcf2c6d1dccd0116c11042d", | ||
| "gitHead": "ea231d6efaf454973c5702cc6733e6a9d710c8d2", | ||
| "publishConfig": { | ||
@@ -34,0 +34,0 @@ "access": "public" |
4299
10.03%117
-16.43%