Skip to content

Commit

Permalink
Add tslint.json
Browse files Browse the repository at this point in the history
  • Loading branch information
angellandros committed Oct 18, 2019
1 parent 76a1212 commit e2687ae
Show file tree
Hide file tree
Showing 2 changed files with 139 additions and 2 deletions.
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@
"express": "^4.17.1",
"typescript": "^3.6.4"
},
"devDependencies": {},
"devDependencies": {
"tslint": "^5.20.0"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"lint": "tslint -c tslint.json 'src/**/*.ts'"
},
"repository": {
"type": "git",
Expand Down
135 changes: 135 additions & 0 deletions tslint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
{
"rules": {
"align": [
true,
"parameters",
"statements"
],
"ban": false,
"class-name": true,
"comment-format": [
true,
"check-space"
],
"curly": false,
"eofline": true,
"forin": true,
"indent": [
true,
"spaces"
],
"linebreak-style": [
true,
"LF"
],
"interface-name": false,
"jsdoc-format": true,
"label-position": true,
"max-line-length": [
true,
140
],
"member-ordering": [
true,
{
"order": [
"public-static-field",
"public-instance-field",
"public-constructor",
"private-static-field",
"private-instance-field",
"private-constructor",
"public-instance-method",
"protected-instance-method",
"private-instance-method"
]
}
],
"no-any": false,
"no-arg": true,
"no-bitwise": true,
"no-console": [
true,
"debug",
"info",
"time",
"timeEnd",
"trace"
],
"no-construct": true,
"no-constructor-vars": false,
"no-debugger": true,
"no-shadowed-variable": true,
"no-duplicate-variable": true,
"no-empty": true,
"no-eval": true,
"no-internal-module": true,
"no-require-imports": true,
"no-string-literal": true,
"no-switch-case-fall-through": true,
"trailing-comma": {
"options": {
"multiline": "always"
}
},
"no-trailing-whitespace": true,
"no-unused-expression": true,
"no-var-keyword": true,
"no-var-requires": false,
"one-line": [
true,
"check-open-brace",
"check-catch",
"check-else",
"check-whitespace"
],
"quotemark": [
true,
"single"
],
"radix": true,
"semicolon": [
true,
"always"
],
"switch-default": true,
"triple-equals": [
true,
"allow-null-check"
],
"typedef": [
false,
"call-signature",
"parameter",
"property-declaration",
"member-variable-declaration"
],
"typedef-whitespace": [
true,
{
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
}
],
"use-strict": [
false,
"check-module",
"check-function"
],
"variable-name": [
true,
"ban-keywords"
],
"whitespace": [
true,
"check-branch",
"check-decl",
"check-operator",
"check-separator",
"check-type"
]
}
}

0 comments on commit e2687ae

Please sign in to comment.