diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-11-23 05:43:17 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-11-24 05:13:37 +0800 |
commit | db2917b01caa49d74c9ebcae2d36e9c3946b94d8 (patch) | |
tree | 88aa341cb4dc02f1bfbc7d0d00d21966e1bbde20 /packages/tslint-config/tslint.json | |
parent | 87d34f9c7f3ccf22e01798c27c4a4d5d4f943816 (diff) | |
download | dexon-sol-tools-db2917b01caa49d74c9ebcae2d36e9c3946b94d8.tar dexon-sol-tools-db2917b01caa49d74c9ebcae2d36e9c3946b94d8.tar.gz dexon-sol-tools-db2917b01caa49d74c9ebcae2d36e9c3946b94d8.tar.bz2 dexon-sol-tools-db2917b01caa49d74c9ebcae2d36e9c3946b94d8.tar.lz dexon-sol-tools-db2917b01caa49d74c9ebcae2d36e9c3946b94d8.tar.xz dexon-sol-tools-db2917b01caa49d74c9ebcae2d36e9c3946b94d8.tar.zst dexon-sol-tools-db2917b01caa49d74c9ebcae2d36e9c3946b94d8.zip |
Enable some new linter rules and fix the issues
Diffstat (limited to 'packages/tslint-config/tslint.json')
-rw-r--r-- | packages/tslint-config/tslint.json | 47 |
1 files changed, 39 insertions, 8 deletions
diff --git a/packages/tslint-config/tslint.json b/packages/tslint-config/tslint.json index 4c2c7adf4..11b0e4d2e 100644 --- a/packages/tslint-config/tslint.json +++ b/packages/tslint-config/tslint.json @@ -4,21 +4,24 @@ "tslint-react" ], "rules": { + "adjacent-overload-signatures": true, "arrow-parens": [true, "ban-single-arg-parens"], "arrow-return-shorthand": true, "await-promise": true, - "ordered-imports": [ - true, - { - "grouped-imports": true - } - ], - "quotemark": [true, "single", "avoid-escape", "jsx-double"], + "binary-expression-operand-order": true, "callable-types": true, + "class-name": true, + "curly": true, + "eofline": true, + "encoding": true, + "import-spacing": true, + "indent": [true, "spaces", 4], "interface-name": false, "interface-over-type-literal": true, - "object-literal-sort-keys": false, + "linebreak-style": [true, "LF"], "max-classes-per-file": false, + "max-classes-per-file": [true, 1], + "max-file-line-count": [true, 500], "max-line-length": [true, 120], "member-access": true, "member-ordering": [true, @@ -26,19 +29,47 @@ "static-before-instance", "variables-before-functions" ], + "newline-before-return": false, + "new-parens": true, "no-angle-bracket-type-assertion": true, + "no-boolean-literal-compare": true, "no-default-export": true, "no-empty-interface": false, "no-floating-promises": true, "no-non-null-assertion": true, "no-parameter-reassignment": true, + "no-redundant-jsdoc": true, "no-return-await": true, "no-string-throw": true, "no-submodule-imports": false, "no-unnecessary-type-assertion": true, "no-implicit-dependencies": [true, "dev"], + "number-literal-format": true, + "object-literal-sort-keys": false, + "ordered-imports": [ + true, + { + "grouped-imports": true + } + ], "prefer-const": true, + "prefer-for-of": true, + "prefer-function-over-method": true, "promise-function-async": true, + "quotemark": [true, "single", "avoid-escape", "jsx-double"], + "semicolon": [true, "always"], + "space-before-function-paren": [ + true, + { + "anonymous": "never", + "named": "never", + "method": "never", + "constructor": "never", + "asyncArrow": "always" + } + ], + "space-within-parens": false, + "type-literal-delimiter": true, "variable-name": [true, "ban-keywords", "allow-pascal-case" |