Permalink
Browse files

Setup tslint

  • Loading branch information...
Justin-Credible committed Aug 14, 2016
1 parent 839ab38 commit 557e896e98e84873fd7f141a2476b30b233233e2
Showing with 60 additions and 0 deletions.
  1. +1 −0 .vscode/settings.json
  2. +1 −0 package.json
  3. +58 −0 tslint.json
View
@@ -1,3 +1,4 @@
{
+ "tslint.configFile": "tslint.json",
"typescript.tsdk": "node_modules/typescript/lib"
}
View
@@ -8,6 +8,7 @@
"dependencies": {
"react": "15.2.1",
"react-native": "0.31.0",
+ "tslint": "3.14.0",
"typescript": "1.8.10",
"typings": "1.3.2"
}
View
@@ -0,0 +1,58 @@
+{
+ "rules": {
+ "class-name": true,
+ "comment-format": [
+ true,
+ "check-space"
+ ],
+ "indent": [
+ true,
+ "spaces"
+ ],
+ "no-duplicate-variable": true,
+ "no-eval": true,
+ "no-internal-module": true,
+ "no-trailing-whitespace": true,
+ "no-unsafe-finally": true,
+ "no-var-keyword": true,
+ "one-line": [
+ true,
+ "check-open-brace",
+ "check-whitespace"
+ ],
+ "quotemark": [
+ true,
+ "double"
+ ],
+ "semicolon": [
+ true,
+ "always"
+ ],
+ "triple-equals": [
+ true,
+ "allow-null-check"
+ ],
+ "typedef-whitespace": [
+ true,
+ {
+ "call-signature": "nospace",
+ "index-signature": "nospace",
+ "parameter": "nospace",
+ "property-declaration": "nospace",
+ "variable-declaration": "nospace"
+ }
+ ],
+ "variable-name": [
+ true,
+ "ban-keywords"
+ ],
+ "whitespace": [
+ true,
+ "check-branch",
+ "check-decl",
+ "check-operator",
+ "check-separator",
+ "check-type"
+ ]
+ }
+}

0 comments on commit 557e896

Please sign in to comment.