Skip to content

Commit

Permalink
[quality] add strict.tslint.json (fixes eclipse-theia#356)
Browse files Browse the repository at this point in the history
This new tslint configuration file extends dev.tslint.json and
adds many rules that might or might not be a good fit for Theia.
To use this file while developing Theia in vscode, change file
$THEIA/.vscode/settings.json and use it for "tslint.configFile".
Note that this will greatly increase the number of reported
linter warnings, some of which may not make sense.

Signed-off-by: Marc Dumais <marc.dumais@ericsson.com>
  • Loading branch information
marcdumais-work committed Jul 31, 2017
1 parent eac7a38 commit 97f2c9b
Showing 1 changed file with 145 additions and 0 deletions.
145 changes: 145 additions & 0 deletions packages/strict.tslint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
{
"defaultSeverity": "warning",
"extends": "./dev.tslint.json",
"rules": {
"array-type": [
true,
"array"
],
"arrow-return-shorthand": true,
"await-promise": true,
"adjacent-overload-signatures": true,
"align": [
true
],
"arrow-parens": true,
"ban": true,
"callable-types": true,
"completed-docs": [
true
],
"cyclomatic-complexity": [
true
],
"eofline": true,
"file-header": [
true
],
"import-blacklist": true,
"import-spacing": true,
"interface-name": true,
"interface-over-type-literal": true,
"jsdoc-format": true,
"label-position": true,
"linebreak-style": [
true,
"LF"
],
"max-classes-per-file": [
false
],
"max-file-line-count": [
false
],
"member-ordering": [
true
],
"member-access": true,
"new-parens": true,
"no-angle-bracket-type-assertion": true,
"no-any": true,
"no-arg": true,
"no-bitwise": true,
"no-boolean-literal-compare": true,
"no-conditional-assignment": true,
"no-consecutive-blank-lines": [
true
],
"no-console": [
true,
"debug",
"info",
"log",
"time",
"timeEnd",
"trace"
],
"no-construct": true,
"no-debugger": true,
"no-default-export": true,
"no-duplicate-super": true,
"no-duplicate-variable": true,
"no-empty": true,
"no-empty-interface": true,
"no-eval": true,
"no-floating-promises": true,
"no-for-in-array": true,
"no-import-side-effect": true,
"no-inferrable-types": true,
"no-inferred-empty-object-type": true,
"no-internal-module": true,
"no-invalid-template-strings": true,
"no-invalid-this": true,
"no-magic-numbers": true,
"no-mergeable-namespace": true,
"no-missing-visibility-modifiers": true,
"no-misused-new": true,
"no-namespace": false,
"no-null-keyword": true,
"no-parameter-properties": false,
"no-reference": true,
"no-reference-import": true,
"no-require-imports": true,
"no-shadowed-variable": true,
"no-sparse-arrays": true,
"no-string-literal": true,
"no-string-throw": true,
"no-switch-case-fall-through": true,
"no-unbound-method": true,
"no-unnecessary-callback-wrapper": true,
"no-unnecessary-initializer": true,
"no-unnecessary-qualifier": true,
"no-unsafe-any": true,
"no-unsafe-finally": true,
"no-use-before-declare": true,
"no-var-requires": true,
"no-void-expression": true,
"object-literal-key-quotes": [
true,
"as-needed"
],
"object-literal-shorthand": true,
"object-literal-sort-keys": true,
"one-variable-per-declaration": true,
"only-arrow-functions": [
true,
"allow-declarations",
"allow-named-functions"
],
"ordered-imports": [
true
],
"prefer-for-of": true,
"prefer-function-over-method": false,
"prefer-method-signature": true,
"prefer-template": true,
"strict-type-predicates": true,
"promise-function-async": true,
"restrict-plus-operands": true,
"space-before-function-paren": [
true,
"never"
],
"strict-boolean-expressions": true,
"switch-default": true,
"typedef": [
true,
"parameter",
"property-declaration",
"member-variable-declaration"
],
"typeof-compare": true,
"unified-signatures": true,
"use-isnan": true
}
}

0 comments on commit 97f2c9b

Please sign in to comment.