Browse Source

putting a tslint configuration file with some decent settings at the root of atomic examples so that all typescript examples will use the same settings. These settings will get picked up by the linter in Atom if the TSLint plugin is installed.

Shaddock Heath 10 years ago
parent
commit
3f047834ae
1 changed files with 52 additions and 0 deletions
  1. 52 0
      tslint.json

+ 52 - 0
tslint.json

@@ -0,0 +1,52 @@
+{
+  "rules": {
+    "class-name": true,
+    "curly": true,
+    "eofline": false,
+    "forin": false,
+    "indent": [true, 4],
+    "label-position": true,
+    "label-undefined": true,
+    "max-line-length": false,
+    "no-arg": true,
+    "no-bitwise": false,
+    "no-console": [true,
+      "debug",
+      "info",
+      "time",
+      "timeEnd",
+      "trace"
+    ],
+    "no-construct": true,
+    "no-debugger": true,
+    "no-duplicate-key": true,
+    "no-duplicate-variable": true,
+    "no-empty": false,
+    "no-eval": true,
+    "no-imports": true,
+    "no-string-literal": false,
+    "no-trailing-comma": true,
+    "no-trailing-whitespace": true,
+    "no-unused-variable": false,
+    "no-unreachable": true,
+    "no-use-before-declare": true,
+    "no-var-keyword": true,
+    "no-require-imports": false,
+    "one-line": [true,
+      "check-open-brace",
+      "check-catch",
+      "check-whitespace"
+    ],
+    "quotemark": [true, "double"],
+    "radix": false,
+    "semicolon": true,
+    "triple-equals": [false, "allow-null-check"],
+    "variable-name": false,
+    "whitespace": [true,
+      "check-branch",
+      "check-decl",
+      "check-operator",
+      "check-separator"
+    ]
+  }
+}